Skip to content

Commit

Permalink
chore(docker): change CMD to bin/proxy/startup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fduxiao authored and fduxiao committed Jun 11, 2018
1 parent 41ddb7a commit e7ef9cc
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 6 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM alpine
RUN apk --update --no-cache add nodejs git && \
git clone /~https://github.com/Tencent/TSW.git
WORKDIR TSW
RUN apk --update --no-cache add procps git nodejs bash gawk
RUN git clone /~https://github.com/Tencent/TSW.git /TSW
WORKDIR /TSW
VOLUME /data/release/node_modules/
RUN npm install --no-optional
EXPOSE 80
CMD ["node", "--inspect", "index.js"]
ENV IS_DOCKER=1
CMD ["/TSW/bin/proxy/startup.sh"]

Empty file modified bin/proxy/dump.alpha.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/dump.config.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/dump.cpu.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/dump.global.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/dump.h5test.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/dump.heap.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/kill.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/reload.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/restart.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/shutdown.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/so.sh
100644 → 100755
Empty file.
10 changes: 8 additions & 2 deletions bin/proxy/startup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ echo "args: $CUR_ARGS"

cd ${CUR_DIR}/../
pwd
./TSW --expose_internals $CUR_ARGS ./proxy >> ../log/run.log.0 2>&1 &

echo start done
IS_DOCKER=${IS_DOCKER:=0}
if [ ${IS_DOCKER} = 1 ]
then
./TSW --expose_internals $CUR_ARGS ./proxy >> ../log/run.log.0 2>&1
else
./TSW --expose_internals $CUR_ARGS ./proxy >> ../log/run.log.0 2>&1 &
echo start down
fi

Empty file modified bin/proxy/top.sh
100644 → 100755
Empty file.
Empty file modified bin/proxy/top100.sh
100644 → 100755
Empty file.

0 comments on commit e7ef9cc

Please sign in to comment.