diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-29 14:35:53 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-29 14:35:53 -0700 |
commit | 56fb08621ec16e9798ad1df681ccf686220841b4 (patch) | |
tree | ffc29c78ee3fbb72523c1db7fe68cb5d00fad7a1 | |
parent | 4457c8218dc32b67c14ef94b2a83fcd5eb3ec39e (diff) | |
download | infinitytier-56fb08621ec16e9798ad1df681ccf686220841b4.tar.gz infinitytier-56fb08621ec16e9798ad1df681ccf686220841b4.zip |
amazon-2016.03 docker image
-rw-r--r-- | linux-build-farm/amazon-2016.03/x64/Dockerfile | 13 | ||||
-rwxr-xr-x | linux-build-farm/build.sh | 40 | ||||
-rw-r--r-- | linux-build-farm/fedora-22/x86/Dockerfile | 17 | ||||
-rw-r--r-- | make-linux.mk | 5 |
4 files changed, 52 insertions, 23 deletions
diff --git a/linux-build-farm/amazon-2016.03/x64/Dockerfile b/linux-build-farm/amazon-2016.03/x64/Dockerfile new file mode 100644 index 00000000..bd1a246a --- /dev/null +++ b/linux-build-farm/amazon-2016.03/x64/Dockerfile @@ -0,0 +1,13 @@ +#FROM ambakshi/amazon-linux:2016.03 +#MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com> + +#RUN yum update -y +#RUN yum install -y epel-release +#RUN yum install -y make development-tools rpmdevtools clang gcc-c++ ruby ruby-devel + +#RUN gem install ronn + +FROM zerotier/zt1-build-amazon-2016.03-x64-base +MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com> + +ADD zt1-src.tar.gz / diff --git a/linux-build-farm/build.sh b/linux-build-farm/build.sh index 468386ce..0eb7c5d2 100755 --- a/linux-build-farm/build.sh +++ b/linux-build-farm/build.sh @@ -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 .. diff --git a/linux-build-farm/fedora-22/x86/Dockerfile b/linux-build-farm/fedora-22/x86/Dockerfile index e4b546b4..504645c2 100644 --- a/linux-build-farm/fedora-22/x86/Dockerfile +++ b/linux-build-farm/fedora-22/x86/Dockerfile @@ -1,11 +1,14 @@ -FROM nickcis/fedora-32:22 -MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com> +#FROM nickcis/fedora-32:22 +#MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com> + +#RUN mkdir -p /etc/dnf/vars +#RUN echo 'i386' >/etc/dnf/vars/basearch +#RUN echo 'i386' >/etc/dnf/vars/arch -RUN mkdir -p /etc/dnf/vars -RUN echo 'i386' >/etc/dnf/vars/basearch -RUN echo 'i386' >/etc/dnf/vars/arch +#RUN yum update -y +#RUN yum install -y make rpmdevtools gcc-c++ rubygem-ronn json-parser-devel lz4-devel http-parser-devel libnatpmp-devel -RUN yum update -y -RUN yum install -y make rpmdevtools gcc-c++ rubygem-ronn json-parser-devel lz4-devel http-parser-devel libnatpmp-devel +FROM zerotier/zt1-build-fedora-22-x86-base +MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com> ADD zt1-src.tar.gz / diff --git a/make-linux.mk b/make-linux.mk index a2e9e802..13b15476 100644 --- a/make-linux.mk +++ b/make-linux.mk @@ -140,11 +140,12 @@ doc: manpages clean: FORCE rm -rf *.so *.o node/*.o controller/*.o osdep/*.o service/*.o ext/http-parser/*.o ext/lz4/*.o ext/json-parser/*.o ext/miniupnpc/*.o ext/libnatpmp/*.o $(OBJS) zerotier-one zerotier-idtool zerotier-cli zerotier-selftest build-* ZeroTierOneInstaller-* *.deb *.rpm .depend doc/*.1 doc/*.2 doc/*.8 debian/files debian/zerotier-one*.debhelper debian/zerotier-one.substvars debian/*.log debian/zerotier-one - find linux-build-farm -type f -name '*.deb' -print0 | xargs -0 rm -fv - find linux-build-farm -type f -name '*.rpm' -print0 | xargs -0 rm -fv distclean: clean rm -rf doc/node_modules + find linux-build-farm -type f -name '*.deb' -print0 | xargs -0 rm -fv + find linux-build-farm -type f -name '*.rpm' -print0 | xargs -0 rm -fv + find linux-build-farm -type f -name 'zt1-src.tar.gz' | xargs rm -fv realclean: distclean |