Skip to content

Commit

Permalink
fix enforcer
Browse files Browse the repository at this point in the history
  • Loading branch information
tharindu1st committed Mar 3, 2024
1 parent 76a1ed4 commit 51fd37f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions gateway/enforcer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ ARG APK_VERSION=1.0-SNAPSHOT
ENV VERSION=${APK_VERSION}
ENV JAVA_OPTS=""
ENV ENFORCER_HOME=${APK_USER_HOME}
ARG CHECKSUM_AMD64="0f46d50fb7220dcf4cbf8861b394be9ebdfba5d7712f3900f0f4d6c38843cbcf"
ARG CHECKSUM_ARM64="6b5ee8f3979c8d0cfb63376d3011041932787fdd4e590320197f28fb187ff264"
ARG CHECKSUM_AMD64="7e564681110ee4563637457b91e42f62f96b79618a835bb05ae2305acdcc3db0"
ARG CHECKSUM_ARM64="3759148e22a494149a4abae269adee0d20c428b966683426e2319f9047da521d"
ENV ENFORCER_PRIVATE_KEY_PATH=/home/wso2/security/keystore/mg.key
ENV ENFORCER_PUBLIC_CERT_PATH=/home/wso2/security/keystore/mg.pem
ENV TRUSTED_CA_CERTS_PATH=/home/wso2/security/truststore
Expand All @@ -96,6 +96,8 @@ ARG MOTD="\n\
This Docker container comprises of a WSO2 product, which is under the Apache License, Version 2.0. \n\
Read more about Apache License, Version 2.0 here @ http://www.apache.org/licenses/LICENSE-2.0.\n"

RUN \
apt-get update && apt-get dist-upgrade -y && apt-get autoclean -y && apt-get autoremove -y
RUN \
groupadd --system -g ${APK_USER_GROUP_ID} ${APK_USER_GROUP} \
&& useradd --system --create-home --home-dir ${APK_USER_HOME} --no-log-init -g ${APK_USER_GROUP} -u ${APK_USER_ID} ${APK_USER} \
Expand All @@ -104,7 +106,7 @@ RUN \
&& echo '[ ! -z "${TERM}" -a -r /etc/motd ] && cat /etc/motd' >> /etc/bash.bashrc; echo "${MOTD}" > /etc/motd

RUN \
wget -q https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.19/grpc_health_probe-linux-${TARGETARCH} \
wget -q https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.24/grpc_health_probe-linux-${TARGETARCH} \
&& mv grpc_health_probe-linux-${TARGETARCH} ${GRPC_HEALTH_PROBE_PATH}\
&& if [ "${TARGETARCH}" = "amd64" ]; then echo "${CHECKSUM_AMD64} ${GRPC_HEALTH_PROBE_PATH}" | sha256sum -c -; fi

Expand Down
2 changes: 1 addition & 1 deletion libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ damnhandy = "2.1.8"
wso2-uri-templates = "1.6.5"
xerces = "2.8.1.wso2v2"
#Added as direct dependency for transitive dependency version upgrades
reactor-netty-http = "1.0.34"
reactor-netty-http = "1.0.39"
protobuf-java = "3.21.7"
#Test dependencies
hamcrest = "1.3"
Expand Down

0 comments on commit 51fd37f

Please sign in to comment.