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

Dockerfile setup improvements #732

Merged
merged 43 commits into from
Jun 10, 2024
Merged

Dockerfile setup improvements #732

merged 43 commits into from
Jun 10, 2024

Conversation

JulianPasquale
Copy link
Contributor

@JulianPasquale JulianPasquale commented May 27, 2024

Description:

  • Update and optimizeDockerfile to run in production. It reduces image size by using only necessary dependencies, a ruby-slim image and improves memory management by using jemalloc.
  • Add Dockerfile.dev for local development. It keeps the Node binaries so we can take advantage of live reloading.
  • Improve docker-compose. Now we don't need to have use volumes for live reloading as we can use the watch feature, and the web and js processes run in a single service, enabled by foreman.
  • Add docker-compose.test , configured to run specs with it (has chrome-server service and options needed only in test environment).
  • Improve bin scripts to run with docker.
  • Add docs to explain new changes and how to use them.

@JulianPasquale JulianPasquale marked this pull request as ready for review May 28, 2024 15:14
@JulianPasquale JulianPasquale requested a review from a team May 28, 2024 15:14
Dockerfile Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
bin/docker-entrypoint Outdated Show resolved Hide resolved
bin/helpers.rb Outdated Show resolved Hide resolved
docs/docker.md Outdated Show resolved Hide resolved
docs/docker.md Outdated Show resolved Hide resolved
Copy link
Member

@santib santib left a comment

Choose a reason for hiding this comment

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

🌟 this is awesome

@santib santib requested a review from a team June 4, 2024 13:51
Copy link
Contributor

@lauperalti lauperalti left a comment

Choose a reason for hiding this comment

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

Love this 💪 ! Excellent documentation and step by step guide.

bin/rspec Outdated Show resolved Hide resolved
Dockerfile.dev Show resolved Hide resolved
Dockerfile.dev Outdated Show resolved Hide resolved
@JulianPasquale JulianPasquale merged commit 8dc8e16 into main Jun 10, 2024
5 of 6 checks passed
@JulianPasquale JulianPasquale deleted the improve-dev-docker branch June 10, 2024 20:50
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.

None yet

7 participants