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

add starship requirements in dockerfile, add docker gh action #61

Merged
merged 4 commits into from
Aug 21, 2023

Conversation

Anmol1696
Copy link
Contributor

@Anmol1696 Anmol1696 commented Aug 14, 2023

Overview

Add starship requirements into the dockerfile
Add gh-action to push docker images to ghcr.io at:

ghcr.io/osmosis-labs/meshd

Closes #53

@Anmol1696 Anmol1696 requested a review from alpe August 14, 2023 10:07
@Anmol1696 Anmol1696 requested review from a team and pinosu August 14, 2023 11:01
Copy link
Contributor

@alpe alpe left a comment

Choose a reason for hiding this comment

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

LGTM!
Just some questions to better understand the changes

demo/Dockerfile Outdated
@@ -31,9 +30,15 @@ FROM alpine:3.16

COPY --from=go-builder /code/build/meshd /usr/bin/meshd

# Set up dependencies used for Starship
ENV PACKAGES curl make bash jq sed
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you use an ENV for this and not just add it to L37?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can do. will change it.

branches:
- main
tags:
- "v*.*.*"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just checking, does this covers RC tags like v0.1.2-rc.3 as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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


permissions:
contents: read
packages: write
Copy link
Contributor

Choose a reason for hiding this comment

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

We need this to push to the docker registry, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup

uses: docker/metadata-action@v4
with:
images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}
tags: |
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you use the tags for anything?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for versioning. As more versions of the mesh-security-sdk comes, we should be able to use the tagged version


- name: Run go vendor
run: |
cd demo/ && go mod vendor
Copy link
Contributor

Choose a reason for hiding this comment

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

Agh, you need to vendor here, too. This is very inconvenient

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, useally i would just have this part of the dockerfile itself, but the current system seemed to take pre built vendor dir

@Anmol1696 Anmol1696 merged commit 9539fc2 into main Aug 21, 2023
2 checks passed
@Anmol1696 Anmol1696 deleted the anmol/docker-update branch August 21, 2023 07:05
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.

Publish Docker Images on new releases
2 participants