Skip to content
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

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

Michaeldremy
Copy link
Contributor

@Michaeldremy Michaeldremy commented Oct 16, 2024

Closes #2054
Closes #1334

Re-wrote the Cypress Docker file to use base image from Cypress.

Updates to the Docker file include:

  • File includes changes to accommodate Cypress/base image
  • Removed the install-dependencies.sh file as it is no longer needed
  • npm is being used to manage the install instead of Yarn

… 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.
Copy link
Contributor Author

@Michaeldremy Michaeldremy Oct 21, 2024

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.
Comment on lines +49 to +53
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
Copy link
Contributor Author

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.

Copy link
Contributor

@ojbravo ojbravo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Michaeldremy Michaeldremy merged commit b316f26 into master Oct 28, 2024
1 of 2 checks passed
@Michaeldremy Michaeldremy deleted the 2054-streamline-cypress-docker branch October 28, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Cypress + Docker] Update Cypress Dockerfile Refactor Cypress test pod build
2 participants