FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
collins/Dockerfile at master · defect/collins · GitHub
defect
collins
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
collins
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (30 loc) · 1.82 KB
Breadcrumbs
collins
/
Dockerfile
Copy path
File metadata and controls
35 lines (30 loc) · 1.82 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM
openjdk:8-jre
MAINTAINER
Gabe Conradi <gabe@tumblr.com>
#
Solr cores should be stored in a volume, so we arent writing stuff to our rootfs
VOLUME
/opt/collins/conf/solr/cores/collins/data
COPY
. /build/collins
RUN
apt-get update && \
apt-get install --no-install-recommends -y openjdk-8-jdk openjdk-8-jdk-headless zip unzip ipmitool && \
rm -r /var/lib/apt/lists/* && \
cd /build && \
export ACTIVATOR_VERSION=1.3.7 && \
wget -q http://downloads.typesafe.com/typesafe-activator/$ACTIVATOR_VERSION/typesafe-activator-$ACTIVATOR_VERSION-minimal.zip -O /build/activator.zip && \
unzip -q ./activator.zip && \
cd collins && \
java -version 2>&1 && \
PLAY_CMD=/build/activator-$ACTIVATOR_VERSION-minimal/activator FORCE_BUILD=true ./scripts/package.sh && \
unzip -q /build/collins/target/collins.zip -d /opt/ && \
cd / && rm -rf /build && \
rm -rf /root/.ivy2 && \
rm -rf /root/.sbt && \
apt-get remove -y --purge openjdk-8-jdk openjdk-8-jdk-headless && \
apt-get autoremove --purge -y && \
apt-get clean && \
rm /var/log/dpkg.log
WORKDIR
/opt/collins
#
Add in all the default configs we want in this build so collins can run.
#
You probably will want to override these configs in production
COPY
conf/docker conf/
#
expose HTTP, JMX
EXPOSE
9000 3333
CMD
[
"/usr/bin/java"
,
"-server"
,
"-Dconfig.file=/opt/collins/conf/production.conf"
,
"-Dhttp.port=9000"
,
"-Dlogger.file=/opt/collins/conf/logger.xml"
,
"-Dnetworkaddress.cache.ttl=1"
,
"-Dnetworkaddress.cache.negative.ttl=1"
,
"-Dcom.sun.management.jmxremote"
,
"-Dcom.sun.management.jmxremote.port=3333"
,
"-Dcom.sun.management.jmxremote.authenticate=false"
,
"-Dcom.sun.management.jmxremote.ssl=false"
,
"-XX:MaxPermSize=384m"
,
"-XX:+CMSClassUnloadingEnabled"
,
"-XX:-UsePerfData"
,
"-cp"
,
"/opt/collins/lib/*"
,
"play.core.server.NettyServer"
,
"/opt/collins"
]
Back
|
FazBrowse Home
|
New Git URL