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

ci: allows files to be shared by docker images #41958

Merged
merged 4 commits into from
May 19, 2017

Conversation

malbarbo
Copy link
Contributor

@malbarbo malbarbo commented May 12, 2017

Change src/ci/docker/run.sh to allow files to be shared when building docker containers. For while, only android related shell scripts are shared. Others containers can be updated at any time.

sccache is installed last, as it is frequently updated this avoids the need to rebuilt the whole container.

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@malbarbo
Copy link
Contributor Author

r? @alexcrichton

@alexcrichton
Copy link
Member

Thanks! A few thoughts here:

  • Could you update the README.md in the directory with a short explanation of the new filesystem layout? Basically that all containers have access to all these scripts and such.
  • Could you go ahead and remove the "old way" of building a container? I'd prefer to not maintain a whole bunch of methods of building the containers, although having a "disabled" and "not disabled" path seems ok (at maximum). This'll involve updating the COPY paths of existing containers, but I think that's ok, we can deduplicate those scripts later.
  • After this lands, mind opening up an issue to continue to deduplicate these scripts? I'm thinking things like hide_output as well as installing sccache would be great candidates.
  • For now could this avoid deduplicating the apt-get install phases? I've found that to be ever-so-subtly different across all the containers so I'm hesitant to start trying to extract subsets again.

@bors
Copy link
Contributor

bors commented May 13, 2017

☔ The latest upstream changes (presumably #41955) made this pull request unmergeable. Please resolve the merge conflicts.

@Mark-Simulacrum Mark-Simulacrum added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label May 14, 2017
@malbarbo malbarbo changed the title ci: share android shell scripts ci: allows files to be shared by docker images May 18, 2017
@malbarbo
Copy link
Contributor Author

Done. Let's travis tests with I missed some Dockerfile update.

@alexcrichton
Copy link
Member

@bors: r+

Looks great, thanks so much for this @malbarbo!

@bors
Copy link
Contributor

bors commented May 18, 2017

📌 Commit 502eadb has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented May 18, 2017

⌛ Testing commit 502eadb with merge ee46e78...

@bors
Copy link
Contributor

bors commented May 18, 2017

💔 Test failed - status-travis

@malbarbo
Copy link
Contributor Author

Fixed dist-powerpc-linux

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented May 18, 2017

📌 Commit 9b184c0 has been approved by alexcrichton

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request May 18, 2017
ci: allows files to be shared by docker images

Change `src/ci/docker/run.sh` to allow files to be shared when building docker containers. For while, only android related shell scripts are shared. Others containers can be updated at any time.

sccache is installed last, as it is frequently updated this avoids the need to rebuilt the whole container.
@bors
Copy link
Contributor

bors commented May 19, 2017

⌛ Testing commit 9b184c0 with merge d205555...

@bors
Copy link
Contributor

bors commented May 19, 2017

💔 Test failed - status-appveyor

@alexcrichton
Copy link
Member

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request May 19, 2017
ci: allows files to be shared by docker images

Change `src/ci/docker/run.sh` to allow files to be shared when building docker containers. For while, only android related shell scripts are shared. Others containers can be updated at any time.

sccache is installed last, as it is frequently updated this avoids the need to rebuilt the whole container.
bors added a commit that referenced this pull request May 19, 2017
@bors bors merged commit 9b184c0 into rust-lang:master May 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants