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

Change docker containers to not require the docker socket from the host #260

Merged
merged 6 commits into from
Nov 7, 2022

Conversation

shadycuz
Copy link
Member

@shadycuz shadycuz commented Nov 6, 2022

Previously the Docker containers would require the passing of the host machine's docker socket to work correctly. This caused a ton of issues because the Jenkins container would often have its workspaces in a bind mount. That meant that you couldn't pass in the jobs workspace in Jenkins to a child container with out knowing the full path to the workspace. This was a total pain.

This PR changes the containers so that they use the s6 overlay to run both Docker daemon and Jenkins. They now run a complete docker inside the containers. The major downside is that Docker requires that the containers are run with the --privledge flag to make the docker daemon work correctly. Also CICD tests can be a lot slower since there is not cache sharing from the host machine too the devcontainer and then to the JFR.

Overall I'm pretty happy with this change.

@shadycuz shadycuz added minor Bumps the minor version. chore labels Nov 6, 2022
@shadycuz shadycuz merged commit 46f1106 into develop Nov 7, 2022
@shadycuz shadycuz deleted the fix_docker branch November 7, 2022 09:40
@shadycuz shadycuz mentioned this pull request Dec 9, 2022
shadycuz added a commit that referenced this pull request Dec 24, 2022
…st (#260)

* dont pass in the docker socket anymore

* add debug for docker info

* force docker vfs storage driver in jfr

* set python formatting settings in vscode

* Revert "add debug for docker info"

This reverts commit fa53375.

* fix broken test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore minor Bumps the minor version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant