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

With docker locally #840

Merged
merged 1 commit into from
Apr 8, 2021
Merged

With docker locally #840

merged 1 commit into from
Apr 8, 2021

Conversation

alexcb
Copy link
Collaborator

@alexcb alexcb commented Mar 4, 2021

the code needs some loving, but here's an initial not-ready-for-review draft of running with docker locally.

@alexcb alexcb force-pushed the with-docker-locally branch 6 times, most recently from 69affcd to a78b1ba Compare March 13, 2021 00:25
@alexcb alexcb force-pushed the with-docker-locally branch 9 times, most recently from 558c07d to 1ba0ce0 Compare March 23, 2021 18:05
@alexcb alexcb marked this pull request as ready for review March 23, 2021 19:03
Copy link
Member

@vladaionescu vladaionescu left a comment

Choose a reason for hiding this comment

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

Looks pretty good to me so far. No compose support, but it's a start.

Wondering if we should reuse more of the other WITH DOCKER implementation. But then again, I can also see this as being different enough.

@alexcb
Copy link
Collaborator Author

alexcb commented Mar 23, 2021

Looks pretty good to me so far. No compose support, but it's a start.

I was able to get docker compose working in this test: https://github.com/earthly/earthly/pull/840/files#diff-4141aec9ede776e8e9f60ce8be4517a0431dbc996c9fdd9977ff34a4c8489026R13

what's sort of interesting is there's no explicit COPY directive to pull in the docker-compose.yml file since it's already in the current directory on the local machine.

Wondering if we should reuse more of the other WITH DOCKER implementation. But then again, I can also see this as being different enough.

Yeah I was wondering a bit about that too, there's some code that was copy/pasted from there, but a fair amount of it changed.

- this implements support for building a container, then loading it into
the local host, then running it under a LOCALLY target.
@alexcb alexcb merged commit aeddd85 into main Apr 8, 2021
@alexcb alexcb deleted the with-docker-locally branch April 8, 2021 01:47
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

2 participants