Skip to content

Instantly share code, notes, and snippets.

@psychemedia psychemedia/Dockerfile
Last active Jul 30, 2017

Embed
What would you like to do?
Dockerfile for RobertaLab - https://github.com/OpenRoberta/robertalab
#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"]
@psychemedia

This comment has been minimized.

Copy link
Owner Author

psychemedia commented May 21, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.