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

set -e
set -vx

8
9
# Force removing stfubuntu docker image
if [ "$1" == "--force-stfubuntu" ]; then
10
    if [ -n `docker images -q stfubuntu` ]; then
11
12
        docker rmi --force `docker images -q stfubuntu` || exit 1
    fi
13
14
fi
# Check and build stfubuntu image
15
if [ -z `docker images -q stfubuntu` ]; then
16
    docker build --no-cache --tag stfubuntu:18.04 -f Dockerfile.stfubuntu --force-rm  . || exit 1
17
18
fi

19
docker build --no-cache --tag ttf_t012_mec --force-rm  . || ( echo "Docker build failed: $?"; exit 1 )
20
21

docker images
22
docker inspect ttf_t012_mec:latest || ( echo "Docker inspect failed: $?"; exit 1 )
23
24
25

# That's all Floks
exit 0