Codebase list powershell-empire / upstream/3.0_git20191203 .build.sh
upstream/3.0_git20191203

Tree @upstream/3.0_git20191203 (Download .tar.gz)

.build.sh @upstream/3.0_git20191203raw · history · blame

#!/usr/bin/env bash
set -ex
# SET THE FOLLOWING VARIABLES
# docker hub username
USERNAME=empireproject
# image name
IMAGE=empire
# version
VERSION="$(curl -s https://raw.githubusercontent.com/EmpireProject/Empire/master/lib/common/empire.py | grep "VERSION =" | cut -d '"' -f2)"

docker build --build-arg empireversion="$VERSION" -t $USERNAME/$IMAGE:latest .