-
Notifications
You must be signed in to change notification settings - Fork 70
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
Optimise Docker builds #6919
Optimise Docker builds #6919
Conversation
012465d
to
f905f35
Compare
a7e7f1a
to
6d8c078
Compare
d6cd559
to
39ad3d7
Compare
packages/workflow/Dockerfile
Outdated
|
||
RUN yarn install | ||
RUN yarn install --frozen-lockfile --ignore-scripts |
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.
What's the ignore-scripts
here?
docker-compose.yml
Outdated
base: | ||
image: opencrvs/ocrvs-base:${VERSION} | ||
build: | ||
context: . | ||
dockerfile: ./packages/Dockerfile.base |
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.
Do we need to define the base image here? The reason I'm asking is I noticed deployment failing with
Server failed to download opencrvs/ocrvs-base:3f89c3d
when I built images from this branch and deployed. Based on this depends_on
also should control the order services start up but we don't run anything for base outside build, right?
https://docs.docker.com/compose/compose-file/05-services/#depends_on
907f01c
to
2ab1195
Compare
…imise disk size etc.
6a23862
to
6576893
Compare
…ling due problematic watcher dependency
6576893
to
e7bdb5c
Compare
…mise_docker_builds
Related to #6902
alpine
todebian-slim
.dockerignore
and more specific buildsPart of this we also
version
from compose fileslerna
to latest to address gyp: binding.gyp not found (...) while trying to load binding.gyp parcel-bundler/watcher#156@graphql-codegen/add
and@graphql-codegen/cli
to also address gyp: binding.gyp not found (...) while trying to load binding.gyp parcel-bundler/watcher#156Requires opencrvs/opencrvs-countryconfig#160 to be merged at the same time to ensure deploys dont break on the new baseimage