Skip to content

allow building locally as well as with docker#467

Merged
emilyalbini merged 4 commits intorust-lang:masterfrom
jyn514:allow-no-docker
Nov 5, 2019
Merged

allow building locally as well as with docker#467
emilyalbini merged 4 commits intorust-lang:masterfrom
jyn514:allow-no-docker

Conversation

@jyn514
Copy link
Copy Markdown
Member

@jyn514 jyn514 commented Nov 4, 2019

If docker uses the .rustwide directory, it will only be readable and writable by root.
This uses a different scratch directory so that the .rustwide directory can be used for local builds.

If docker uses the .rustwide directory, it will only be readable and
writable by root. This uses a different scratch directory so that the
.rustwide directory can be used for local builds.
@jyn514
Copy link
Copy Markdown
Member Author

jyn514 commented Nov 4, 2019

This means that artifacts aren't cached between the container and the host, which was the original idea behind using the default directory. Unfortunately I don't see a way around this, I ran into the same problem in #432 and I think we decided there's not a good way to map permissions.

Copy link
Copy Markdown
Member

@emilyalbini emilyalbini left a comment

Choose a reason for hiding this comment

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

Is the new directory in .gitignore and .dockerignore?

Comment thread docker-compose.yml Outdated
@jyn514
Copy link
Copy Markdown
Member Author

jyn514 commented Nov 4, 2019

Is the new directory in .gitignore and .dockerignore?

Good catch!

@emilyalbini emilyalbini self-assigned this Nov 4, 2019
@jyn514
Copy link
Copy Markdown
Member Author

jyn514 commented Nov 4, 2019

This is ready for review.

@emilyalbini emilyalbini merged commit c3d3ed3 into rust-lang:master Nov 5, 2019
@emilyalbini
Copy link
Copy Markdown
Member

Thanks!

@jyn514 jyn514 deleted the allow-no-docker branch January 28, 2020 18:34
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