Skip to content
docker build for alibaba dragonwell8
Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


docker build for alibaba dragonwell8

Pre requirements

  • Install docker and docker-compose
  • Download dragonwell8 source code and put it in code forder like this ./code/dragonwell8/...
cd code
# note:this version fix some compile errors in original source code
git clone
cd dragonwell8
chmod +x ./
bash ./ -s github


git clone --depth 1
cd dragonwell8
git clone jdk --depth 1
git clone hotspot --depth 1
git clone corba --depth 1
git clone langtools --depth 1
git clone nashorn --depth 1
git clone jaxp --depth 1
git clone jaxws --depth 1

# fetch changes
git fetch --unshallow
  • Download jdk7 bootjdk and put int in bootjdk forder like this bootjdk/jdk1.7.0_80,you can download it in
  • If you want to build in windows,you must install git bash and run following script first
find . -type f -print0 | xargs -0 -n 1 -P 4 dos2unix


Q1: build error:/home/dragonwell8/hotspot/src/share/vm/jfr/utilities/jfrJavaLog.cpp:47:72: error: format not a string literal and no format arguments [-Werror=format-security]
A1: see

Q2: build error:/home/dragonwell8/hotspot/src/share/vm/jfr/periodic/jfrThreadCPULoadEvent.cpp:131:84: error: format %d expects argument of type int, but argument 3 has type size_t {aka long unsigned int} [-Werror=format=]
A2: see

Build && Run

docker-compose up

Check result

docker exec -it docker-draggonwell8 bash
export JAVA_HOME=/home/dragonwell8/build/linux-x86_64-normal-server-slowdebug/jdk
export PATH=$PATH:$JAVA_HOME/bin
java -version
You can’t perform that action at this time.