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: use alpine in dockerfile #15703

Merged
merged 10 commits into from
Apr 6, 2023
Merged

ci: use alpine in dockerfile #15703

merged 10 commits into from
Apr 6, 2023

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt commented Apr 5, 2023

Description

Closes #15672

What is the best way to deprecate https://hub.docker.com/r/interchainio/simapp?
Can someone modify the overview here: https://hub.docker.com/r/interchainio/simapp and link it to https://ghcr.io/cosmos/simapp?

First merge this: #15702 and then this one.

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@julienrbrt julienrbrt requested a review from a team as a code owner April 5, 2023 07:23
@github-prbot github-prbot requested review from a team, mark-rushakoff and facundomedica and removed request for a team April 5, 2023 07:23
@julienrbrt julienrbrt changed the title ci: use right link in docker job ci: use alpine in dockerfile Apr 5, 2023
@julienrbrt julienrbrt added the backport/v0.47.x PR scheduled for inclusion in the v0.47's next stable release label Apr 5, 2023
@@ -35,9 +36,8 @@ ARG TARGETOS TARGETARCH
# install simapp, remove packages
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH make build


# Final image, without build artifacts. `/base` already contains openssl, glibc and all required libs to start an app
FROM gcr.io/distroless/base
Copy link
Member

Choose a reason for hiding this comment

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

wasnt this added on purpose? why are we reverting?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was added in #14793 next to other improvements (which made the image lighter).

Turns out, users need to have the extra commands in the alpine image #15672.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you, nice change. alpine:3 should be a great trade-off. Slim enough and you can install the rest via package management.

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

makes sense

@julienrbrt julienrbrt mentioned this pull request Apr 5, 2023
19 tasks
Copy link
Member

@mark-rushakoff mark-rushakoff left a comment

Choose a reason for hiding this comment

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

Don't use tag latest please.

.github/workflows/docker.yml Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
@julienrbrt
Copy link
Member Author

Checking how to configure the workflow_dispatch properly as per #15702 (comment)

Copy link
Member

@mark-rushakoff mark-rushakoff left a comment

Choose a reason for hiding this comment

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

I'm not sure how to test the workflow dispatch other than a fork, either.

@julienrbrt julienrbrt marked this pull request as draft April 5, 2023 15:54
@julienrbrt julienrbrt marked this pull request as ready for review April 6, 2023 09:19
@github-prbot github-prbot requested a review from a team April 6, 2023 09:20
@julienrbrt
Copy link
Member Author

tACK on a fork

@julienrbrt julienrbrt merged commit b2c8418 into main Apr 6, 2023
@julienrbrt julienrbrt deleted the julien/docker-ci branch April 6, 2023 09:44
mergify bot pushed a commit that referenced this pull request Apr 6, 2023
(cherry picked from commit b2c8418)

# Conflicts:
#	.github/workflows/docker.yml
@webmaster128
Copy link
Member

What is the best way to deprecate https://hub.docker.com/r/interchainio/simapp?

IMO the best way is

  1. Start using versioned tags on https://ghcr.io/cosmos/simapp to allow version pinning for users
  2. Push a few releases to both repos in parallel
  3. Stop pushing to DockerHub

julienrbrt added a commit that referenced this pull request Apr 6, 2023
@julienrbrt
Copy link
Member Author

julienrbrt commented Apr 6, 2023

tACK on a fork

So I well tested that the tagging and all worked well, but I didn't actually test that the distro change was working 🤦‍♂️... follow up incoming.

roy-dydx pushed a commit to dydxprotocol/cosmos-sdk that referenced this pull request Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.47.x PR scheduled for inclusion in the v0.47's next stable release Type: Build Type: CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Simd docker image is missing basic binaires to use the docker
4 participants