mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
Dockerfile for building zerotier/zerotier-containerized for CoreOS et al.
This commit is contained in:
parent
13100b245c
commit
1e6e112806
2 changed files with 30 additions and 0 deletions
20
linux-build-farm/other/zerotier-containerized/Dockerfile
Normal file
20
linux-build-farm/other/zerotier-containerized/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM alpine:latest
|
||||
MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com>
|
||||
|
||||
LABEL version="1.1.14"
|
||||
LABEL description="Containerized ZeroTier One for use on CoreOS or other Docker-only Linux hosts."
|
||||
|
||||
# Uncomment to build in container
|
||||
#RUN apk add --update alpine-sdk linux-headers
|
||||
|
||||
RUN apk add --update libgcc libstdc++
|
||||
|
||||
ADD zerotier-one /
|
||||
RUN chmod 0755 /zerotier-one
|
||||
RUN ln -sf /zerotier-one /zerotier-cli
|
||||
RUN mkdir -p /var/lib/zerotier-one
|
||||
|
||||
ADD main.sh /
|
||||
RUN chmod 0755 /main.sh
|
||||
|
||||
ENTRYPOINT /main.sh
|
10
linux-build-farm/other/zerotier-containerized/main.sh
Executable file
10
linux-build-farm/other/zerotier-containerized/main.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
|
||||
|
||||
if [ ! -e /dev/net/tun ]; then
|
||||
echo 'FATAL: cannot start ZeroTier One in container: /dev/net/tun not present.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec /zerotier-one
|
Loading…
Add table
Reference in a new issue