Skip to content

Commit

Permalink
update entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
bhlx3lyx7 committed Aug 26, 2016
1 parent 0b4863b commit fe86963
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
1 change: 1 addition & 0 deletions docker/bark-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RUN rm /usr/local/hadoop-2.6.0/share/hadoop/yarn/lib/jline-0.9.94.jar
RUN cd /apache && wget https://www.apache.org/dist/tomcat/tomcat-7/v7.0.70/bin/apache-tomcat-7.0.70.tar.gz && tar -xvf apache-tomcat-7.0.70.tar.gz
ADD config/tomcat /etc/init.d/
RUN chmod 775 /etc/init.d/tomcat
ENV TOMCAT_HOME /apache/apache-tomcat-7.0.70

#install mongodb
ADD config/mongodb-org-3.2.repo /etc/yum.repos.d/
Expand Down
14 changes: 3 additions & 11 deletions docker/bark/start-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,10 @@ $HADOOP_PREFIX/sbin/start-yarn.sh
#spark start
$SPARK_HOME/sbin/start-all.sh

#start tomcat service
/etc/init.d/tomcat start
#start mongodb
mongod -f /etc/mongod.conf
#start script
nohup ./bark_regular_run.sh &


CMD=${1:-"exit 0"}
if [[ "$CMD" == "-d" ]];
then
service sshd stop
/usr/sbin/sshd -D -d
else
/bin/bash -c "$*"
fi
#start tomcat
$TOMCAT_HOME/bin/catalina.sh run

0 comments on commit fe86963

Please sign in to comment.