Commit d7d2fa70 authored by Sebastien Moretti's avatar Sebastien Moretti
Browse files

Add missing requirements + Clone UCNEbase_web.git

parent edc9f482
...@@ -3,6 +3,7 @@ TODO ...@@ -3,6 +3,7 @@ TODO
- Apache without SSL/HTTPS and mod_security in the container - Apache without SSL/HTTPS and mod_security in the container
- Apache different ports for each base, e.g. 8081 for UCNEbase, 8082 for EPD - Apache different ports for each base, e.g. 8081 for UCNEbase, 8082 for EPD
- MySQL conf in a container? - MySQL conf in a container?
- Send e-mails from the container?
- /data/download/clusters/galGal3_subclusters.txt is missing - /data/download/clusters/galGal3_subclusters.txt is missing
- Set local all external JS/CSS calls - Set local all external JS/CSS calls
- How to set https certificate in the container??? - How to set https certificate in the container???
......
...@@ -27,13 +27,16 @@ ENV USER=ucnebase ...@@ -27,13 +27,16 @@ ENV USER=ucnebase
RUN echo '# OS update' \ RUN echo '# OS update' \
&& yum update -y \ && yum update -y \
&& echo '# Install OS requirements' \ && echo '# Install OS requirements' \
&& yum install -y perl httpd wget git php-mysqlnd \ && yum install -y perl perl-CGI httpd postfix wget git php-mysqlnd \
&& wget 'https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm' \ && wget 'https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm' \
&& rpm -ivh *.rpm \ && rpm -ivh *.rpm \
&& rm -f *.rpm \ && rm -f *.rpm \
&& yum install -y mysql-community-server \ && yum install -y mysql-community-server \
&& echo '# Install UCNEbase' \ && echo '# Install UCNEbase' \
&& cd /usr/local/ \ && cd /usr/local/ \
&& git clone https://gitlab.sib.swiss/EPD/UCNEbase_web.git UCNEbase_web.git \
&& cd UCNEbase_web.git/ \
&& rm -Rf OLD/ .git* docker/ \
&& echo '# CLEANING' \ && echo '# CLEANING' \
&& echo '## So try to remove manually useless stuff' \ && echo '## So try to remove manually useless stuff' \
&& yum remove -y wget git *-devel gcc \ && yum remove -y wget git *-devel gcc \
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# Build Docker image # Build Docker image
export UCNEBASE_VERSION=0.0.1 export UCNEBASE_VERSION=0.0.1
docker build -t ucnebase:$UCNEBASE_VERSION --no-cache=true --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg UCNEBASE_VERSION=$UCNEBASE_VERSION -f Dockerfile . 2>&1 >UCNEbase.Dockerfile.log docker build -t ucnebase:$UCNEBASE_VERSION --no-cache=true --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg UCNEBASE_VERSION=$UCNEBASE_VERSION -f Dockerfile . # 2>&1 >UCNEbase.Dockerfile.log
# List Docker local images (imported or built) # List Docker local images (imported or built)
docker images docker images
......
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