-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use published image for docker-compose #623
Conversation
Signed-off-by: Eric Dobbertin <[email protected]>
Signed-off-by: Eric Dobbertin <[email protected]>
I'll give this a local test this afternoon. |
I seem some syntax errors but those aren't related to the docker mechanics here.
|
Wait hmm. It looks like the server starts and THEN does try to do some compiling:
Is that right for prod mode? |
@focusaurus It shouldn't be doing that when you don't have the override file. Can you verify you don't have |
Yes, I had |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as advertised I'm just wondering if there's lots of .env
files out there in our developer base with NODE_ENV=development
and whether we should try to guide them around that. That can be a separate issue though.
Impact: minor
Type: chore
Changes
When you clone this branch and run
docker-compose up
, it will now pull and use the latest publishedreactioncommerce/example-storefront:release-v3.0.0
image from DockerHub instead ofnode-dev
. Host files are not linked in, NPM deps are not reinstalled, and NextJS will run in the faster production mode unless you setNODE_ENV=development
in your.env
file.Breaking changes
Breaking only for devs who will now need to run
ln -s docker-compose.dev.yml docker-compose.override.yml
to get the previous behavior.Testing
dc up
starts quickly and in prod mode. (You should not see anything about compiling pages in the logs.)dc down
, runln -s docker-compose.dev.yml docker-compose.override.yml
and thendc up
again. Verify it now starts in dev mode and reloads when you change files.dc down
, runrm docker-compose.override.yml
to remove the override file. It should be back to running in prod mode when you dodc up
.