Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EPD
UCNEbase Web
Commits
338bbf34
Commit
338bbf34
authored
Feb 16, 2022
by
Sebastien Moretti
Browse files
Add starter script
parent
2845111d
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker/Dockerfile
View file @
338bbf34
...
...
@@ -47,8 +47,12 @@ RUN echo '# OS update' \
&&
cd
/etc/apache2/sites-enabled/
\
&&
rm
-f
*
.conf
\
&&
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
...
\
&&
echo
"#!/bin/bash
\n
service 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
'## So try to remove manually useless stuff'
\
&&
apt remove
-y
*
-dev
git wget cmake make swig autoconf check gcc g++ gfortran python3
*
patchelf
\
...
...
@@ -69,5 +73,5 @@ ENV LC_ALL="C"
HEALTHCHECK
CMD echo ....... || exit 1
ENTRYPOINT
["
service", "mysql", "start", "&&", "service", "apache2", "
start"]
ENTRYPOINT
["
/usr/local/UCNEbase_web.git/conf/
start
er
"]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment