##// END OF EJS Templates
docker: add CentOS 5...
Mads Kiilerich -
r22443:d8818616 default
parent child Browse files
Show More
@@ -0,0 +1,4 b''
1 FROM saltstack/centos-5-minimal
2 RUN yum install -y gcc make rpm-build gettext tar
3 RUN yum install -y python-devel python-docutils
4 RUN yum install -y readline-devel openssl-devel ncurses-devel zlib-devel bzip2-devel
@@ -155,6 +155,16 b' docker-fedora20:'
155 mkdir -p packages/fedora20
155 mkdir -p packages/fedora20
156 contrib/dockerrpm fedora20
156 contrib/dockerrpm fedora20
157
157
158 centos5:
159 mkdir -p packages/centos5
160 contrib/buildrpm --withpython
161 cp rpmbuild/RPMS/*/* packages/centos5
162 cp rpmbuild/SRPMS/* packages/centos5
163
164 docker-centos5:
165 mkdir -p packages/centos5
166 contrib/dockerrpm centos5 --withpython
167
158 centos6:
168 centos6:
159 mkdir -p packages/centos6
169 mkdir -p packages/centos6
160 contrib/buildrpm
170 contrib/buildrpm
@@ -18,6 +18,7 b' fi'
18
18
19 PLATFORM="$1"
19 PLATFORM="$1"
20 [ "$PLATFORM" ] || { echo "Error: platform name must be specified"; exit 1; }
20 [ "$PLATFORM" ] || { echo "Error: platform name must be specified"; exit 1; }
21 shift # extra params are passed to buildrpm
21
22
22 DFILE="$ROOTDIR/contrib/docker/$PLATFORM"
23 DFILE="$ROOTDIR/contrib/docker/$PLATFORM"
23 [ -f "$DFILE" ] || { echo "Error: docker file $DFILE not found"; exit 1; }
24 [ -f "$DFILE" ] || { echo "Error: docker file $DFILE not found"; exit 1; }
@@ -32,7 +33,7 b' echo RUN useradd $DBUILDUSER -u `id -u` '
32 ) | $DOCKER build --tag $CONTAINER -
33 ) | $DOCKER build --tag $CONTAINER -
33
34
34 RPMBUILDDIR=$ROOTDIR/packages/$PLATFORM
35 RPMBUILDDIR=$ROOTDIR/packages/$PLATFORM
35 contrib/buildrpm --rpmbuilddir $RPMBUILDDIR --prepare
36 contrib/buildrpm --rpmbuilddir $RPMBUILDDIR --prepare $*
36
37
37 DSHARED=/mnt/shared
38 DSHARED=/mnt/shared
38 $DOCKER run -u $DBUILDUSER --rm -v $RPMBUILDDIR:$DSHARED $CONTAINER \
39 $DOCKER run -u $DBUILDUSER --rm -v $RPMBUILDDIR:$DSHARED $CONTAINER \
General Comments 0
You need to be logged in to leave comments. Login now