Skip to content

Commit

Permalink
#4: Added install scripts for resolver.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bystroushaak committed Mar 16, 2016
1 parent 0e9d5ff commit 2889095
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
20 changes: 13 additions & 7 deletions resolver/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM centos:centos7

RUN yum -y update; yum clean all
RUN yum -y install sudo epel-release wget tar; yum clean all
RUN yum -y install sudo epel-release wget tar unzip; yum clean all



Expand Down Expand Up @@ -59,15 +59,21 @@ EXPOSE 8080


# Copy and run installation scripts
#ADD /install_tomcat.sh /usr/bin/install_tomcat.sh
#ADD ./install_resolver.sh /usr/bin/install_resolver.sh
#RUN chmod +x /usr/bin/install_tomcat.sh
#RUN chmod +x /usr/bin/install_resolver.sh
#RUN /usr/bin/install_tomcat.sh
#RUN /usr/bin/install_resolver.sh
ADD install_resolver_postgres.sh /usr/bin/install_resolver_postgres.sh
ADD install_resolver2_root.sh /usr/bin/install_resolver2_root.sh
RUN chmod +x /usr/bin/install_resolver_postgres.sh
RUN chmod +x /usr/bin/install_resolver2_root.sh


# Create directory with configuration, which will be mounted from the host
#RUN mkdir /etc/resolver


# Install resolver
RUN sudo chmod 777 /usr/share/tomcat/webapps
RUN sudo -u postgres install_resolver_postgres.sh
RUN sudo install_resolver2_root.sh


EXPOSE 80
EXPOSE 443
3 changes: 3 additions & 0 deletions resolver/docker/build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2F
wget http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.8/bin/apache-tomcat-7.0.8.tar.gz


cp "$WORK_DIR/scripts/*" $TMP_DIR
cp "$WORK_DIR/Dockerfile" .


docker build --rm=true -t urn_nbn_resolver .

cd $WORK_DIR
Expand Down

0 comments on commit 2889095

Please sign in to comment.