You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+96-46Lines changed: 96 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,9 @@
6
6
7
7
Docker images for building Apache CloudStack RPM packages.
8
8
9
-
This will give portable, immutable and reproducable mechanism to build packages for releases. A very good candidate to be used by the Jenkins slaves of the project.
9
+
This will give portable, immutable and reproducable mechanism to build packages
10
+
for releases. A very good candidate to be used by the Jenkins slaves of the
11
+
project.
10
12
11
13
## Table of Contents
12
14
@@ -27,9 +29,9 @@ This will give portable, immutable and reproducable mechanism to build packages
27
29
28
30
## Supported tags and respective `Dockerfile` links
Now that we have cloned the CloudStack source code locally, we can build packages by mapping `/tmp` into `/mnt/build` in the container. (Note that the container always expects the `cloudstack` code exists in `/mnt/build` path.)
87
+
Now that we have cloned the CloudStack source code locally, we can build packages
88
+
by mapping `/tmp` into `/mnt/build` in the container. (Note that the container
89
+
always expects the `cloudstack` code exists in `/mnt/build` path.)
After the build has finished the *.rpm* packages are available in */tmp/cloudstack/dist/rpmbuild/RPMS* on the host system.
106
+
After the build has finished the `.rpm` packages are available in
107
+
`/tmp/cloudstack/dist/rpmbuild/RPMS` on the host system.
90
108
91
109
### Build remote repository
92
110
93
-
Also you can build RPM packages of any remote repository without the need to manually clone it first. You only need to specify git remote and git ref you intend to build from.
111
+
Also you can build RPM packages of any remote repository without the need to manually
112
+
clone it first. You only need to specify git remote and git ref you intend to build
113
+
from.
94
114
95
115
#### Build packages of remote repository
96
116
97
-
Now let's assume we want to build packages of `HEAD` of `master` branch from https://github.com/apache/cloudstack repository, we build packages by mapping `/tmp` into `/mnt/build` in the container. The container will clone the repository (defined by `--git-remote` flag) and check out the REF (defined by `--git-ref` flag) in `/mnt/build/cloudstack` inside the container and can be accessed from `/tmp/cloudstack` from the host machine.
Builder container in some cases (e.g. using `--use-timestamp` flag) may change the file and directory owner shared from host to container (through volume) and it will create `dist` directory which holds the final artifacts. You can provide `USER_ID` (mandatory) and/or `USER_GID` (optional) from host to adjust the owner from whitin the container.
162
+
Builder container in some cases (e.g. using `--use-timestamp` flag) may change
163
+
the file and directory owner shared from host to container (through volume) and
164
+
it will create `dist` directory which holds the final artifacts. You can provide
165
+
`USER_ID` (mandatory) and/or `USER_GID` (optional) from host to adjust the owner
166
+
from whitin the container.
132
167
133
-
This is specially useful if you want to use this image in Jenkins job and want to clean up the workspace afterward. By adjusting the owner, you won't need to give your Jenkins' user `sudo` privilege to clean up.
168
+
This is specially useful if you want to use this image in Jenkins job and want to
169
+
clean up the workspace afterward. By adjusting the owner, you won't need to give
Licensed under [Apache License version 2.0](http://www.apache.org/licenses/LICENSE-2.0). Please see the [LICENSE](https://github.com/khos2ow/cloudstack-rpm-builder/blob/master/LICENSE) file included in the root directory of the source tree for extended license details.
192
+
Licensed under [Apache License version 2.0]. Please see the [LICENSE] file
193
+
included in the root directory of the source tree for extended license details.
0 commit comments