Show More
@@ -31,5 +31,9 b' echo RUN groupadd $DBUILDUSER -g `id -g`' | |||||
31 | echo RUN useradd $DBUILDUSER -u `id -u` -g $DBUILDUSER |
|
31 | echo RUN useradd $DBUILDUSER -u `id -u` -g $DBUILDUSER | |
32 | ) | $DOCKER build --tag $CONTAINER - |
|
32 | ) | $DOCKER build --tag $CONTAINER - | |
33 |
|
33 | |||
34 | $DOCKER run -u $DBUILDUSER --rm -v $ROOTDIR:/hg $CONTAINER bash -c \ |
|
34 | RPMBUILDDIR=$ROOTDIR/packages/$PLATFORM | |
35 | "cp -a hg hg-build; cd hg-build; make clean local $PLATFORM; cp packages/$PLATFORM/* /hg/packages/$PLATFORM/" |
|
35 | contrib/buildrpm --rpmbuilddir $RPMBUILDDIR --prepare | |
|
36 | ||||
|
37 | DSHARED=/mnt/shared | |||
|
38 | $DOCKER run -u $DBUILDUSER --rm -v $RPMBUILDDIR:$DSHARED $CONTAINER \ | |||
|
39 | rpmbuild --define "_topdir $DSHARED" -ba $DSHARED/SPECS/mercurial.spec --clean |
General Comments 0
You need to be logged in to leave comments.
Login now