This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 4997ef9  [website] fix: website build fail due to java home setting 
wrong in docker container (#13586)
4997ef9 is described below

commit 4997ef9bc0b7e72225cd0f04ea5a073ca29091c1
Author: Li Li <[email protected]>
AuthorDate: Fri Dec 31 15:00:20 2021 +0800

    [website] fix: website build fail due to java home setting wrong in docker 
container (#13586)
    
    Signed-off-by: LiLi <[email protected]>
---
 site2/tools/docker-build-site.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/site2/tools/docker-build-site.sh b/site2/tools/docker-build-site.sh
index ca1ddce..7028291 100755
--- a/site2/tools/docker-build-site.sh
+++ b/site2/tools/docker-build-site.sh
@@ -47,4 +47,4 @@ DOCKER_CMD="docker run -i -e CI_USER=$CI_USER -e 
CI_GROUP=$CI_GROUP -v $HOME/.m2
 sed -i "s#$ROOT_DIR#/pulsar#g" 
$ROOT_DIR/distribution/server/target/classpath.txt
 sed -i "s#$HOME#/root#g" $ROOT_DIR/distribution/server/target/classpath.txt
 
-$DOCKER_CMD bash -l -c 'cd /pulsar && /pulsar/site2/tools/build-site.sh'
+$DOCKER_CMD bash -l -c 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 && 
cd /pulsar && /pulsar/site2/tools/build-site.sh'

Reply via email to