Commit 8467d1df authored by Leo Gordon's avatar Leo Gordon
Browse files

the guihive image is now based on ensembl-hive

parent f461d481
......@@ -2,37 +2,23 @@
#
# docker build -t guihive .
#
# docker run -p 8081:8080 -it guihive ## Start the server. Port mapping = external:internal
# docker run -p 8082:8080 -it guihive bash ## If you need to do any prior maintenance/tuning - do it in bash, then manually run the CMD below.
# docker run --name guihive_server -p 8081:8080 -d guihive ## Start the server. Port mapping = external:internal
# docker run -p 8082:8080 -it guihive bash ## If you need to do any prior maintenance/tuning - do it in bash, then manually run the CMD below.
FROM ubuntu:16.04
RUN mkdir /guihive_all
FROM ensembl-hive
RUN apt-get update -y \
&& apt-get install git golang curl sqlite3 mysql-client libmariadb-client-lgpl-dev libpq-dev libexpat1-dev graphviz -y \
&& apt-get install golang -y \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# RUN apt-get install vim perl-doc iputils-ping net-tools apt-file -y
RUN ln -s /usr/bin/mariadb_config /usr/bin/mysql_config
RUN curl -L https://cpanmin.us | perl - App::cpanminus
RUN cd /guihive_all ; git clone https://github.com/Ensembl/ensembl-hive.git
RUN cd /guihive_all ; git clone https://github.com/Ensembl/guiHive.git
RUN cd /guihive_all/ensembl-hive ; git checkout master
RUN cpanm --installdeps --with-recommends /guihive_all/ensembl-hive
RUN cd /repo ; git clone https://github.com/Ensembl/guiHive.git
RUN cpanm --installdeps --with-recommends /guihive_all/guiHive
RUN cpanm --installdeps --with-recommends /repo/guiHive
RUN /guihive_all/guiHive/guihive-deploy.sh
RUN /repo/guiHive/guihive-deploy.sh
RUN cd /guihive_all/guiHive/server ; go build
RUN cd /repo/guiHive/server ; go build
EXPOSE 8080
CMD [ "/guihive_all/guiHive/server/server" ]
CMD [ "/repo/guiHive/server/server" ]
Markdown is supported
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