1 Unstar Star 3 Fork 0

Rukiy / alpine-openjdk11

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.
Clone or download
README.md 1.13 KB
Copy Edit Web IDE Raw Blame History
root authored 2020-08-28 11:20 . 修改描述

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

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542