From d0ca7d90679b1b9bec4679718ee06f42ee5923f7 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 18 Apr 2023 14:26:37 +0100 Subject: [PATCH] make scripts docker compatible. --- Dockerfile | 2 +- install.sh | 3 ++- preinstall.sh | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d4badc17b7..e3ce3474ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:lunar # Install bash and curl and git. -RUN apt-get update && apt-get install -y bash && apt-get install -y curl && apt-get install -y git +RUN apt-get update && apt-get install -y bash && apt-get install -y curl && apt-get install -y git && apt-get -y install sudo RUN mkdir /usr/src/app diff --git a/install.sh b/install.sh index 22f0be227c..f741fa098b 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,8 @@ # If its not environment IS_DOCKER then exit -if[[ $IS_DOCKER == "true" ]]; then +if [[ $IS_DOCKER == "true" ]] +then echo "This script should run in the docker container." else # Pull latest changes diff --git a/preinstall.sh b/preinstall.sh index fa9d566ddc..ab6dc18938 100644 --- a/preinstall.sh +++ b/preinstall.sh @@ -62,7 +62,8 @@ if [[ ! $(which git) ]]; then fi -if[[ $IS_DOCKER == "true" ]]; then +if [[ $IS_DOCKER == "true" ]] +then echo "This script should run in the docker container." else GIT_REPO_URL=$(git config --get remote.origin.url)