make scripts docker compatible.

This commit is contained in:
Simon Larsen 2023-04-18 14:26:37 +01:00
parent 696e3c71c2
commit fe20747317
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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)