Skip to content
Snippets Groups Projects
Commit 112bc51f authored by Pedro Ferreira's avatar Pedro Ferreira
Browse files

Fixed Jun2016-SP2 Dockerfile to listen from any host

parent 3dc340aa
Branches master
No related tags found
No related merge requests found
......@@ -24,8 +24,7 @@ COPY configs/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
#############################################################
# Enables repos, update system, install packages and clean up
#############################################################
RUN yum install -y epel-release \
wget
RUN yum -y install epel-release
# Update & upgrade
RUN yum update -y && \
......@@ -39,28 +38,27 @@ RUN groupadd -g 5000 monetdb && \
useradd -u 5000 -g 5000 monetdb
# Enable MonetDB repo
RUN wget -O /etc/yum.repos.d/monetdb.repo https://dev.monetdb.org/downloads/epel/monetdb.repo
RUN rpm --import https://dev.monetdb.org/downloads/MonetDB-GPG-KEY
RUN yum install -y http://dev.monetdb.org/downloads/epel/MonetDB-release-epel-1.1-1.monetdb.noarch.rpm
RUN rpm --import http://dev.monetdb.org/downloads/MonetDB-GPG-KEY
ARG MonetDBVersion=11.25.5
# Update & upgrade
RUN yum update -y
# Install MonetDB clients
RUN yum install -y MonetDB-stream-$MonetDBVersion \
MonetDB-client-$MonetDBVersion \
MonetDB-client-tools-$MonetDBVersion \
MonetDB-client-odbc-$MonetDBVersion
ARG MonetDBVersion=11.23.13
# Install MonetDB server
RUN yum install -y MonetDB-$MonetDBVersion \
MonetDB-SQL-server5-hugeint-$MonetDBVersion
MonetDB-stream-$MonetDBVersion \
MonetDB-client-$MonetDBVersion \
MonetDB-SQL-server5-$MonetDBVersion \
MonetDB-SQL-server5-hugeint-$MonetDBVersion \
MonetDB5-server-$MonetDBVersion \
MonetDB5-server-hugeint-$MonetDBVersion
# Install MonetDB extensions
RUN yum install -y MonetDB-geom-MonetDB5-$MonetDBVersion \
MonetDB-gsl-MonetDB5-$MonetDBVersion \
MonetDB-R-$MonetDBVersion \
MonetDB-python2-$MonetDBVersion
# RUN yum install -y MonetDB-lidar-$MonetDBVersion
MonetDB-R-$MonetDBVersion
# Clean up
RUN yum -y clean all
......@@ -80,9 +78,13 @@ COPY configs/.monetdb /home/monetdb/.monetdb
COPY scripts/init-db.sh /home/monetdb/init-db.sh
RUN chmod +x /home/monetdb/init-db.sh
# Init the db in a scipt to allow more than one process to run in the container
# As of the Jun2016 release, we have to set the property listenaddr to any host
# because now it only listens to the localhost by default
RUN echo "listenaddr=0.0.0.0" >> /var/monetdb5/dbfarm/.merovingian_properties
# Init the db in a script to allow more than one process to run in the container
# We need two: one for monetdbd and one for mserver
# The sript will init the database with using the unpreveledged user monetdb
# The script will init the database with using the unprivileged user monetdb
RUN su -c 'sh /home/monetdb/init-db.sh' monetdb
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment