Adding more troubleshooting statements

This commit is contained in:
Kelly Hair 2020-04-14 17:51:17 -04:00
parent 9367f8ebe0
commit e309b4be6e

View file

@ -13,6 +13,10 @@ build:ARM64:
# Current thinking is to add build the container & tag with both the date # Current thinking is to add build the container & tag with both the date
# in YYYY-mm-dd-h-m-s format as well as "latest": # in YYYY-mm-dd-h-m-s format as well as "latest":
- apk add qemu-aarch64_be - apk add qemu-aarch64_be
- lsb_release -a
- ls /proc/sys/fs/binfmt_misc/
- cat /proc/sys/fs/binfmt_misc/qemu-aarch64
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- ls -ltar /usr/bin/ - ls -ltar /usr/bin/
# - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes # - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- wget https://github.com/docker/buildx/releases/download/v0.3.1/buildx-v0.3.1.linux-amd64 - wget https://github.com/docker/buildx/releases/download/v0.3.1/buildx-v0.3.1.linux-amd64
@ -24,7 +28,7 @@ build:ARM64:
- timestamp=$(date +%Y%m%d%H%M%S) - timestamp=$(date +%Y%m%d%H%M%S)
- cd $CI_PROJECT_DIR/ - cd $CI_PROJECT_DIR/
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx build --platform=linux/arm64/v8 --no-cache . -t minio-arm64 - docker buildx build --platform=linux/arm64 --no-cache . -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:latest
- docker tag minio-arm64 registry.gitlab.com/$CI_PROJECT_PATH/minio-arm64:$timestamp - 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:latest