aboutsummaryrefslogtreecommitdiff
path: root/compass/compass-mq.sh
blob: 60a5f5ddddc785d6dbf8edac637f2e4d5364ba16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -ex

trap cleanup_exit INT TERM EXIT

cleanup_exit()
{
    rm -rf ${HOME}/.docker
}

mkdir -p ${HOME}/.docker
sed -e "s|\${DOCKER_AUTH}|${DOCKER_AUTH}|" < ${WORKSPACE}/config.json > ${HOME}/.docker/config.json
chmod 0600 ${HOME}/.docker/config.json

docker build -t linaro/compass-mq:latest compass-mq
docker push linaro/compass-mq:latest