topiam / eiam

EIAM(Employee Identity and Access Management Program)企业级开源IAM平台,实现用户全生命周期的管理、统一认证和单点登录、为数字身份安全赋能!
https://eiam.topiam.cn
GNU Affero General Public License v3.0
406 stars 85 forks source link

docker编译时遇到的问题 #50

Closed ClearSeve closed 1 month ago

ClearSeve commented 1 month ago
[WARNING]: Empty continuation line found in:
    RUN sed -i 's/archive.ubuntu.com/cn.archive.ubuntu.com/g' /etc/apt/sources.list           && apt-get update           && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone           && apt-get clean           && apt-get autoclean           && apt-get autoremove -y           && apt-get install -y curl           && apt-get install -y iputils-ping           && apt-get install -y wget           && apt-get install -y tzdata           && apt-get install -y fontconfig           && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* EXPOSE 1898
[WARNING]: Empty continuation lines will become errors in a future release.
Step 1/15 : FROM azul/zulu-openjdk:17-jre as build
 ---> cba201ed1938
Step 2/15 : WORKDIR /workspace/app
 ---> Using cache
 ---> 4b4766a43f93
Step 3/15 : ARG JAR_FILE=target/topiam-employee-console-*.jar
 ---> Using cache
 ---> 9952ebbfffd0
Step 4/15 : COPY ${JAR_FILE} target/application.jar
 ---> e27895f12baa
Step 5/15 : RUN java -Djarmode=layertools -jar target/application.jar extract --destination target/extracted
 ---> Running in f96c6865b163
[0.004s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# An error report file with more information is saved as:
# /workspace/app/hs_err_pid7.log
The command '/bin/sh -c java -Djarmode=layertools -jar target/application.jar extract --destination target/extracted' returned a non-zero code: 1

使用的docker版本为: 20.10.24 更新为: docker-25.0.5 问题即可解决

ClearSeve commented 1 month ago

fix