Last active
July 30, 2017 21:41
-
-
Save psychemedia/6f5b6553669eb28536a8834ec2490469 to your computer and use it in GitHub Desktop.
Dockerfile for RobertaLab - https://github.com/OpenRoberta/robertalab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To build: | |
#docker build -t psychemedia/robertalab . | |
#To probe/debug the build... | |
#docker run -it psychemedia/robertalab bash | |
#To run: | |
#docker run -p 1999:1999 psychemedia/robertalab | |
#To expose to other machines on the local netwrok, the docker VM needs port forwarding set up | |
#https://blog.ouseful.info/2016/05/22/exposing-services-running-in-a-docker-container-running-in-virtualbox-to-other-computers-on-a-local-network/ | |
FROM ubuntu | |
RUN apt-get clean -y && apt-get -y update && apt-get -y upgrade | |
RUN apt-get install -y git phantomjs maven | |
RUN apt-get clean -y | |
#RUN git clone git://github.com/OpenRoberta/robertalab.git | |
RUN apt-get install -y wget unzip && \ | |
wget https://github.com/OpenRoberta/robertalab/archive/master.zip && \ | |
unzip master.zip && \ | |
rm master.zip | |
RUN apt-get install -y default-jdk | |
# Define commonly used JAVA_HOME variable | |
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 | |
WORKDIR /robertalab-master/OpenRobertaParent | |
RUN mvn clean install | |
EXPOSE 1999 | |
WORKDIR /robertalab-master | |
CMD ["/robertalab-master/ora.sh", "--start-server"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running in a container, to connect on localhost and to expose the port to other machines on the local network, port forwarding from the docker VM must be configured: Exposing Services Running in a Docker Container Running in Virtualbox to Other Computers on a Local Network