mirror of
https://git.netzspielplatz.de/docker-multiarch/minio.git
synced 2025-11-08 17:09:24 +00:00
Removing timely build
want to see what is added to container repo
This commit is contained in:
parent
53f02d9bf1
commit
a5452eaf28
2 changed files with 29 additions and 14 deletions
|
|
@ -51,6 +51,26 @@ buildx:
|
||||||
- docker build --platform=local -o . ./docker-buildx
|
- docker build --platform=local -o . ./docker-buildx
|
||||||
|
|
||||||
|
|
||||||
|
# deploy:
|
||||||
|
# image: docker:19.03
|
||||||
|
# stage: deploy
|
||||||
|
# services:
|
||||||
|
# - name: docker:19.03-dind
|
||||||
|
# command: ["--experimental"]
|
||||||
|
# before_script:
|
||||||
|
# - mkdir -p ~/.docker/cli-plugins
|
||||||
|
# - mv buildx ~/.docker/cli-plugins/docker-buildx
|
||||||
|
# - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
|
# script:
|
||||||
|
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
# - docker buildx create --use --name mybuilder
|
||||||
|
# - docker buildx build --platform linux/arm64 --push -t $CI_REGISTRY_IMAGE .
|
||||||
|
# - docker buildx build --platform linux/arm64 . -t minio-arm64
|
||||||
|
# - docker tag minio-arm64 registry.gitlab.com/$CI_PROJECT_PATH/minio-arm64:latest
|
||||||
|
# - docker tag minio-arm64 registry.gitlab.com/$CI_PROJECT_PATH/minio-arm64:$timestamp
|
||||||
|
# - docker push registry.gitlab.com/$CI_PROJECT_PATH/minio-arm64:latest
|
||||||
|
# - docker push registry.gitlab.com/$CI_PROJECT_PATH/minio-arm64:$timestamp
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: docker:19.03
|
image: docker:19.03
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
@ -62,11 +82,6 @@ deploy:
|
||||||
- mv buildx ~/.docker/cli-plugins/docker-buildx
|
- mv buildx ~/.docker/cli-plugins/docker-buildx
|
||||||
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
script:
|
script:
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
- docker buildx create --use --name mybuilder
|
- docker buildx create --use --name mybuilder
|
||||||
- docker buildx build --platform linux/arm64 --push -t $CI_REGISTRY_IMAGE .
|
- docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --push -t $CI_REGISTRY_IMAGE .
|
||||||
# - docker buildx build --platform linux/arm64 . -t minio-arm64
|
|
||||||
# - docker tag minio-arm64 registry.gitlab.com/$CI_PROJECT_PATH/minio-arm64:latest
|
|
||||||
# - docker tag minio-arm64 registry.gitlab.com/$CI_PROJECT_PATH/minio-arm64:$timestamp
|
|
||||||
# - docker push registry.gitlab.com/$CI_PROJECT_PATH/minio-arm64:latest
|
|
||||||
# - docker push registry.gitlab.com/$CI_PROJECT_PATH/minio-arm64:$timestamp
|
|
||||||
14
Dockerfile
14
Dockerfile
|
|
@ -9,10 +9,10 @@ ENV GOPATH /go
|
||||||
ENV CGO_ENABLED 0
|
ENV CGO_ENABLED 0
|
||||||
ENV GO111MODULE on
|
ENV GO111MODULE on
|
||||||
|
|
||||||
RUN \
|
# RUN \
|
||||||
apk add --no-cache git && \
|
# apk add --no-cache git && \
|
||||||
git clone https://github.com/minio/minio && cd minio && \
|
# git clone https://github.com/minio/minio && cd minio && \
|
||||||
go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)"
|
# go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)"
|
||||||
|
|
||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
|
|
||||||
|
|
@ -28,9 +28,9 @@ COPY --from=0 /go/bin/minio /usr/bin/minio
|
||||||
COPY --from=0 /go/minio/CREDITS /third_party/
|
COPY --from=0 /go/minio/CREDITS /third_party/
|
||||||
COPY --from=0 /go/minio/dockerscripts/docker-entrypoint.sh /usr/bin/
|
COPY --from=0 /go/minio/dockerscripts/docker-entrypoint.sh /usr/bin/
|
||||||
|
|
||||||
RUN \
|
# RUN \
|
||||||
apk add --no-cache ca-certificates 'curl>7.61.0' 'su-exec>=0.2' && \
|
# apk add --no-cache ca-certificates 'curl>7.61.0' 'su-exec>=0.2' && \
|
||||||
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf
|
# echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]
|
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue