edwagbb commited on
Commit
2a440d1
·
verified ·
1 Parent(s): c415643

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -5,17 +5,20 @@ RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
5
  ENV localrepoPath /tmp/okok
6
 
7
  COPY <<EOF /start.sh
8
- while true; do
 
 
 
9
  export Interval=10000 &&\
10
  git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal &&\
11
- ls /tmp/gitpipelocal &&\
12
  cd /tmp/gitpipelocal && npm install &&\
13
  git clone $remoteUrlWithToken $localrepoPath &&\
14
  cd $localrepoPath &&\
15
  npm install &&\
16
  export func_dir=$localrepoPath/functions &&\
17
  export static_dir=$localrepoPath/static &&\
18
- (node index.js & node /tmp/gitpipelocal/index.js)
 
19
  sleep 10
20
  done
21
  EOF
 
5
  ENV localrepoPath /tmp/okok
6
 
7
  COPY <<EOF /start.sh
8
+ #!/bin/bash
9
+ retry=true
10
+
11
+ while $retry; do
12
  export Interval=10000 &&\
13
  git clone https://github.com/edwagbb/GitPipeLocal.git /tmp/gitpipelocal &&\
 
14
  cd /tmp/gitpipelocal && npm install &&\
15
  git clone $remoteUrlWithToken $localrepoPath &&\
16
  cd $localrepoPath &&\
17
  npm install &&\
18
  export func_dir=$localrepoPath/functions &&\
19
  export static_dir=$localrepoPath/static &&\
20
+ (node index.js & node /tmp/gitpipelocal/index.js) &&\
21
+ retry=false
22
  sleep 10
23
  done
24
  EOF