Skip to content

Instantly share code, notes, and snippets.

@psychemedia
Last active July 30, 2017 21:41
Show Gist options
  • Select an option

  • Save psychemedia/6f5b6553669eb28536a8834ec2490469 to your computer and use it in GitHub Desktop.

Select an option

Save psychemedia/6f5b6553669eb28536a8834ec2490469 to your computer and use it in GitHub Desktop.

Revisions

  1. psychemedia revised this gist May 23, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,8 @@
    #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

  2. psychemedia revised this gist May 21, 2016. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,9 @@
    #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

    FROM ubuntu

    @@ -22,8 +26,6 @@ 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"]
  3. psychemedia created this gist May 21, 2016.
    29 changes: 29 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    #docker build -t psychemedia/robertalab .
    #docker run -it psychemedia/robertalab bash

    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"]