Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit 456af15

Browse files
authored
fixes #188 update Dockerfile and build.sh to image publishing (#189)
1 parent f906195 commit 456af15

37 files changed

+109
-51
lines changed

authorize/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ cleanup() {
4242

4343
publish() {
4444
echo "Building Docker image with version $VERSION"
45-
docker build -t $IMAGE_NAME:$VERSION -t $IMAGE_NAME:latest -f ./Dockerfile . --no-cache=true
45+
docker build -t $IMAGE_NAME:$VERSION -t $IMAGE_NAME:latest -f ./docker/Dockerfile . --no-cache=true
4646
docker build -t $IMAGE_NAME:$VERSION-redhat -f ./docker/Dockerfile-Redhat . --no-cache=true
4747
echo "Images built with version $VERSION"
4848
echo "Pushing image to DockerHub"
File renamed without changes.

authorize/docker/Dockerfile-Redhat

Lines changed: 0 additions & 3 deletions
This file was deleted.

authorize/docker/Dockerfile-Slim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM openjdk:11.0.3-slim
2+
ADD target/oauth2-authorize.jar server.jar
3+
CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -Djava.security.krb5.conf=/config/krb5.conf -jar /server.jar"]

client/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ cleanup() {
4242

4343
publish() {
4444
echo "Building Docker image with version $VERSION"
45-
docker build -t $IMAGE_NAME:$VERSION -t $IMAGE_NAME:latest -f ./Dockerfile . --no-cache=true
46-
docker build -t $IMAGE_NAME:$VERSION-redhat -f ./docker/Dockerfile-Redhat . --no-cache=true
45+
docker build -t $IMAGE_NAME:$VERSION -t $IMAGE_NAME:latest -f ./docker/Dockerfile . --no-cache=true
46+
docker build -t $IMAGE_NAME:$VERSION-slim -f ./docker/Dockerfile-Slim . --no-cache=true
4747
echo "Images built with version $VERSION"
4848
echo "Pushing image to DockerHub"
4949
docker push $IMAGE_NAME

client/Dockerfile renamed to client/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV JAVA_MINIMAL=/opt/jre
1212
RUN jlink \
1313
--verbose \
1414
--add-modules \
15-
java.base,java.sql,java.naming,java.desktop,java.xml,jdk.crypto.cryptoki,jdk.unsupported,java.management \
15+
java.base,java.sql,java.naming,java.desktop,java.xml,jdk.crypto.cryptoki,jdk.unsupported,java.management,java.security.jgss \
1616
--compress 2 \
1717
--strip-debug \
1818
--no-header-files \

client/docker/Dockerfile-Redhat

Lines changed: 0 additions & 3 deletions
This file was deleted.

client/docker/Dockerfile-Slim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM openjdk:11.0.3-slim
2+
ADD target/oauth2-client.jar server.jar
3+
CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -jar /server.jar"]

code/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ cleanup() {
4242

4343
publish() {
4444
echo "Building Docker image with version $VERSION"
45-
docker build -t $IMAGE_NAME:$VERSION -t $IMAGE_NAME:latest -f ./Dockerfile . --no-cache=true
46-
docker build -t $IMAGE_NAME:$VERSION-redhat -f ./docker/Dockerfile-Redhat . --no-cache=true
45+
docker build -t $IMAGE_NAME:$VERSION -t $IMAGE_NAME:latest -f ./docker/Dockerfile . --no-cache=true
46+
docker build -t $IMAGE_NAME:$VERSION-slim -f ./docker/Dockerfile-Slim . --no-cache=true
4747
echo "Images built with version $VERSION"
4848
echo "Pushing image to DockerHub"
4949
docker push $IMAGE_NAME
File renamed without changes.

0 commit comments

Comments
 (0)