@@ -29,8 +29,9 @@ project.
2929
3030## Supported tags and respective ` Dockerfile ` links
3131
32- - [ ` latest ` , ` latest-jdk8 ` , ` centos7 ` , ` centos7-jdk8 ` (centos7/Dockerfile.jdk8)] [ centos7-dockerfile ]
33- - [ ` latest-jdk11 ` , ` centos7-jdk11 ` (centos7/Dockerfile.jdk11)] [ latest-jdk11-dockerfile ]
32+ - [ ` latest ` , ` centos8 ` (centos8/Dockerfile)] [ centos8-dockerfile ]
33+ - [ ` centos7 ` , ` centos7-jdk8 ` (centos7/Dockerfile.jdk8)] [ centos7-jdk8-dockerfile ]
34+ - [ ` centos7-jdk11 ` (centos7/Dockerfile.jdk11)] [ centos7-jdk11-dockerfile ]
3435- [ ` centos6 ` (centos6/Dockerfile)] [ centos6-dockerfile ] [ EOL - not supported anymore]
3536
3637## Packages installed in container
@@ -61,10 +62,10 @@ Let's assume we want to build packages for CentOS 7 on CentOS 7. We pull that
6162image first:
6263
6364``` bash
64- docker pull khos2ow/cloudstack-rpm-builder:centos7-jdk11
65+ docker pull khos2ow/cloudstack-rpm-builder:centos8
6566```
6667
67- You can replace ` centos7-jdk11 ` tag by [ one of the other tags] .
68+ You can replace ` centos8 ` tag by [ one of the other tags] .
6869
6970### Build local repository
7071
@@ -91,7 +92,7 @@ always expects the `cloudstack` code exists in `/mnt/build` path.)
9192``` bash
9293docker run \
9394 -v /tmp:/mnt/build \
94- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
95+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
9596```
9697
9798Or if your local cloudstack folder has other name, you need to map it to
@@ -100,7 +101,7 @@ Or if your local cloudstack folder has other name, you need to map it to
100101``` bash
101102docker run \
102103 -v /tmp/cloudstack-custom-name:/mnt/build/cloudstack \
103- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
104+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
104105```
105106
106107After the build has finished the ` .rpm ` packages are available in
@@ -124,10 +125,10 @@ flag) in `/mnt/build/cloudstack` inside the container and can be accessed from
124125``` bash
125126docker run \
126127 -v /tmp:/mnt/build \
127- khos2ow/cloudstack-rpm-builder:centos7-jdk11 \
128+ khos2ow/cloudstack-rpm-builder:centos8 \
128129 --git-remote https://github.com/apache/cloudstack.git \
129130 --git-ref master \
130- --distribution centos7 [ARGS...]
131+ --distribution centos8 [ARGS...]
131132```
132133
133134Note that any valid git Refspec is acceptable, such as:
@@ -154,7 +155,7 @@ it run faster.
154155docker run \
155156 -v /tmp:/mnt/build \
156157 -v ~ /.m2:/root/.m2 \
157- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
158+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
158159```
159160
160161### Adjust host owner permission
@@ -174,7 +175,7 @@ docker run \
174175 -v /tmp:/mnt/build \
175176 -e " USER_ID=$( id -u) " \
176177 -e " USER_GID=$( id -g) " \
177- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
178+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
178179```
179180
180181## Builder help
@@ -184,16 +185,17 @@ To see all the available options you can pass to `docker run ...` command:
184185``` bash
185186docker run \
186187 -v /tmp:/mnt/build \
187- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --help
188+ khos2ow/cloudstack-rpm-builder:centos8 --help
188189```
189190
190191## License
191192
192193Licensed under [ Apache License version 2.0] . Please see the [ LICENSE] file
193194included in the root directory of the source tree for extended license details.
194195
195- [ centos7-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos7/Dockerfile.jdk8
196- [ latest-jdk11-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos7/Dockerfile.jdk11
196+ [ centos8-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos8/Dockerfile
197+ [ centos7-jdk8-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos7/Dockerfile.jdk8
198+ [ centos7-jdk11-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos7/Dockerfile.jdk11
197199[ centos6-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos6/Dockerfile
198200[ one of the other tags ] : #supported-tags-and-respective-dockerfile-links
199201[ https://github.com/apache/cloudstack ] : https://github.com/apache/cloudstack
0 commit comments