Installing on Kubernetes

(Sam Saffron) #21


Whatever ENV you specify when you finally do you docker run on the image … will take.

(Jay Pfaffman) #22

And doing those things at every boot of the container is reasonable?

(Sam Saffron) #23

Some people like this pattern, I do not, that is why rails introduces some super fancy locking around migrations to ensure they never run concurrently when a cluster of 20 app try to run migrations at the same time.

Some people just boot the same image and run the migrations in some out-of-band process.

(Jay Pfaffman) #24

But each container should still rake assets:precompile at least once?

(Rafael dos Santos Silva) #25

Depends on how do you host those.

If you have a NFS share of some sort (like AWS EFS) or if you upload those to some object storage service that can only be done on bootstrap.