multiarch / centos

:earth_africa: `centos` Docker image for multiple architectures
MIT License
9 stars 5 forks source link

Implement container image push. #13

Closed junaruga closed 5 years ago

junaruga commented 5 years ago

I implemented a pipeline to the Docker Hub https://hub.docker.com/r/multiarch/centos/tags/ .

I tested it at my docker container repository, changing the setting in .traivs.yml like this.

-        - DOCKER_SERVER=docker.io
-        - DOCKER_REPO=$DOCKER_SERVER/multiarch/centos
+        # - DOCKER_SERVER=docker.io
+        # - DOCKER_REPO=$DOCKER_SERVER/multiarch/centos
+        - DOCKER_SERVER=quay.io
+        - DOCKER_REPO=$DOCKER_SERVER/junaruga/multiarch-centos

Here is the result. You can see the uploaded container images on the website. https://quay.io/repository/junaruga/multiarch-centos?tab=tags

Below is also test for the images. An error for 7-armhfp-iso-slim is expected. That's okay.

$ uname -m
x86_64

$ docker run --rm --privileged multiarch/qemu-user-static:register --reset

$ docker run --rm -t quay.io/junaruga/multiarch-centos:7-armhfp-iso-slim uname -m
standard_init_linux.go:187: exec user process caused "no such file or directory"

$ docker run --rm -t quay.io/junaruga/multiarch-centos:7-armhfp-iso uname -m
armv7l

$ docker run --rm -t quay.io/junaruga/multiarch-centos:7-armhfp-clean uname -m
armv7l

Like "multiarch/fedora", we need to set DOCKER_USERNAME and DOCKER_PASSWORD at this repository's Travis CI settings. https://travis-ci.org/multiarch/centos/settings

I have a permission to edit the Settings. But I do not know the password. So, @moul can you set it?

It's okay to merge this PR before setting it.

junaruga commented 5 years ago

1 note: I changed the logic about repo from getting from repo file to from getting from argument. That was to align to other compatible images' implementations.

Could you review this PR? Are you fine for the PR?

junaruga commented 5 years ago

Thanks for the reviewing. I merged.

junaruga commented 5 years ago

@moul did set DOCKER_PASSWORD for this repository's Travis CI. Now armhfp container image is available. :)

$ uname -m
x86_64

$ docker run --rm --privileged multiarch/qemu-user-static:register --reset

$ docker run --rm -t multiarch/centos:armhfp-iso uname -m
armv7l

$ docker run --rm -t multiarch/centos:armhfp-clean uname -m
armv7l