shoothzj commented on code in PR #4333:
URL: https://github.com/apache/bookkeeper/pull/4333#discussion_r1589873918
##########
docker/Dockerfile:
##########
@@ -61,13 +62,15 @@ RUN set -x \
&& tar -xzf "$DISTRO_NAME.tar.gz" \
&& mv bookkeeper-server-${BK_VERSION}/ /opt/bookkeeper/ \
&& rm -rf "$DISTRO_NAME.tar.gz" "$DISTRO_NAME.tar.gz.asc"
"$DISTRO_NAME.tar.gz.sha512" \
- && pip install zk-shell \
- && JAVA_HOME=$(dirname $(dirname $(readlink -f $(which java)))) \
- && echo networkaddress.cache.ttl=1 >>
$JAVA_HOME/conf/security/java.security \
- && echo networkaddress.cache.negative.ttl=1 >>
$JAVA_HOME/conf/security/java.security
+ && pip install zk-shell
WORKDIR /opt/bookkeeper
+ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-$TARGETARCH
Review Comment:
I have tested on my laptop with my personal image. It won't work.
```
└─[$] <> cat Dockerfile
FROM shoothzj/base:jdk17
ENV JAVA1_HOME $(dirname $(dirname $(readlink -f $(which java))))
```
```
docker run -it --rm test bash
root@f28cdaac85a6:/# echo $JAVA1_HOME
$(dirname $(dirname $(readlink -f $(which java))))
root@f28cdaac85a6:/#
exit
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]