snappass icon indicating copy to clipboard operation
snappass copied to clipboard

upload docker image to dockerhub / github registry

Open yongwen opened this issue 8 years ago • 13 comments

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.

yongwen avatar Jul 19 '16 00:07 yongwen

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.

samueldg avatar Jul 20 '16 00:07 samueldg

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".

yongwen avatar Jul 20 '16 00:07 yongwen

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

nichochar avatar May 06 '18 19:05 nichochar

yes +1 on this

terowz avatar May 16 '18 15:05 terowz

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.

samueldg avatar Sep 11 '18 21:09 samueldg

Super Nice!

On Tue, Sep 11, 2018, 2:46 PM Samuel Dion-Girardeau < [email protected]> wrote:

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pinterest/snappass/issues/13#issuecomment-420436625, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeQY3MmNyw4rwE7ZlvbtcMubpDRKJ02ks5uaC8qgaJpZM4JPRHt .

yongwen avatar Sep 11 '18 22:09 yongwen

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

cc @jparise

nichochar avatar Sep 11 '18 23:09 nichochar

Could you please upload an official image ? <3

Majed6 avatar Jun 23 '19 07:06 Majed6

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

jparise avatar Jun 25 '19 18:06 jparise

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

yongwen avatar Sep 08 '19 07:09 yongwen

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

jparise avatar Sep 09 '19 16:09 jparise

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

yongwen avatar Sep 09 '19 16:09 yongwen

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

s4ke avatar Jun 23 '22 16:06 s4ke