mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
make scripts docker compatible.
This commit is contained in:
parent
696e3c71c2
commit
fe20747317
@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:lunar
|
FROM ubuntu:lunar
|
||||||
|
|
||||||
# Install bash and curl and git.
|
# 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
|
RUN mkdir /usr/src/app
|
||||||
|
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
# If its not environment IS_DOCKER then exit
|
# 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."
|
echo "This script should run in the docker container."
|
||||||
else
|
else
|
||||||
# Pull latest changes
|
# Pull latest changes
|
||||||
|
@ -62,7 +62,8 @@ if [[ ! $(which git) ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if[[ $IS_DOCKER == "true" ]]; then
|
if [[ $IS_DOCKER == "true" ]]
|
||||||
|
then
|
||||||
echo "This script should run in the docker container."
|
echo "This script should run in the docker container."
|
||||||
else
|
else
|
||||||
GIT_REPO_URL=$(git config --get remote.origin.url)
|
GIT_REPO_URL=$(git config --get remote.origin.url)
|
||||||
|
Loading…
Reference in New Issue
Block a user