Commit 338bbf34 authored by Sebastien Moretti's avatar Sebastien Moretti
Browse files

Add starter script

parent 2845111d
...@@ -47,8 +47,12 @@ RUN echo '# OS update' \ ...@@ -47,8 +47,12 @@ RUN echo '# OS update' \
&& cd /etc/apache2/sites-enabled/ \ && cd /etc/apache2/sites-enabled/ \
&& rm -f *.conf \ && rm -f *.conf \
&& ln -s /usr/local/UCNEbase_web.git/conf/container--UCNEbase.apache.conf /etc/apache2/sites-enabled/ \ && ln -s /usr/local/UCNEbase_web.git/conf/container--UCNEbase.apache.conf /etc/apache2/sites-enabled/ \
&& mkdir -p /var/run/apache2 \
&& . /etc/apache2/envvars \
&& apache2 -t \
&& echo '# Prepare starter scripts' \ && echo '# Prepare starter scripts' \
&& echo ... \ && echo "#!/bin/bash\nservice mysql start && service apache2 start" >/usr/local/UCNEbase_web.git/conf/starter \
&& chmod a+rx /usr/local/UCNEbase_web.git/conf/starter \
&& echo '# CLEANING' \ && echo '# CLEANING' \
&& echo '## So try to remove manually useless stuff' \ && echo '## So try to remove manually useless stuff' \
&& apt remove -y *-dev git wget cmake make swig autoconf check gcc g++ gfortran python3* patchelf \ && apt remove -y *-dev git wget cmake make swig autoconf check gcc g++ gfortran python3* patchelf \
...@@ -69,5 +73,5 @@ ENV LC_ALL="C" ...@@ -69,5 +73,5 @@ ENV LC_ALL="C"
HEALTHCHECK CMD echo ....... || exit 1 HEALTHCHECK CMD echo ....... || exit 1
ENTRYPOINT ["service", "mysql", "start", "&&", "service", "apache2", "start"] ENTRYPOINT ["/usr/local/UCNEbase_web.git/conf/starter"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment