@@ -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
@@ -61,10 +62,10 @@ Let's assume we want to build packages for CentOS 7 on CentOS 7. We pull that
61
62
image first:
62
63
63
64
``` bash
64
- docker pull khos2ow/cloudstack-rpm-builder:centos7-jdk11
65
+ docker pull khos2ow/cloudstack-rpm-builder:centos8
65
66
```
66
67
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] .
68
69
69
70
### Build local repository
70
71
@@ -91,7 +92,7 @@ always expects the `cloudstack` code exists in `/mnt/build` path.)
91
92
``` bash
92
93
docker run \
93
94
-v /tmp:/mnt/build \
94
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
95
+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
95
96
```
96
97
97
98
Or 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
100
101
``` bash
101
102
docker run \
102
103
-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...]
104
105
```
105
106
106
107
After 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
124
125
``` bash
125
126
docker run \
126
127
-v /tmp:/mnt/build \
127
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 \
128
+ khos2ow/cloudstack-rpm-builder:centos8 \
128
129
--git-remote https://github.com/apache/cloudstack.git \
129
130
--git-ref master \
130
- --distribution centos7 [ARGS...]
131
+ --distribution centos8 [ARGS...]
131
132
```
132
133
133
134
Note that any valid git Refspec is acceptable, such as:
@@ -154,7 +155,7 @@ it run faster.
154
155
docker run \
155
156
-v /tmp:/mnt/build \
156
157
-v ~ /.m2:/root/.m2 \
157
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
158
+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
158
159
```
159
160
160
161
### Adjust host owner permission
@@ -174,7 +175,7 @@ docker run \
174
175
-v /tmp:/mnt/build \
175
176
-e " USER_ID=$( id -u) " \
176
177
-e " USER_GID=$( id -g) " \
177
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --distribution centos7 [ARGS...]
178
+ khos2ow/cloudstack-rpm-builder:centos8 --distribution centos7 [ARGS...]
178
179
```
179
180
180
181
## Builder help
@@ -184,16 +185,17 @@ To see all the available options you can pass to `docker run ...` command:
184
185
``` bash
185
186
docker run \
186
187
-v /tmp:/mnt/build \
187
- khos2ow/cloudstack-rpm-builder:centos7-jdk11 --help
188
+ khos2ow/cloudstack-rpm-builder:centos8 --help
188
189
```
189
190
190
191
## License
191
192
192
193
Licensed under [ Apache License version 2.0] . Please see the [ LICENSE] file
193
194
included in the root directory of the source tree for extended license details.
194
195
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
197
199
[ centos6-dockerfile ] : https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/centos6/Dockerfile
198
200
[ one of the other tags ] : #supported-tags-and-respective-dockerfile-links
199
201
[ https://github.com/apache/cloudstack ] : https://github.com/apache/cloudstack
0 commit comments