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
Build packages of specified remote git and ref (#4)
Provide the functionality to be able to build packages of any
provided git remote and ref without needing to clone the repo
first.
* Remote git repository builder on Ubuntu 16.04
* Remote git repository builder on Ubuntu 14.04
* Update README for building remote repository
Fixes#1
Now that we have the Docker images 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.)
73
+
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.)
68
74
69
75
docker run \
70
76
-v /tmp:/mnt/build \
@@ -78,6 +84,31 @@ Or if your local cloudstack folder has other name, you need to map it to `/mnt/b
78
84
79
85
After the build has finished the *.deb* packages are available in */tmp/cloudstack/dist/debbuild/DEBS* on the host system.
80
86
87
+
### Build remote repository
88
+
89
+
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.
90
+
91
+
#### Build packages of remote repository
92
+
93
+
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.
0 commit comments