tisonkun commented on code in PR #17129:
URL: https://github.com/apache/pulsar/pull/17129#discussion_r948616095


##########
docker/pulsar/Dockerfile:
##########
@@ -76,8 +86,8 @@ RUN pip3 install pyyaml==5.4.1
 # 4. /pulsar - hadoop writes to this directory
 RUN mkdir /pulsar && chmod g+w /pulsar
 
-ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64
-RUN echo networkaddress.cache.ttl=1 >> 
/usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security
+ENV JAVA_HOME /usr/lib/jvm/temurin-17-jdk-amd64
+RUN echo networkaddress.cache.ttl=1 >> 
/usr/lib/jvm/temurin-17-jdk-amd64/conf/security/java.security

Review Comment:
   It seems the first try gives:
   
   ```
   [INFO] DOCKER> deb [signed-by=/etc/apt/keyrings/adoptium.asc] 
https://packages.adoptium.net/artifactory/deb focal main
   [INFO] DOCKER> Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
   [INFO] DOCKER> Hit:2 http://ports.ubuntu.com/ubuntu-ports focal-updates 
InRelease
   [INFO] DOCKER> Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-backports 
InRelease
   [INFO] DOCKER> Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-security 
InRelease
   [INFO] DOCKER> Ign:5 https://packages.adoptium.net/artifactory/deb focal 
InRelease
   [INFO] DOCKER> Err:6 https://packages.adoptium.net/artifactory/deb focal 
Release
     Could not wait for server fd - select (11: Resource temporarily 
unavailable) [IP: 198.19.20.71 443]
   [INFO] DOCKER> Reading package lists...
   [INFO] DOCKER> 
   [INFO] DOCKER> [91mE: The repository 
'https://packages.adoptium.net/artifactory/deb focal Release' does not have a 
Release file.
   
   [INFO] DOCKER> Removing intermediate container 322d69692fb0
   [ERROR] DOCKER> Unable to build image [apachepulsar/java-test-image] : "The 
command '/bin/sh -c mkdir -p /etc/apt/keyrings      && wget -O - 
https://packages.adoptium.net/artifactory/api/gpg/key/public | tee 
/etc/apt/keyrings/adoptium.asc      && echo \"deb 
[signed-by=/etc/apt/keyrings/adoptium.asc] 
https://packages.adoptium.net/artifactory/deb $(awk -F= 
'/^VERSION_CODENAME/{print$2}' /etc/os-release) main\" | tee 
/etc/apt/sources.list.d/adoptium.list      && apt-get update      && apt-get -y 
dist-upgrade      && apt-get -y install temurin-17-jdk' returned a non-zero 
code: 100"  ["The command '/bin/sh -c mkdir -p /etc/apt/keyrings      && wget 
-O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee 
/etc/apt/keyrings/adoptium.asc      && echo \"deb 
[signed-by=/etc/apt/keyrings/adoptium.asc] 
https://packages.adoptium.net/artifactory/deb $(awk -F= 
'/^VERSION_CODENAME/{print$2}' /etc/os-release) main\" | tee 
/etc/apt/sources.list.d/adoptium.list      && apt-get update 
      && apt-get -y dist-upgrade      && apt-get -y install temurin-17-jdk' 
returned a non-zero code: 100" ]
   ```
   
   The command I run: `UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu/ 
./build/build_java_test_image.sh`



-- 
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]

Reply via email to