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

upload docker image to dockerhub / github registry #13

Open
yongwen opened this issue Jul 19, 2016 · 13 comments
Open

upload docker image to dockerhub / github registry #13

yongwen opened this issue Jul 19, 2016 · 13 comments

Comments

@yongwen
Copy link
Member

yongwen commented Jul 19, 2016

would be nice to create and upload the snappass docker image to dockerhub so the snappass server could be easily pulled and started, demo, etc.

@samueldg
Copy link
Contributor

For now I created an automatic build on samueldg/snappass.
However, the best solution to have someone with rights to the pinterest GitHub account link it with an account on the Docker hub, and do the same automated build setup to always have the latest and greatest image available.
Also, using git tags for versions would allow having different tags for the Docker repository as well.

@yongwen
Copy link
Member Author

yongwen commented Jul 20, 2016

Thanks @samueldg ! and Yes, I do plan to add the auto built image to Pinterest's docker hub account so make it a little bit "official".

@nichochar
Copy link
Collaborator

Progress on this, @yongwen ? Is it still something we're looking to do ?

@terowz
Copy link

terowz commented May 16, 2018

yes +1 on this

@samueldg
Copy link
Contributor

Bumping this to let you know there's probably interest out there:
The unofficial image I have set up (samueldg/snappass) hit the 1K pulls mark recently.

@yongwen
Copy link
Member Author

yongwen commented Sep 11, 2018 via email

@nichochar
Copy link
Collaborator

@yongwen is it possible to upload this to a pinterest public docker organization? '

cc @jparise

@Majed6
Copy link

Majed6 commented Jun 23, 2019

Could you please upload an official image ? <3

@jparise
Copy link
Collaborator

jparise commented Jun 25, 2019

We're planning on using GitHub's package registry for this once we get access to it.

@yongwen yongwen changed the title upload docker image to dockerhub upload docker image to dockerhub / github registry Sep 8, 2019
@yongwen
Copy link
Member Author

yongwen commented Sep 8, 2019

uploaded the latest docker image to https://github.com/pinterest/snappass/packages/20674
@jparise @Majed6 can you verify if you can pull the image: docker pull docker.pkg.github.com/pinterest/snappass/snappass:4acef097e8ad64933e53c17ca5f1144bacc4859f

Not very sure how the default docker pull permission is for public consumption, as it seems to require docker login. this is the help page for using github registry https://help.github.com/en/articles/configuring-docker-for-use-with-github-package-registry

@jparise
Copy link
Collaborator

jparise commented Sep 9, 2019

Yes, it looks like GitHub's Docker registry requires authentication. Given that, we might be better off with a public image on Docker Hub.

@yongwen
Copy link
Member Author

yongwen commented Sep 9, 2019

yeah looks like it. Maybe something we could give feedback to Github package team to support public docker registry for public repo.

@s4ke
Copy link

s4ke commented Jun 23, 2022

For anyone running into this issue that has their own registry, you can use this script to build the image:

#!/bin/bash

VERSION="1.6.0"
RELEASE="https://github.com/pinterest/snappass/archive/refs/tags/v$VERSION.tar.gz"
DOCKER_REPOSITORY="<your-repo>/snappass"
DOCKER_TAG="$VERSION"

set -e -u -x -o pipefail

rm -rf "snappass-$VERSION"

curl -L "$RELEASE" -o - | tar -zxf -

cd "snappass-$VERSION"

docker build -f Dockerfile -t $DOCKER_REPOSITORY:$VERSION .
docker push $DOCKER_REPOSITORY:$VERSION

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

No branches or pull requests

7 participants