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

tag the docker image build locally #8760

Merged
merged 2 commits into from
Feb 5, 2021
Merged

Conversation

remyhaemmerle-da
Copy link
Collaborator

@remyhaemmerle-da remyhaemmerle-da commented Feb 4, 2021

This was forgotten in #8745

also add a missing '' in the bash script.

CHANGELOG_BEGIN
CHANGELOG_END

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

CHANGELOG_BEGIN
CHANGELOG_END
@@ -41,4 +41,4 @@ ENV PATH="/home/daml/.daml/bin:${PATH}"
WORKDIR /home/daml
EOF

docker build ${tmpdir}
docker build -t "digitalasset/daml-sdk:${version}" ${tmpdir}
Copy link
Contributor

Choose a reason for hiding this comment

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

Usually the first segment (before /) in a Docker tag is the repo, so local tags are (by convention) not nested. Perhaps daml-sdk-head:${version} instead?

Also, if we're considering names, it may be worth not tagging them with 0, but instead something like $(git show -s --format=%cd-%h --date=format:%Y%m%d-%H%M%S)? (Only talking about changing the image name here; the build inside Docker should definitely use 0.0.0 otherwise it will take ages.)

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure it makes sense to keep the docker images more persistent than SDK head itself. I think just overwriting is fine and arguably convenient since you get a fixed hash every time.

Copy link
Contributor

@cocreature cocreature left a comment

Choose a reason for hiding this comment

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

Thanks! I agree with @garyverhaegen-da that removing the slash might be less confusing.

@@ -41,4 +41,4 @@ ENV PATH="/home/daml/.daml/bin:${PATH}"
WORKDIR /home/daml
EOF

docker build ${tmpdir}
docker build -t "digitalasset/daml-sdk:${version}" ${tmpdir}
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure it makes sense to keep the docker images more persistent than SDK head itself. I think just overwriting is fine and arguably convenient since you get a fixed hash every time.

@cocreature
Copy link
Contributor

for reference, the current docker image name makes sense since it matches the one we push to dockerhub making it as easy as possible to swap out a build relying on a released version against one relying on HEAD so let’s keep it.

@remyhaemmerle-da remyhaemmerle-da merged commit e2c7dd0 into main Feb 5, 2021
@remyhaemmerle-da remyhaemmerle-da deleted the remy-docker-local branch February 5, 2021 10:07
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.

3 participants