Multi-arch controller container (#2037)

create arm64 & amd64 images for central controller
This commit is contained in:
Grant Limberg
2023-06-29 19:45:44 -04:00
committed by GitHub
parent 9b7d13476f
commit 0962af5e72
313 changed files with 31474 additions and 20 deletions

View File

@@ -1,10 +1,10 @@
# Dockerfile for ZeroTier Central Controllers
FROM registry.zerotier.com/zerotier/controller-builder:latest as builder
FROM us-central1-docker.pkg.dev/zerotier-central/zerotier/ctlbuild:latest as builder
MAINTAINER Adam Ierymekno <adam.ierymenko@zerotier.com>, Grant Limberg <grant.limberg@zerotier.com>
ADD . /ZeroTierOne
RUN export PATH=$PATH:~/.cargo/bin && cd ZeroTierOne && make clean && make central-controller -j8
FROM registry.zerotier.com/zerotier/controller-run:latest
FROM us-central1-docker.pkg.dev/zerotier-central/zerotier/ctlrun:latest
COPY --from=builder /ZeroTierOne/zerotier-one /usr/local/bin/zerotier-one
RUN chmod a+x /usr/local/bin/zerotier-one
RUN echo "/usr/local/lib64" > /etc/ld.so.conf.d/usr-local-lib64.conf && ldconfig