Skip to content

ci: Use Alpine to reduce image size#2375

Merged
mslipper merged 1 commit intoethereum-optimism:developfrom
mslipper:bugfix/docker-image-size
Mar 31, 2022
Merged

ci: Use Alpine to reduce image size#2375
mslipper merged 1 commit intoethereum-optimism:developfrom
mslipper:bugfix/docker-image-size

Conversation

@mslipper
Copy link
Collaborator

Image sizes were increased because the packages Dockerfile used buster-slim rather than Alpine. Unfortunately, the images will still be large because the node_modules directory contains dev dependencies. This is how it was before the CircleCI migration/larger build cleanup, and will need a larger rethink of how we build TypeScript projects in the monorepo before it can be solved.

@changeset-bot
Copy link

changeset-bot bot commented Mar 28, 2022

🦋 Changeset detected

Latest commit: c195712

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@eth-optimism/integration-tests Patch
@eth-optimism/common-ts Patch
@eth-optimism/contracts Patch
@eth-optimism/core-utils Patch
@eth-optimism/data-transport-layer Patch
@eth-optimism/message-relayer Patch
@eth-optimism/replica-healthcheck Patch
@eth-optimism/sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mslipper mslipper force-pushed the bugfix/docker-image-size branch from d7b6738 to cb31a03 Compare March 28, 2022 04:05
Copy link
Contributor

@optimisticben optimisticben left a comment

Choose a reason for hiding this comment

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

sgtm

@@ -4,14 +4,9 @@
# ### BASE: Install deps
# We do not use Alpine because there's a regression causing it to be very slow
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this comment still relevant?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, will remove.

@mslipper mslipper force-pushed the bugfix/docker-image-size branch from cb31a03 to aab0821 Compare March 29, 2022 07:08
@tynes
Copy link
Contributor

tynes commented Mar 29, 2022

This needs a changeset for each typescript service, then looks good to me

Image sizes were increased because the packages Dockerfile used `buster-slim` rather than Alpine. Unfortunately, the images will still be large because the `node_modules` directory contains dev dependencies. This is how it was before the CircleCI migration/larger build cleanup, and will need a larger rethink of how we build TypeScript projects in the monorepo before it can be solved.
@mslipper mslipper force-pushed the bugfix/docker-image-size branch from aab0821 to c195712 Compare March 29, 2022 17:23
@tynes
Copy link
Contributor

tynes commented Mar 30, 2022

Is there something with circle ci and the way it supports stdout? The geth tests that are failing look like they are doing a string match on stdout

@mslipper
Copy link
Collaborator Author

The geth tests have always been a bit flaky, but it's worse on CircleCI. I'll rerun the test.

@mslipper mslipper merged commit 207fe3c into ethereum-optimism:develop Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ops Area: ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants