icp/dev/Dockerfile

26 lines
1.0 KiB
Docker
Raw Normal View History

2018-05-05 20:41:55 +00:00
FROM ubuntu:18.04
WORKDIR /data
2018-05-05 20:56:32 +00:00
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y apache2
2018-05-05 20:41:55 +00:00
RUN rm /etc/apache2/sites-enabled/000-default.conf
2018-05-05 20:56:32 +00:00
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql libapache2-mod-wsgi-py3
2018-05-05 22:18:02 +00:00
# make for testing
2018-05-05 23:46:11 +00:00
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y virtualenv make sudo gcc
2018-05-05 20:56:32 +00:00
RUN ln -s /data/dev/apache-local.conf /etc/apache2/sites-enabled/
2018-05-06 14:17:41 +00:00
RUN a2enmod ssl
2018-05-05 20:56:32 +00:00
#RUN a2enmod rewrite
2018-05-05 20:41:55 +00:00
2018-05-05 22:18:02 +00:00
RUN sed -i "s#data_directory = '.*'#data_directory = '/data/run/postgres'#" /etc/postgresql/10/main/postgresql.conf
RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/10/main/pg_hba.conf
RUN echo "listen_addresses='*'" >> /etc/postgresql/10/main/postgresql.conf
2018-05-06 12:11:47 +00:00
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y docker.io libmpich-dev nano
RUN echo 'DOCKER_OPTS="-g /data/run/docker"' >> /etc/default/docker
RUN adduser --system --no-create-home --home /data --uid 1001 unpriv
RUN usermod -a -G docker www-data
2018-05-05 20:41:55 +00:00
CMD /data/dev/run-internal.sh