build.sh 523 Bytes
Newer Older
1
#!/bin/bash
2
# Copyright ETSI 2018-2020
3
4
5
6
7
8
9
# See: https://forge.etsi.org/etsi-forge-copyright-statement.txt

set -e
set -vx

#check and build stfubuntu image
if [ -z `docker images -q stfubuntu` ]; then
10
  docker build --no-cache --tag stfubuntu:18.04 -f Dockerfile.stfubuntu --force-rm  . || exit 1
11
12
fi

13
docker build --no-cache --tag stf569_mec --force-rm  . || ( echo "Docker build failed: $?"; exit 1 )
14
15
16
17
18
19

docker images
docker inspect stf569_mec:latest || ( echo "Docker inspect failed: $?"; exit 1 )

# That's all Floks
exit 0