contrib/dockerrpm
changeset 22441 bb9a06d14857
parent 22440 cf7b5c011737
child 22443 d8818616c45e
equal deleted inserted replaced
22440:cf7b5c011737 22441:bb9a06d14857
    29 cat $DFILE
    29 cat $DFILE
    30 echo RUN groupadd $DBUILDUSER -g `id -g`
    30 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