-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Cypress/Docker] Streamline Docker Deployment Process #2304
Conversation
… as it is more widely used in the ecosystem. Removed yarn from Dockerfile and instead is using npm to simplify build and updated to newer ersion of Cypress and Node in the Dockerfile.
…install-cypress-dependencies.sh file. Updated Cypress conig to allow for videos to be made during run mode.
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.
A file that used to install around 150 dependencies, is no longer needed since we are using Cypress/base image.
…packages are being remove due to critical CVEs - removed package do not prevent image from running.
RUN find / -name "loader-utils" -type d -exec rm -rf {} + 2>/dev/null || true && \ | ||
find / -name "flat" -type d -exec rm -rf {} + 2>/dev/null || true && \ | ||
find / -name "underscore" -type d -exec rm -rf {} + 2>/dev/null || true && \ | ||
npm cache clean --force && \ | ||
chown -R hmda_cypress_user:hmda_cypress_user /hmda-frontend |
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.
Removing critical CVE packages. Not all of them can be removed otherwise image will not run.
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
Closes #2054
Closes #1334
Re-wrote the Cypress Docker file to use base image from Cypress.
Updates to the Docker file include:
install-dependencies.sh
file as it is no longer needednpm
is being used to manage the install instead ofYarn