initial commit

This commit is contained in:
quackerd 2022-06-19 18:26:05 -04:00
parent 2452b3c83d
commit 756caaf3d4
3 changed files with 30 additions and 0 deletions

19
.drone.yml Normal file
View File

@ -0,0 +1,19 @@
kind: pipeline
type: docker
name: Docker image build
trigger:
branch:
- master
steps:
- name: config
image: alpine
commands:
- echo -n "latest" > .tags
- name: build
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: quackerd/dhcpd

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM alpine:latest
COPY ./run.sh /opt/run.sh
RUN set -xe \
&& apk add --no-cache dhcp \
&& chmod +x /opt/run.sh
VOLUME ["/etc/dhcp"]
CMD ["/opt/run.sh"]
EXPOSE 67/tcp

2
run.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
/usr/sbin/dhcpd -4 -f -d