mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
amazon-2016.03 docker image
This commit is contained in:
parent
4457c8218d
commit
56fb08621e
4 changed files with 53 additions and 24 deletions
|
@ -27,28 +27,40 @@ for distro in $subdirs; do
|
|||
|
||||
cd $distro
|
||||
|
||||
cd x64
|
||||
mv ../../zt1-src.tar.gz .
|
||||
docker build -t zt1-build-${distro}-x64 .
|
||||
mv zt1-src.tar.gz ../..
|
||||
cd ..
|
||||
if [ -d x64 ]; then
|
||||
cd x64
|
||||
mv ../../zt1-src.tar.gz .
|
||||
docker build -t zt1-build-${distro}-x64 .
|
||||
mv zt1-src.tar.gz ../..
|
||||
cd ..
|
||||
fi
|
||||
|
||||
cd x86
|
||||
mv ../../zt1-src.tar.gz .
|
||||
docker build -t zt1-build-${distro}-x86 .
|
||||
mv zt1-src.tar.gz ../..
|
||||
cd ..
|
||||
if [ -d x86 ]; then
|
||||
cd x86
|
||||
mv ../../zt1-src.tar.gz .
|
||||
docker build -t zt1-build-${distro}-x86 .
|
||||
mv zt1-src.tar.gz ../..
|
||||
cd ..
|
||||
fi
|
||||
|
||||
rm -f *.deb *.rpm
|
||||
|
||||
# exit 0
|
||||
|
||||
if [ ! -n "`echo $distro | grep -F debian`" -a ! -n "`echo $distro | grep -F ubuntu`" ]; then
|
||||
docker run --rm -v `pwd`:/artifacts --privileged -it zt1-build-${distro}-x64 /bin/bash -c 'cd /ZeroTierOne ; make redhat ; cd .. ; cp `find /root/rpmbuild -type f -name *.rpm` /artifacts ; ls -l /artifacts'
|
||||
docker run --rm -v `pwd`:/artifacts --privileged -it zt1-build-${distro}-x86 /bin/bash -c 'cd /ZeroTierOne ; make redhat ; cd .. ; cp `find /root/rpmbuild -type f -name *.rpm` /artifacts ; ls -l /artifacts'
|
||||
if [ -d x64 ]; then
|
||||
docker run --rm -v `pwd`:/artifacts --privileged -it zt1-build-${distro}-x64 /bin/bash -c 'cd /ZeroTierOne ; make redhat ; cd .. ; cp `find /root/rpmbuild -type f -name *.rpm` /artifacts ; ls -l /artifacts'
|
||||
fi
|
||||
if [ -d x86 ]; then
|
||||
docker run --rm -v `pwd`:/artifacts --privileged -it zt1-build-${distro}-x86 /bin/bash -c 'cd /ZeroTierOne ; make redhat ; cd .. ; cp `find /root/rpmbuild -type f -name *.rpm` /artifacts ; ls -l /artifacts'
|
||||
fi
|
||||
else
|
||||
docker run --rm -v `pwd`:/artifacts --privileged -it zt1-build-${distro}-x64 /bin/bash -c 'cd /ZeroTierOne ; make debian ; cd .. ; cp *.deb /artifacts ; ls -l /artifacts'
|
||||
docker run --rm -v `pwd`:/artifacts --privileged -it zt1-build-${distro}-x86 /bin/bash -c 'cd /ZeroTierOne ; make debian ; cd .. ; cp *.deb /artifacts ; ls -l /artifacts'
|
||||
if [ -d x64 ]; then
|
||||
docker run --rm -v `pwd`:/artifacts --privileged -it zt1-build-${distro}-x64 /bin/bash -c 'cd /ZeroTierOne ; make debian ; cd .. ; cp *.deb /artifacts ; ls -l /artifacts'
|
||||
fi
|
||||
if [ -d x86 ]; then
|
||||
docker run --rm -v `pwd`:/artifacts --privileged -it zt1-build-${distro}-x86 /bin/bash -c 'cd /ZeroTierOne ; make debian ; cd .. ; cp *.deb /artifacts ; ls -l /artifacts'
|
||||
fi
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue