mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-01-16 23:00:51 +00:00
make scripts docker compatible.
This commit is contained in:
parent
696e3c71c2
commit
fe20747317
3 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue