diff --git a/semaphore.sh b/semaphore.sh index 8e03b19..00252e7 100644 --- a/semaphore.sh +++ b/semaphore.sh @@ -40,7 +40,8 @@ removeContainer() { buildContainer() { printf "Building Container...\n\n" - curl -o $SCRIPT_DIR/Dockerfile https://raw.githubusercontent.com/UNiXMIT/UNiXIaC/main/Dockerfile + sudo ${containerRuntime} pull semaphoreui/semaphore:latest + curl -o Dockerfile https://raw.githubusercontent.com/UNiXMIT/UNiXIaC/main/Dockerfile sudo ${containerRuntime} build --tag ${containerRepo} -f Dockerfile } @@ -49,7 +50,6 @@ startContainer() { sudo ${containerRuntime} run -d --name ${containerName} "${runOptions[@]}" ${containerRepo} } -SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) checkContainerRuntime removeContainer buildContainer