1 Unstar Star 3 Fork 0

Rukiy / alpine-openjdk11Docker

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
alpine-openjdk11 springboot通用启动器 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

SpringBoot-Launcher

依赖 adoptopenjdk/openjdk11:x86_64-alpine-jre-11.0.8_10 Docker 镜像.

这个镜像是一个springboot 通用启动镜像.

构建

sh build.sh

使用

docker run --name <app> -d -v <appfolder>:/app -p <appport>:8080 rukiy/alpine-openjdk11

查看容器jre版本情况

docker run --rm -it rukiy/alpine-openjdk11 -version

工作目录 /app

/app 该目录是镜像主要目录 用于放置 springboot jar包程序

/app/config 该目录是配置目录 程序配置放置于此

/app/config/Environment.sh 该文件用于设置启动参数

可选: 启动参数 Environment.sh 文件

例:

JAVA_OPTS="-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app -Xms2048m -Xmx2048m -Xss512k -Duser.timezone=GMT+08 -Dfile.encoding=utf8 -Dspring.profiles.active=prod"

导入导出

docker save rukiy/alpine-openjdk11 -o rukiy/alpine-openjdk11.tar
docker load -i rukiy/alpine-openjdk11.tar
Docker
1
https://gitee.com/rukiy/alpine-openjdk11.git
git@gitee.com:rukiy/alpine-openjdk11.git
rukiy
alpine-openjdk11
alpine-openjdk11
master

Search

131423 f1aaba0b 1899542 094922 1c74bed3 1899542