keycloak源码打镜像;
1,进入源码根目录,执行: mvn clean install -Pdistribution -Dmaven.test.skip=true -Denforcer.skip=true -Dmaven.javadoc.skip=true -DskipTests -T 4打包
PS:打包提示有tets报错,
1),pom添加:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
2),integration-arquillian-tests-other的pom去掉maven-dependency-plugin的plugin;
2,放置distribution/server-dist/target/keycloak-4.8.3.Final.tar.gz文件,到腾讯云存储桶,拿到下载链接:https://***.com/keycloak-4.8.3.Final.tar.gz
3,打开keycloak-containers模块,在server目录下,执行:docker build --build-arg KEYCLOAK_DIST=http://172.17.0.1:8000/keycloak-4.1.0.Final-SNAPSHOT.tar.gz .
4,执行:在keycloak-containers模块,执行打镜像/或者jenkins:docker build -t registry.*.com/north/keycloak-custom:hebut .
5,修改sso模块dockerfile基础镜像为:registry.*.com/north/keycloak-custom:hebut