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

all: support docker:// with dind #215

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

all: support docker:// with dind #215

wants to merge 1 commit into from

Conversation

giautm
Copy link
Member

@giautm giautm commented Oct 15, 2024

No description provided.

@giautm giautm force-pushed the g/dind branch 4 times, most recently from e430a49 to f7b81d8 Compare October 16, 2024 05:38
@giautm giautm changed the title feat: support docker:// with Dind all: support docker:// with dind Oct 16, 2024
COPY --from=atlas /usr/local/bin/atlas /usr/local/bin
RUN chmod +x /usr/local/bin/atlas
ENV ATLAS_KUBERNETES_OPERATOR=1
COPY --from=docker /usr/local/bin/docker /usr/local/bin
Copy link
Member

Choose a reason for hiding this comment

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

why not simply run apk add docker ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I want to version the docker cli, also need only one binary. Nothing else.

Copy link
Member Author

Choose a reason for hiding this comment

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

btw, I'm not sure if we should bundle docker-cli with the default image, or create a separated tag for dind support

Copy link
Member

Choose a reason for hiding this comment

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

The second option sounds reasonable

metadata:
name: atlasschema-postgres
spec:
devURL: docker://postgres/15/dev
Copy link
Member Author

Choose a reason for hiding this comment

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

This is impossible before this PR.

Comment on lines +40 to +47
image: docker:27.3.1-dind-rootless
securityContext:
privileged: true
runAsGroup: 1000
runAsUser: 1000
volumeMounts:
- name: dind-sock
mountPath: /run/user
Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe replace dind with nerdctl to interactive directly with containerd

Copy link
Member Author

Choose a reason for hiding this comment

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

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