Skip to content

Instantly share code, notes, and snippets.

@ls12styler
Forked from ianjuma/Dockerfile
Last active December 27, 2017 11:09
Show Gist options
  • Select an option

  • Save ls12styler/cf5dd8e28acaa0aa991fb8da525a74e5 to your computer and use it in GitHub Desktop.

Select an option

Save ls12styler/cf5dd8e28acaa0aa991fb8da525a74e5 to your computer and use it in GitHub Desktop.

Revisions

  1. ls12styler revised this gist Dec 27, 2017. 1 changed file with 1 addition and 18 deletions.
    19 changes: 1 addition & 18 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -27,21 +27,4 @@ RUN \
    sbt sbtVersion

    # Define working directory
    WORKDIR /root

    EXPOSE 1090

    ADD medusa.jar /root/medusa.jar

    CMD ["java", "-Dcom.sun.management.jmxremote", \
    "-Dcom.sun.management.jmxremote.port=1090", \
    "-Dcom.sun.management.jmxremote.rmi.port=1090", \
    "-Djava.rmi.server.hostname=172.17.0.1", \
    "-Dcom.sun.management.jmxremote.local.only=false", \
    "-Dcom.sun.management.jmxremote.authenticate=false", \
    "-Dcom.sun.management.jmxremote.ssl=false", \
    "-XX:+UseConcMarkSweepGC", \
    "-Xms128m", \
    "-Xmx340m", \
    "-jar", \
    "/root/medusa.jar"]
    WORKDIR /root
  2. @ianjuma ianjuma created this gist Sep 8, 2016.
    47 changes: 47 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    #
    # Scala and sbt Dockerfile
    #
    # https://github.com/hseeberger/scala-sbt
    #

    # Pull base image
    FROM java:8

    ENV SCALA_VERSION 2.11.8
    ENV SBT_VERSION 0.13.12

    # Install Scala
    ## Piping curl directly in tar
    RUN \
    curl -fsL http://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz | tar xfz - -C /root/ && \
    echo >> /root/.bashrc && \
    echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc

    # Install sbt
    RUN \
    curl -L -o sbt-$SBT_VERSION.deb http://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb && \
    dpkg -i sbt-$SBT_VERSION.deb && \
    rm sbt-$SBT_VERSION.deb && \
    apt-get update && \
    apt-get install sbt && \
    sbt sbtVersion

    # Define working directory
    WORKDIR /root

    EXPOSE 1090

    ADD medusa.jar /root/medusa.jar

    CMD ["java", "-Dcom.sun.management.jmxremote", \
    "-Dcom.sun.management.jmxremote.port=1090", \
    "-Dcom.sun.management.jmxremote.rmi.port=1090", \
    "-Djava.rmi.server.hostname=172.17.0.1", \
    "-Dcom.sun.management.jmxremote.local.only=false", \
    "-Dcom.sun.management.jmxremote.authenticate=false", \
    "-Dcom.sun.management.jmxremote.ssl=false", \
    "-XX:+UseConcMarkSweepGC", \
    "-Xms128m", \
    "-Xmx340m", \
    "-jar", \
    "/root/medusa.jar"]