@@ -29,8 +29,9 @@ project.
29
29
30
30
## Supported tags and respective ` Dockerfile ` links
31
31
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 ]
34
35
- [ ` centos6 ` (centos6/Dockerfile)] [ centos6-dockerfile ] [ EOL - not supported anymore]
35
36
36
37
## Packages installed in container
@@ -62,10 +63,10 @@ Let's assume we want to build packages for CentOS 7 on CentOS 7. We pull that
62
63
image first:
63
64
64
65
``` bash
65
- docker pull khos2ow/cloudstack-rpm-builder:centos7-jdk11
66
+ docker pull khos2ow/cloudstack-rpm-builder:centos8
66
67
```
67
68
68
- You can replace ` centos7-jdk11 ` tag by [ one of the other tags] .
69
+ You can replace ` centos8 ` tag by [ one of the other tags] .
69
70
70
71
### Build local repository
71
72
@@ -92,7 +93,7 @@ always expects the `cloudstack` code exists in `/mnt/build` path.)
92
93
``` bash
93
94
docker run \
94
95
-v /tmp:/mnt/build \
95
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
96
+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
96
97
```
97
98
98
99
Or if your local cloudstack folder has other name, you need to map it to
@@ -101,7 +102,7 @@ Or if your local cloudstack folder has other name, you need to map it to
101
102
``` bash
102
103
docker run \
103
104
-v /tmp/cloudstack-custom-name:/mnt/build/cloudstack \
104
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
105
+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
105
106
```
106
107
107
108
After the build has finished the ` .rpm ` packages are available in
@@ -125,10 +126,10 @@ flag) in `/mnt/build/cloudstack` inside the container and can be accessed from
125
126
``` bash
126
127
docker run \
127
128
-v /tmp:/mnt/build \
128
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 \
129
+ khos2ow/cloudstack-rpm-builder:centos8 \
129
130
--git-remote https://github.com/apache/cloudstack.git \
130
131
--git-ref master \
131
- --distribution centos7 [ARGS...]
132
+ --distribution centos8 [ARGS...]
132
133
```
133
134
134
135
Note that any valid git Refspec is acceptable, such as:
@@ -155,7 +156,7 @@ it run faster.
155
156
docker run \
156
157
-v /tmp:/mnt/build \
157
158
-v ~ /.m2:/root/.m2 \
158
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
159
+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
159
160
```
160
161
161
162
### Adjust host owner permission
@@ -175,7 +176,7 @@ docker run \
175
176
-v /tmp:/mnt/build \
176
177
-e " USER_ID=$( id -u) " \
177
178
-e " USER_GID=$( id -g) " \
178
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
179
+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
179
180
```
180
181
181
182
## Builder help
@@ -185,16 +186,17 @@ To see all the available options you can pass to `docker run ...` command:
185
186
``` bash
186
187
docker run \
187
188
-v /tmp:/mnt/build \
188
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --help
189
+ khos2ow/cloudstack-rpm-builder:centos8 --help
189
190
```
190
191
191
192
## License
192
193
193
194
Licensed under [ Apache License version 2.0] . Please see the [ LICENSE] file
194
195
included in the root directory of the source tree for extended license details.
195
196
196
- [ centos7-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos7/Dockerfile.jdk8
197
- [ latest-jdk11-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos7/Dockerfile.jdk11
197
+ [ centos8-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos8/Dockerfile
198
+ [ centos7-jdk8-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos7/Dockerfile.jdk8
199
+ [ centos7-jdk11-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos7/Dockerfile.jdk11
198
200
[ centos6-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos6/Dockerfile
199
201
[ one of the other tags ] : #supported-tags-and-respective-dockerfile-links
200
202
[ https://github.com/apache/cloudstack ] : https://github.com/apache/cloudstack
0 commit comments