-
Notifications
You must be signed in to change notification settings - Fork 92
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
Update docker build to use mongo-express repo #108
Conversation
c159076
to
f8a9713
Compare
+ Multi-stage build + Remove debug echo + Remove /Dockerfile
f8a9713
to
24501f6
Compare
I got: [FATAL tini (2)] exec /docker-entrypoint.sh failed: Permission denied Fixed in Dockerfile adding Instead of copy all
In future we can consider to produce a dist folder to use for copy (builds of Docker image and npm). |
+ chmod +x entrypoint sh + Remove unneeded files
I thought that I tested that it was working last night; but maybe I forgot to build the latest changes or something. Now I can see a message that looks mostly good (except it says version 1.0.0):
But when I try to reach the server I get no response:
|
My current workflow:
|
Moved the definition of `ME_CONFIG_*` environment variables from the build stage to the final stage in multiple Dockerfiles and the template. They were missing from the final image.
- Included 'css' and 'build' directories in retention during cleanup - Broadened file retention patterns to all .json, .js, and .log files - Removed and logged irrelevant files and directories to respective 'removed-files.log' and 'removed-dirs.log'
@rtritto @shakaran can you double check that I haven't removed any files that shouldn't have been removed? I think
|
Removing the folders saves 1MB of space but the files don't really save much, just makes it cleaner. Maybe we should put off this optimization until a future release so there are not any unintended consequences. The difference is like... 281MB vs 282MB. |
Focus on stability, optimizations like this could be risky.
Why
Yes, in this PR, we can choose to not ignore other files. |
I'm just using NPM to change the version in package.json. The yarn version command doesn't seem to let me do this. with a full version, it wants to bump major/minor or patch. Do you know the syntax? |
If we don't like using npm for this, we can use jq, but I can't figure out how to do it with yarn. Here's how it might be done with jq:
or without sponge
|
Maybe |
Tried that but it doesn't work in the build at the moment.
It works locally but it's doing extra stuff too?
|
If I have it checkout the release branch instead of the tag, the package.json will be correct already. I'll try that. |
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.
LGTM!
I don't have permission to push to fitzrev/fix-build so I created this for now for reference. See #107
This change will build from the mongo-express repo instead of using the version deployed to NPM. It also fixes a bug in generate-stackbrew-library.sh