Public Repository

Last pushed: 6 months ago
Short Description
duckula使用的java8
Full Description

duckula打包用的基础镜像,基于:fabric8/java-jboss-openjdk8-jdk:1.2.6 ,避免因docker的内存不足杀掉java进程的坑.默认加入JVM参数:-server -XX:+HeapDumpOnOutOfMemoryError -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps  .  设置好时区为 "上海",使用示例Dockfile:
FROM rjzjh/duckulajava8:1
ENV JAVA_APP_JAR duckula-server.jar
COPY ./target/duckula-server.jar /duckula/

full dockfile:
FROM fabric8/java-jboss-openjdk8-jdk:1.2.6
MAINTAINER andy "rjzjh@163.com"
#
LABEL version="1.0"
LABEL location="Shang Hai" com="tpl" role="Java Api"

#
USER root
RUN mkdir -p /duckula/logs/
ENV JAVA_APP_DIR /duckula/
ENV DUCKULA_HOME /duckula/
ENV JAVA_OPTIONS $JAVA_OPTIONS -server -XX:+HeapDumpOnOutOfMemoryError -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps

#timeData
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

Docker Pull Command
Owner
rjzjh