initial
continuous-integration/drone/push Build is failing Details

This commit is contained in:
quackerd 2022-08-08 10:58:32 +02:00
parent a2b3298dda
commit 97e0a7abbe
3 changed files with 42 additions and 0 deletions

25
.drone.yml Normal file
View File

@ -0,0 +1,25 @@
kind: pipeline
type: docker
name: Docker image build
trigger:
branch:
- master
steps:
- name: config
image: alpine:latest
commands:
- apk add --no-cache git
- git clone https://git.quacker.org/d/dockerutils
- sh dockerutils/alpine-pkg-tag.sh bind
- name: build
image: thegeeklab/drone-docker-buildx
privileged: true
settings:
platforms:
- linux/arm64
- linux/amd64
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: quackerd/bind

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM alpine:latest
COPY ./run.sh /opt/run.sh
RUN set -xe \
&& apk add --no-cache bind \
&& chmod +x /opt/run.sh
RUN mkdir -p /etc/bind && chown root:bind /etc/bind/ && chmod 755 /etc/bind
RUN mkdir -p /var/cache/bind && chown bind:bind /var/cache/bind && chmod 755 /var/cache/bind
RUN mkdir -p /var/lib/bind && chown bind:bind /var/lib/bind && chmod 755 /var/lib/bind
RUN mkdir -p /var/log/bind && chown bind:bind /var/log/bind && chmod 755 /var/log/bind
RUN mkdir -p /run/named && chown bind:bind /run/named && chmod 755 /run/named
VOLUME ["/etc/bind", "/var/cache/bind", "/var/lib/bind", "/var/log"]
CMD ["/opt/run.sh"]
EXPOSE ["53/udp", "53/tcp", "953/tcp"]

2
run.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
/usr/sbin/named -g -c /etc/bind/named.conf