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

Don't use custom docker compose services for CI #1045

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

relud
Copy link
Member

@relud relud commented Jul 25, 2024

by defining volume mounts in docker-compose.override.yml they are used by default in the dev environment, but can be disabled for CI by setting COMPOSE_FILE. This reduces the differences between dev and CI, which allows CI to take advantage of commands like make setup and systemtest/test_env.sh local.

This makes docker-compose.override.yml no longer ignored by git, which may be undesirable. If that's not acceptable, we could use the services with volume mounts in CI, because github actions support that (unlike circleci). That would require specifying --user="$(id --user):$(id --group)" in CI for docker compose run commands that touch /app to avoid permissions issues (note: I also tested this solution, it works).

@relud relud force-pushed the relud-remove-ci-containers-2 branch 2 times, most recently from b394d99 to d37e0e3 Compare July 25, 2024 15:54
@relud relud force-pushed the relud-remove-ci-containers-2 branch from d37e0e3 to f875fe0 Compare July 25, 2024 15:56
@@ -53,34 +49,6 @@ services:
volumes:
- .:/app
Copy link
Member Author

Choose a reason for hiding this comment

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

devcontainer gets to keep the volume mount because it's not used in CI

@relud relud requested a review from willkg July 25, 2024 16:00
@relud relud marked this pull request as ready for review July 25, 2024 16:00
@relud relud requested a review from a team as a code owner July 25, 2024 16:00
Copy link
Contributor

@willkg willkg left a comment

Choose a reason for hiding this comment

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

r_plus

@relud relud merged commit b50a766 into main Jul 26, 2024
1 check passed
@relud relud deleted the relud-remove-ci-containers-2 branch July 26, 2024 01:25
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.

2 participants