Compare commits
No commits in common. "main" and "0.4.3" have entirely different histories.
5 changed files with 15 additions and 20 deletions
14
.github/workflows/publish.yml
vendored
14
.github/workflows/publish.yml
vendored
|
@ -14,10 +14,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v3
|
||||
- name: Prepare
|
||||
id: prep
|
||||
uses: docker/metadata-action@v5.0.0
|
||||
uses: docker/metadata-action@v4.1.0
|
||||
with:
|
||||
images: |
|
||||
${{ github.repository_owner }}/ftp-server
|
||||
|
@ -28,24 +28,24 @@ jobs:
|
|||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Login to DockerHub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Login to GHCR
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
FROM alpine:3.18.4
|
||||
FROM alpine:3.16.2
|
||||
ENV FTP_USER=foo \
|
||||
FTP_PASS=bar \
|
||||
GID=1000 \
|
||||
UID=1000
|
||||
|
||||
RUN apk add --no-cache --update \
|
||||
vsftpd==3.0.5-r2
|
||||
vsftpd==3.0.5-r1
|
||||
|
||||
COPY [ "/src/vsftpd.conf", "/etc" ]
|
||||
COPY [ "/src/docker-entrypoint.sh", "/" ]
|
||||
|
||||
CMD [ "/usr/sbin/vsftpd" ]
|
||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||
EXPOSE 20/tcp 21/tcp 40000-40009/tcp
|
||||
HEALTHCHECK CMD netstat -lnt | grep :21 || exit 1
|
||||
|
|
|
@ -1,10 +1,3 @@
|
|||
docker_repository: garethflowers/ftp-server
|
||||
author: garethflowers
|
||||
remote_theme: garethflowers/jekyll-simple-theme
|
||||
plugins:
|
||||
- jekyll-remote-theme
|
||||
- jekyll-sitemap
|
||||
remote_theme: garethflowers/garethflowers.github.io
|
||||
tagline: Gareth Flowers
|
||||
twitter:
|
||||
username: garethflowers
|
||||
card: summary
|
||||
|
|
|
@ -22,4 +22,4 @@ tail -f /var/log/vsftpd.log | tee /dev/stdout &
|
|||
touch /var/log/xferlog
|
||||
tail -f /var/log/xferlog | tee /dev/stdout &
|
||||
|
||||
/usr/sbin/vsftpd
|
||||
exec "$@"
|
||||
|
|
|
@ -20,6 +20,7 @@ passwd_chroot_enable=YES
|
|||
dirlist_enable=YES
|
||||
dirmessage_enable=NO
|
||||
hide_ids=YES
|
||||
hide_file=NO
|
||||
|
||||
# file transfer
|
||||
write_enable=YES
|
||||
|
@ -30,8 +31,8 @@ log_ftp_protocol=YES
|
|||
xferlog_enable=YES
|
||||
|
||||
# network
|
||||
connect_from_port_20=NO
|
||||
ftp_data_port=20
|
||||
connect_from_port_20=YES
|
||||
ftp_data_port=21
|
||||
max_clients=0
|
||||
max_per_ip=0
|
||||
pasv_address=0.0.0.0
|
||||
|
|
Loading…
Add table
Reference in a new issue