Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Build aarch64 image
- Loading branch information
Jimmy Lafontaine Rivera
committed
Jan 27, 2020
1 parent
1bb39bc
commit a976e39
Showing
7 changed files
with
68 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import yaml | ||
|
|
||
| with open('container-tag.yaml') as f: | ||
| data = yaml.safe_load(f) | ||
|
|
||
| print(data.get('tag')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # !/bin/bash | ||
|
|
||
| source ci_scripts/variables.sh | ||
| ROOTDIR=`pwd` | ||
|
|
||
| for IMAGE_NAME in ${IMAGE_NAMES[@]}; do | ||
| cd $ROOTDIR/docker/$IMAGE_NAME | ||
| IMAGE_TAG=`python $ROOTDIR/ci_scripts/get_tag.py` | ||
| docker build -t cachengo/$IMAGE_NAME-$AARCH:$IMAGE_TAG . | ||
| #docker tag cachengo/$IMAGE_NAME:latest cachengo/$IMAGE_NAME-$AARCH:$IMAGE_TAG | ||
| docker push cachengo/$IMAGE_NAME-$AARCH:$IMAGE_TAG | ||
| done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| source ci_scripts/variables.sh | ||
|
|
||
| export DOCKER_CLI_EXPERIMENTAL=enabled | ||
| ROOTDIR=`pwd` | ||
|
|
||
| for IMAGE_NAME in ${IMAGE_NAMES[@]}; do | ||
| cd $ROOTDIR/docker/$IMAGE_NAME | ||
| IMAGE_TAG=`python $ROOTDIR/ci_scripts/get_tag.py` | ||
| docker manifest create --amend cachengo/$IMAGE_NAME:$IMAGE_TAG cachengo/$IMAGE_NAME-x86_64:$IMAGE_TAG cachengo/$IMAGE_NAME-aarch64:$IMAGE_TAG | ||
| docker manifest push --purge cachengo/$IMAGE_NAME:$IMAGE_TAG | ||
| done | ||
|
|
||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export AARCH=`uname -m` | ||
| export IMAGE_NAMES=(bldr-alpine3 bldr-debian-python bldr-ubuntu16-c-go bldr-ubuntu18-c-go) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters