12345678910111213141516171819202122232425262728 |
- # Dockerfile for ZeroTier Central Controllers
- FROM centos:7 as builder
- MAINTAINER Adam Ierymekno <[email protected]>, Grant Limberg <[email protected]>
- ARG git_branch=master
- RUN yum update -y
- RUN yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
- RUN yum -y install epel-release && yum -y update && yum clean all
- RUN yum groupinstall -y "Development Tools"
- RUN yum install -y bash postgresql10 postgresql10-devel libpqxx-devel glibc-static libstdc++-static clang jemalloc jemalloc-devel
- # RUN git clone http://git.int.zerotier.com/zerotier/ZeroTierOne.git
- # RUN if [ "$git_branch" != "master" ]; then cd ZeroTierOne && git checkout -b $git_branch origin/$git_branch; fi
- ADD . /ZeroTierOne
- RUN cd ZeroTierOne && make clean && make central-controller
- FROM centos:7
- RUN yum install -y yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm && yum -y install epel-release && yum -y update && yum clean all
- RUN yum install -y jemalloc jemalloc-devel postgresql10
- COPY --from=builder /ZeroTierOne/zerotier-one /usr/local/bin/zerotier-one
- RUN chmod a+x /usr/local/bin/zerotier-one
- ADD ext/central-controller-docker/main.sh /
- RUN chmod a+x /main.sh
- ENTRYPOINT /main.sh
|