diff options
author | Yibo Cai <yibo.cai@arm.com> | 2017-11-08 13:50:32 +0800 |
---|---|---|
committer | Yibo Cai <yibo.cai@arm.com> | 2017-11-09 15:29:18 +0800 |
commit | 0ea4055e4e5b7569e4a477aa86c460f4337707ba (patch) | |
tree | f1f048f9a9b981d100f094ea173347e7be877ad6 | |
parent | e1a04c52190da834a68aa2fbb3777773b658b261 (diff) |
build: support aarch64 deployment images
- Use per architecture build-ARCH.yaml if available
- Repos for aarch64 OS and docker images are passed by env
Change-Id: Id7f9ca6dad690b8d375a3d8f488c7bf955a128ad
Signed-off-by: Yibo Cai <yibo.cai@arm.com>
-rwxr-xr-x | build.sh | 7 | ||||
-rw-r--r-- | build/build-aarch64.yaml | 41 |
2 files changed, 47 insertions, 1 deletions
@@ -85,7 +85,12 @@ function prepare_env() function download_packages() { - python $COMPASS_PATH/build/parser.py $COMPASS_PATH/build/build.yaml + build_yaml_file=build.yaml + if [ -f "$COMPASS_PATH/build/build-$COMPASS_ARCH.yaml" ]; then + build_yaml_file=build-$COMPASS_ARCH.yaml + fi + + python $COMPASS_PATH/build/parser.py $COMPASS_PATH/build/$build_yaml_file } function build_tar() diff --git a/build/build-aarch64.yaml b/build/build-aarch64.yaml new file mode 100644 index 00000000..47bd0eb1 --- /dev/null +++ b/build/build-aarch64.yaml @@ -0,0 +1,41 @@ +--- +packages: + - name: CentOS-7-aarch64-Minimal-1611.iso + description: "Centos ISO of each host for provisioning" + get_method: cached + url: $COMPASS_ISO_REPO/CentOS-7-aarch64-Minimal-1611.iso + + - name: ubuntu-16.04-server-arm64.iso + description: "Ubuntu ISO of each host for provisioning" + get_method: cached + url: $COMPASS_ISO_REPO/ubuntu-16.04-server-arm64.iso + + - name: compass-deck + description: "RESTful API and DB Handlers for Compass" + get_method: docker + url: $COMPASS_DOCKER_REPO/compass-deck:latest + + - name: compass-tasks-k8s + description: "compass task container for kubernets deployment via kargo" + get_method: docker + url: $COMPASS_DOCKER_REPO/compass-tasks-k8s:latest + + - name: compass-cobbler + description: "cobbler container for compass" + get_method: docker + url: $COMPASS_DOCKER_REPO/compass-cobbler:latest + + - name: compass-db + description: "datebase container for compass" + get_method: docker + url: $COMPASS_DOCKER_REPO/compass-db:latest + + - name: compass-mq + description: "message queue container for compass" + get_method: docker + url: $COMPASS_DOCKER_REPO/compass-mq:latest + + - name: compass-docker-compose + description: "containerized compass compose ansible" + get_method: git + url: $COMPASS_GIT_REPO/compass-docker-compose |