mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
commit
981d09cc28
4 changed files with 7 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Dockerfile for ZeroTier Central Controllers
|
# Dockerfile for ZeroTier Central Controllers
|
||||||
FROM us-central1-docker.pkg.dev/zerotier-central/zerotier/ctlbuild:latest as builder
|
FROM registry.zerotier.com/zerotier/ctlbuild:latest as builder
|
||||||
MAINTAINER Adam Ierymekno <adam.ierymenko@zerotier.com>, Grant Limberg <grant.limberg@zerotier.com>
|
MAINTAINER Adam Ierymekno <adam.ierymenko@zerotier.com>, Grant Limberg <grant.limberg@zerotier.com>
|
||||||
ADD . /ZeroTierOne
|
ADD . /ZeroTierOne
|
||||||
RUN export PATH=$PATH:~/.cargo/bin && cd ZeroTierOne && make clean && make central-controller -j8
|
RUN export PATH=$PATH:~/.cargo/bin && cd ZeroTierOne && make clean && make central-controller -j8
|
||||||
|
|
||||||
FROM us-central1-docker.pkg.dev/zerotier-central/zerotier/ctlrun:latest
|
FROM registry.zerotier.com/zerotier/ctlrun:latest
|
||||||
COPY --from=builder /ZeroTierOne/zerotier-one /usr/local/bin/zerotier-one
|
COPY --from=builder /ZeroTierOne/zerotier-one /usr/local/bin/zerotier-one
|
||||||
RUN chmod a+x /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
|
RUN echo "/usr/local/lib64" > /etc/ld.so.conf.d/usr-local-lib64.conf && ldconfig
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
registry = us-central1-docker.pkg.dev/zerotier-central/zerotier
|
registry = registry.zerotier.com/zerotier
|
||||||
|
|
||||||
all: controller-builder controller-runbase
|
all: controller-builder controller-runbase
|
||||||
|
|
||||||
|
|
|
@ -419,8 +419,8 @@ central-controller: FORCE
|
||||||
make -j4 ZT_CONTROLLER=1 one
|
make -j4 ZT_CONTROLLER=1 one
|
||||||
|
|
||||||
central-controller-docker: _buildx FORCE
|
central-controller-docker: _buildx FORCE
|
||||||
docker buildx build --platform linux/amd64,linux/arm64 --no-cache -t us-central1-docker.pkg.dev/zerotier-central/zerotier/ztcentral-controller:${TIMESTAMP} -f ext/central-controller-docker/Dockerfile --build-arg git_branch=`git name-rev --name-only HEAD` . --push
|
docker buildx build --platform linux/amd64,linux/arm64 --no-cache -t registry.zerotier.com/zerotier/ztcentral-controller:${TIMESTAMP} -f ext/central-controller-docker/Dockerfile --build-arg git_branch=`git name-rev --name-only HEAD` . --push
|
||||||
@echo Image: us-central1-docker.pkg.dev/zerotier-central/zerotier/ztcentral-controller:${TIMESTAMP}
|
@echo Image: registry.zerotier.com/zerotier/ztcentral-controller:${TIMESTAMP}
|
||||||
|
|
||||||
debug: FORCE
|
debug: FORCE
|
||||||
make ZT_DEBUG=1 one
|
make ZT_DEBUG=1 one
|
||||||
|
|
|
@ -184,8 +184,8 @@ _buildx:
|
||||||
@echo docker buildx inspect --bootstrap
|
@echo docker buildx inspect --bootstrap
|
||||||
|
|
||||||
central-controller-docker: _buildx FORCE
|
central-controller-docker: _buildx FORCE
|
||||||
docker buildx build --platform linux/arm64,linux/amd64 --no-cache -t us-central1-docker.pkg.dev/zerotier-central/zerotier/ztcentral-controller:${TIMESTAMP} -f ext/central-controller-docker/Dockerfile --build-arg git_branch=$(shell git name-rev --name-only HEAD) . --push
|
docker buildx build --platform linux/arm64,linux/amd64 --no-cache -t registry.zerotier.com/zerotier/ztcentral-controller:${TIMESTAMP} -f ext/central-controller-docker/Dockerfile --build-arg git_branch=$(shell git name-rev --name-only HEAD) . --push
|
||||||
@echo Image: us-central1-docker.pkg.dev/zerotier-central/zerotier/ztcentral-controller:${TIMESTAMP}
|
@echo Image: registry.zerotier.com/zerotier/ztcentral-controller:${TIMESTAMP}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf MacEthernetTapAgent *.dSYM build-* *.a *.pkg *.dmg *.o node/*.o controller/*.o service/*.o osdep/*.o ext/http-parser/*.o $(CORE_OBJS) $(ONE_OBJS) zerotier-one zerotier-idtool zerotier-selftest zerotier-cli zerotier doc/node_modules zt1_update_$(ZT_BUILD_PLATFORM)_$(ZT_BUILD_ARCHITECTURE)_* zeroidc/target/
|
rm -rf MacEthernetTapAgent *.dSYM build-* *.a *.pkg *.dmg *.o node/*.o controller/*.o service/*.o osdep/*.o ext/http-parser/*.o $(CORE_OBJS) $(ONE_OBJS) zerotier-one zerotier-idtool zerotier-selftest zerotier-cli zerotier doc/node_modules zt1_update_$(ZT_BUILD_PLATFORM)_$(ZT_BUILD_ARCHITECTURE)_* zeroidc/target/
|
||||||
|
|
Loading…
Add table
Reference in a new issue