initial commit

This commit is contained in:
quackerd 2022-06-20 05:52:58 -04:00
parent 0f11da07a0
commit 1d383346d6
3 changed files with 34 additions and 0 deletions

21
.drone.yml Normal file
View File

@ -0,0 +1,21 @@
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 tftp-hpa
- name: build
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: quackerd/tftp

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM alpine:latest
COPY ./run.sh /opt/run.sh
RUN set -xe \
&& apk add --no-cache tftp-hpa \
&& chmod +x /opt/run.sh
VOLUME ["/var/tftpboot"]
CMD ["/opt/run.sh"]
EXPOSE 69/tcp
EXPOSE 69/udp

2
run.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
/usr/sbin/in.tftpd -4 -L -c -s -p /var/tftpboot