mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
make scripts docker compatible.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user