blob: ff475c13d6ad2d7432e2ec5e4bad23edac0e9cf8 [file] [log] [blame]
Riku Voipiofc784492021-07-22 11:47:22 +03001#!/bin/bash
Riku Voipio9acfb6b2021-07-22 14:08:12 +03002set -e
3
4sudo apt-get -y -qq update
5sudo apt-get -y -qq install --no-install-recommends unzip
6curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
7unzip awscliv2.zip
8sudo ./aws/install
9
10aws configure list
11ECR=987685672616.dkr.ecr.us-east-1.amazonaws.com
12git clone https://gitlab.com/suihkulokki/fvp-docker
13cd fvp-docker
Riku Voipiofc784492021-07-22 11:47:22 +030014
15aws s3 cp --recursive s3://trustedfirmware-fvp/ .
Riku Voipio9acfb6b2021-07-22 14:08:12 +030016aws ecr get-login-password --region us-east-1|docker login --username AWS --password-stdin $ECR
17
18TGZS=$(F*.tgz)
19for tarball in TGZS
20do
21 tag=$(./create-model-tag.sh $tarball)
22 mkdir -p $tag
23 cp setup-sshd $tag/
24 ./create-model-dockerfile.sh $tarball $tag
25 (
26 set -ex
27 cd $tag
28 docker build --tag $ECR/fvp:$tag
29 echo "Docker image created" && \
30 echo "Docker image name: fvp:$${tag}"
31 docker push $ECR/fvp:$tag
32 )
33
34done
Riku Voipiofc784492021-07-22 11:47:22 +030035