This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OBMFULL-6208 Dockerized packages build
- Loading branch information
1 parent
6061ade
commit a1084f8
Showing
4 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
## The goal of this machine is to build packages and expose them into DEB and RPM repositories | ||
|
||
## Usage - build and expose packages: | ||
## cd OBM_SOURCES_ROOT_DIRECTORY | ||
## docker build --tag build-obm . | ||
## docker run --name expose-packages --rm --publish 8888:80 build-obm | ||
|
||
## Usage - APT configuration example | ||
## deb http://HOST_RUNNING_DOCKER:8888/deb obm obm | ||
## deb http://deb.obm.org/30/contrib wheezy obm | ||
|
||
## Usage - YUM configuration example | ||
## [obm-stable] | ||
## name=obm-stable | ||
## baseurl=http://HOST_RUNNING_DOCKER:8888/rpm | ||
## enabled=1 | ||
## gpgcheck=0 | ||
|
||
FROM debian:7.7 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
python locales locales-all git \ | ||
devscripts ant ant-optional openjdk-7-jre-headless cdbs \ | ||
reprepro maven openjdk-7-jdk wget webfs rpm createrepo | ||
|
||
RUN mkdir /root/build-{deb,el6} | ||
|
||
RUN mkdir -p /repo/deb/conf ; mkdir -p /repo/rpm | ||
|
||
## COPY OBM SOURCES | ||
RUN mkdir /obm/ | ||
COPY build-system/ /obm/build-system | ||
COPY ca/ /obm/ca | ||
COPY java /obm/java | ||
COPY release /obm/release | ||
COPY saslauthd /obm/saslauthd | ||
COPY satellite /obm/satellite | ||
COPY ui /obm/ui | ||
COPY .git /obm/.git | ||
|
||
## BUILD OBM PACKAGES | ||
RUN cd obm/java/sync && \ | ||
mvn dependency:go-offline || true && \ | ||
mvn package -T1C | ||
|
||
RUN cd obm/build-system && \ | ||
./build.py /root/build-deb --nocompile --osversion wheezy all && \ | ||
./build.py /root/build-el6 --nocompile --osversion el6 all | ||
|
||
## BUILD DEB REPOSITORY | ||
COPY docker-resources/distributions /repo/deb/conf/ | ||
RUN cd /repo/deb && find /root/build-deb -name \*.deb -exec reprepro -V includedeb obm {} \; | ||
|
||
## BUILD RPM REPOSITORY | ||
RUN cp /root/build-el6/*.rpm /repo/rpm/ ; createrepo /repo/rpm | ||
|
||
EXPOSE 80 | ||
|
||
CMD webfsd -F -p 80 -r /repo/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Origin: OBM www.obm.org | ||
Label: private | ||
Codename: obm | ||
Architectures: i386 amd64 source | ||
Components: obm | ||
Description: private repository | ||
Update: cyrus jetty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters