-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Cache composer installs & install ca-certificates #3485
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,6 @@ ENV DEBIAN_FRONTEND="noninteractive" \ | |
| # Everything from `make` onwards in apt-get install is only installed to ensure | ||
| # Python support works with all packages (which may require specific libraries | ||
| # at install time). | ||
|
|
||
| RUN apt-get update \ | ||
| && apt-get upgrade -y \ | ||
| && apt-get install -y --no-install-recommends \ | ||
|
|
@@ -19,6 +18,7 @@ RUN apt-get update \ | |
| bzr \ | ||
| mercurial \ | ||
| gnupg2 \ | ||
| ca-certificates \ | ||
| curl \ | ||
| wget \ | ||
| file \ | ||
|
|
@@ -48,7 +48,8 @@ RUN apt-get update \ | |
| libxmlsec1-dev \ | ||
| libgeos-dev \ | ||
| python3-enchant \ | ||
| && locale-gen en_US.UTF-8 | ||
| && locale-gen en_US.UTF-8 \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| ARG USER_UID=1000 | ||
| ARG USER_GID=$USER_UID | ||
|
|
@@ -70,7 +71,8 @@ RUN apt-add-repository ppa:brightbox/ruby-ng \ | |
| && gem update --system 3.2.14 \ | ||
| && gem install bundler -v 1.17.3 --no-document \ | ||
| && gem install bundler -v 2.2.15 --no-document \ | ||
| && rm -Rf /var/lib/gems/2.6.0/cache/* | ||
| && rm -rf /var/lib/gems/2.6.0/cache/* \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
|
|
||
| ### PYTHON | ||
|
|
@@ -145,7 +147,19 @@ RUN add-apt-repository ppa:ondrej/php \ | |
| php7.4-tidy \ | ||
| php7.4-xml \ | ||
| php7.4-zip \ | ||
| php7.4-zmq | ||
| php7.4-zmq \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
| USER dependabot | ||
| # Perform a fake `composer update` to warm ~/dependabot/.cache/composer/repo | ||
| # with historic data (we don't care about package files here) | ||
| RUN mkdir /tmp/composer-cache \ | ||
| && cd /tmp/composer-cache \ | ||
| && echo '{"require":{"psr/log": "^1.1.3"}}' > composer.json \ | ||
| && composer update --no-scripts --dry-run \ | ||
| && cd /tmp \ | ||
| && rm -rf /home/dependabot/.cache/composer/files \ | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Basing this on: Vs |
||
| && rm -rf /tmp/composer-cache | ||
| USER root | ||
|
|
||
|
|
||
| ### GO | ||
|
|
@@ -181,7 +195,8 @@ RUN wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb \ | |
| && echo "$ELIXIR_CHECKSUM Precompiled.zip" | sha512sum -c - \ | ||
| && unzip -d /usr/local/elixir -x Precompiled.zip \ | ||
| && rm -f Precompiled.zip erlang-solutions_1.0_all.deb \ | ||
| && mix local.hex --force | ||
| && mix local.hex --force \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
|
|
||
| ### RUST | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.