-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some work on Docker based on what Phase made on his PR The
Ore container may have to be manually configured for some stuff
- Loading branch information
Showing
4 changed files
with
46 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
/* | ||
|
||
!app/ | ||
|
||
!conf/ | ||
# This is created in the Dockerfile | ||
conf/application.conf | ||
|
||
!OreTestPlugin/ | ||
|
||
!project/ | ||
project/target/ | ||
project/project/ | ||
|
||
!public/ | ||
|
||
!scripts/ | ||
|
||
!build.sbt |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
FROM openjdk:8-jdk-alpine | ||
|
||
MAINTAINER Jadon Fowler <[email protected]> | ||
LABEL maintainer="Jadon Fowler <[email protected]>" | ||
|
||
# Install Activator | ||
RUN apk update | ||
RUN apk add curl unzip bash postgresql | ||
RUN curl -O http://downloads.typesafe.com/typesafe-activator/1.3.6/typesafe-activator-1.3.6.zip | ||
RUN unzip typesafe-activator-1.3.6.zip -d / && rm typesafe-activator-1.3.6.zip && chmod a+x /activator-dist-1.3.6/activator | ||
ENV PATH $PATH:/activator-dist-1.3.6 | ||
# Temporary build folder for the 'stage' task | ||
WORKDIR /home/ore/build | ||
ADD . ./ | ||
ADD conf/application.conf.template conf/application.conf | ||
|
||
# Copy Ore | ||
RUN mkdir -p /home/play/ore/ | ||
WORKDIR /home/play/ore/ | ||
ADD . /home/play/ore/ | ||
ENV SBT_VERSION=0.13.9 \ | ||
SBT_HOME=/usr/local/sbt \ | ||
JDBC_DATABASE_URL=jdbc:postgresql://db/ore \ | ||
SPONGE_AUTH_URL=http://spongeauth:8000 \ | ||
APPLICATION_SECRET="some_secret" | ||
|
||
ENV PATH=${PATH}:${SBT_HOME}/bin | ||
|
||
RUN apk add --virtual --no-cache curl ca-certificates bash && \ | ||
curl -sL "http://dl.bintray.com/sbt/native-packages/sbt/$SBT_VERSION/sbt-$SBT_VERSION.tgz" | gunzip | tar -x -C /usr/local && \ | ||
sbt stage && \ | ||
apk del curl | ||
|
||
WORKDIR /home/ore/prod/bin/ | ||
|
||
RUN cp -r /home/ore/build/target/universal/stage/* /home/ore/prod/ && \ | ||
rm -rf /home/ore/build/ | ||
|
||
# Ore runs on port 9000 | ||
# 8888 is the Activator UI | ||
EXPOSE 9000 | ||
|
||
RUN cp conf/application.conf.template conf/application.conf | ||
|
||
CMD ["/home/play/ore/docker.sh"] | ||
CMD ["./ore"] |
This file contains 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
This file contains 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