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

Single Dockerfile using multi-stages for production and dev image #748

Closed
wants to merge 4 commits into from

Conversation

AlMaVizca
Copy link
Contributor

This proposal is reorganizing the instructions to get advantage of the Docker cache, and handle a single file for images

@AlMaVizca AlMaVizca force-pushed the docker-multi-stage branch 2 times, most recently from 272bd3c to f58b884 Compare November 12, 2023 05:14
Fix version replacement

Add sources only on the final image
@AlMaVizca AlMaVizca force-pushed the docker-multi-stage branch 3 times, most recently from dec9bc8 to 0070e8c Compare November 12, 2023 06:14
Replacing paths with variables to avoid mistakes.
To run tests on the container, the entrypoint is checking /opt/drupal to
later copy the sources. Running tests against /var/farmos, reduces that time
@AlMaVizca AlMaVizca marked this pull request as ready for review November 12, 2023 08:03
@AlMaVizca
Copy link
Contributor Author

@mstenta @paul121 It seems that the tests are failing due to another non-related error.
Please let me know your thoughts, or how do you want to proceed, thanks.

@mstenta
Copy link
Member

mstenta commented Nov 14, 2023

@AlMaVizca Hmm it looks like these test failures are specific to this PR. They aren't happening on the 3.x branch currently: https://github.com/farmOS/farmOS/actions

Maybe the easiest thing to do is create a new testing branch (separate from this PR branch) and push one commit at a time to your fork to see which change causes the issue. This also helps to ensure each commit is a self-container non-breaking change.

@mstenta
Copy link
Member

mstenta commented Nov 14, 2023

FYI: If you prefix your branch name with 3.x-, then the GitHub Action will automatically run tests on your fork. So you can test stuff outside of the PR before bringing them back here.

@AlMaVizca
Copy link
Contributor Author

Closed in favor of #751

@AlMaVizca AlMaVizca closed this Nov 19, 2023
@AlMaVizca AlMaVizca deleted the docker-multi-stage branch November 19, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants