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: Streamline docker build #123

Merged
merged 2 commits into from
Apr 1, 2023

Conversation

master-bob
Copy link
Contributor

@master-bob master-bob commented Apr 1, 2023

Change to build the image using docker action. Subsequently reducing build time
~50%, as the image will only need to be built once. Currently image is
built twice.

The default driver uses double the disk space, see
docker/build-push-action#321 (in brief, the image is built in the
build-push-action local cache, tared, and then transfered to the local docker).
This is a problem as this image is so large. Using the docker driver
will workaround this.

Removes the Android SDK and the Hosted tool cache from the runner.
The hostedtoolcache has the following unused software:

  • PyPy
  • go
  • CodeQL
  • Java_Temurin-Hotspot_jdk
  • node
  • Ruby
  • Python

This frees up ~23G from the disk space.

Change to build the image using docker action, this should then allow
the docker action's cache to be used. Subsequently reducing build time
~50%, as the image will only need to be built once. Currently image is
built twice.

The default driver uses double the disk space, see
docker/build-push-action/issues/321 (in brief the image is build in the
build-push-action local cache and then transfered to the local docker).
This is a problem as this image is so large. Using the `docker` driver
will workaround this.
Removes the Android SDK and the Hosted tool cache from the runner.
The hostedtoolcache has the following unused software:
- PyPy
- go
- CodeQL
- Java_Temurin-Hotspot_jdk
- node
- Ruby
- Python
@mingchen mingchen merged commit fce13e8 into mingchen:master Apr 1, 2023
@master-bob master-bob deleted the StreamlineDockerBuild branch April 4, 2023 13:26
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