Skip to content

Slow builds #343

@localheinz

Description

@localheinz

Which release, branch or hash of Docker SDK are you using?

2958d59

Which operating system (platform/version/architecture) are you using?

ubuntu-18.04 on GitHub Actions

What is the issue that you're experiencing?

We are experiencing very slow builds on GitHub Actions.

When running acceptance and functional tests, the jobs run ~11 and ~7 minutes respectively. Most of the time they are busy building Docker images.

We would like to speed up the builds by caching Docker layers. Unfortunately, it is unclear how to do that.

Long build times

  • eat up build minutes
  • force developers to push rarely
  • force developers to push larger commits

What are the steps to reproduce the issue?

See https://github.com/spryker-shop/b2b-demo-shop/blob/bcc57623dcf9c483bf5fb4444745ce13efac6fa6/.github/workflows/ci.yml.

See https://github.com/spryker-shop/b2b-demo-shop/actions/runs/2538229226:

CleanShot 2022-06-30 at 09 59 25@2x

What is the expected result of these steps in the absence of the issue?

Fast builds!

What is the actual result?

Slow builds. 🐌

What possible solutions and/or workarounds for the issue do you see?

Using Docker layer caching.

Is there any other information that might be helpful?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions