Compare commits

..

64 commits
0.2.0 ... main

Author SHA1 Message Date
dependabot[bot]
2972d47b3a
chore(deps): bump alpine from 3.18.3 to 3.18.4 (#65)
Bumps alpine from 3.18.3 to 3.18.4.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-30 17:11:01 +01:00
Gareth Flowers
081cd984a5
fix(conf): removes incorrect hide_file config (#64) 2023-09-25 17:08:19 +01:00
Gareth Flowers
0143484a9a
fix(docker): removes CMD entry to run vsftpd (#63) 2023-09-25 17:01:35 +01:00
dependabot[bot]
5e2d5a7beb
chore(deps): bump docker/setup-buildx-action from 2 to 3 (#57)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-16 16:34:09 +01:00
dependabot[bot]
141e06e2cd
chore(deps): bump docker/build-push-action from 4 to 5 (#58)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-16 16:15:51 +01:00
dependabot[bot]
de78cf9252
chore(deps): bump actions/checkout from 3 to 4 (#55)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 22:03:46 +01:00
dependabot[bot]
667e747eb3
chore(deps): bump docker/login-action from 2 to 3 (#61) 2023-09-13 21:58:15 +01:00
dependabot[bot]
b10fed738b
chore(deps): bump docker/metadata-action from 4.6.0 to 5.0.0 (#59) 2023-09-12 20:38:35 +01:00
dependabot[bot]
79658d5d77
chore(deps): bump docker/setup-qemu-action from 2 to 3 (#60) 2023-09-12 20:31:37 +01:00
dependabot[bot]
9613032974
chore(deps): bump alpine from 3.18.2 to 3.18.3 (#54) 2023-08-08 22:35:23 +01:00
dependabot[bot]
a2c9b8a526
chore(deps): bump alpine from 3.18.0 to 3.18.2 (#50) 2023-06-17 16:01:55 +01:00
dependabot[bot]
560b73e4c9
chore(deps): bump docker/metadata-action from 4.5.0 to 4.6.0 (#49) 2023-06-13 22:07:40 +01:00
dependabot[bot]
7e39cb53a8
chore(deps): bump docker/metadata-action from 4.4.0 to 4.5.0 (#48) 2023-06-08 12:37:05 +01:00
dependabot[bot]
62a330b306
chore(deps): bump alpine from 3.17.3 to 3.18.0 (#46) 2023-05-14 21:02:13 +01:00
Gareth Flowers
76e050b39a chore: update gh-pages config 2023-04-29 01:55:59 +01:00
Gareth Flowers
f8ed77d02f chore(): adds jekyll sitemap 2023-04-20 12:52:44 +01:00
dependabot[bot]
75c005acd8
chore(deps): bump docker/metadata-action from 4.3.0 to 4.4.0 (#44) 2023-04-18 21:59:10 +01:00
Gareth Flowers
250dd569d5 chore(): adds docker repo to ghp 2023-04-17 23:05:55 +01:00
dependabot[bot]
066d7de4f5
chore(deps): bump alpine from 3.17.2 to 3.17.3 (#43) 2023-03-30 08:22:48 +01:00
dependabot[bot]
561048c733
chore(deps): bump alpine from 3.17.1 to 3.17.2 (#41) 2023-02-13 22:26:33 +00:00
dependabot[bot]
cdfc224a6a
chore(deps): bump docker/build-push-action from 3 to 4 (#40) 2023-01-30 22:10:34 +00:00
dependabot[bot]
ed812ba47e
chore(deps): bump docker/metadata-action from 4.2.0 to 4.3.0 (#39)
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-13 20:36:34 +00:00
dependabot[bot]
2eb9bb0aea
chore(deps): bump docker/metadata-action from 4.1.1 to 4.2.0 (#38) 2023-01-11 20:03:44 +00:00
dependabot[bot]
1e44bb641d
chore(deps): bump alpine from 3.17.0 to 3.17.1 (#37) 2023-01-09 22:10:17 +00:00
dependabot[bot]
1664796bc6
chore(deps): bump alpine from 3.16.3 to 3.17.0 (#34) 2023-01-01 15:55:50 +00:00
dependabot[bot]
257f191551
chore(deps): bump alpine from 3.16.2 to 3.16.3 (#33) 2022-11-14 19:11:57 +00:00
Gareth Flowers
3eae7bde83 fix(conf): prevent connections on port 20 (#32)
* fix(conf): use port 20 for data

* fix(conf): prevent connections from port 20
2022-10-20 10:49:28 +01:00
dependabot[bot]
e206e47c17
chore(deps): bump docker/metadata-action from 4.1.0 to 4.1.1 (#31) 2022-10-18 21:10:51 +01:00
dependabot[bot]
06162a4625
chore(deps): bump docker/metadata-action from 4.0.1 to 4.1.0 (#30) 2022-10-12 20:19:21 +01:00
dependabot[bot]
c9a39f7b98
chore(deps): bump alpine from 3.16.1 to 3.16.2 (#29) 2022-08-20 21:08:29 +01:00
dependabot[bot]
3211fdc323
chore(deps): bump alpine from 3.16.0 to 3.16.1 (#28) 2022-07-26 12:04:55 +01:00
dependabot[bot]
711e65ccc8
chore(deps): bump alpine from 3.15.4 to 3.16.0 (#24)
Bumps alpine from 3.15.4 to 3.16.0.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gareth Flowers <garethflowers@users.noreply.github.com>
2022-07-03 23:33:12 +01:00
Gareth Flowers
72cceeacb7
feat(): adds logging to stdout (#26)
* wip

* feat(): log to stdout
2022-07-03 23:29:32 +01:00
Gareth Flowers
38f730875e feat(): adds _config.yml 2022-06-24 00:43:55 +01:00
Gareth Flowers
96f729e334 chore(github): run publish on version tags 2022-06-22 00:19:12 +01:00
dependabot[bot]
a45f7de658
chore(deps): bump docker/setup-qemu-action from 1 to 2 (#18) 2022-05-06 08:21:08 +01:00
dependabot[bot]
39ea12d722
chore(deps): bump docker/setup-buildx-action from 1 to 2 (#20) 2022-05-05 21:42:25 +01:00
dependabot[bot]
3bed95db5a
chore(deps): bump docker/metadata-action from 3.8.0 to 4.0.1 (#21) 2022-05-05 21:10:31 +01:00
dependabot[bot]
04095af51c
chore(deps): bump docker/build-push-action from 2 to 3 (#22) 2022-05-05 21:00:16 +01:00
dependabot[bot]
e55ca51ef3
chore(deps): bump docker/login-action from 1 to 2 (#19) 2022-05-05 20:25:00 +01:00
dependabot[bot]
ae9debad97
chore(deps): bump alpine from 3.15.0 to 3.15.4 (#17)
Bumps alpine from 3.15.0 to 3.15.4.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gareth Flowers <garethflowers@users.noreply.github.com>
2022-05-01 22:15:24 +01:00
Gareth Flowers
80545b3ace chore(github): adds reviewers to dependabot 2022-04-30 23:20:21 +01:00
Gareth Flowers
f7ea9ae881 chore(github): add docker to dependabot 2022-04-30 20:54:44 +01:00
dependabot[bot]
fdd8a45eb1
chore(deps): bump docker/metadata-action from 3.7.0 to 3.8.0 (#15)
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 3.7.0 to 3.8.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v3.7.0...v3.8.0)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-30 11:20:27 +01:00
Gareth Flowers
53fc3886d8
chore(github): only run publish against main branch (#16)
* chore(github): only run publish against main branch

* chore(github): tweak name
2022-04-30 11:11:22 +01:00
dependabot[bot]
e17388b072
chore(deps): bump docker/metadata-action from 3.6.2 to 3.7.0 (#13) 2022-04-06 20:42:09 +01:00
dependabot[bot]
17fad30c4c
chore(deps): bump peter-evans/dockerhub-description from 2.4.3 to 3 (#12)
Bumps [peter-evans/dockerhub-description](https://github.com/peter-evans/dockerhub-description) from 2.4.3 to 3.
- [Release notes](https://github.com/peter-evans/dockerhub-description/releases)
- [Commits](https://github.com/peter-evans/dockerhub-description/compare/v2.4.3...v3)

---
updated-dependencies:
- dependency-name: peter-evans/dockerhub-description
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-23 00:11:34 +00:00
dependabot[bot]
d0c2826796
chore(deps): bump docker/metadata-action from 3.6.0 to 3.6.2 (#11)
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 3.6.0 to 3.6.2.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v3.6.0...v3.6.2)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-22 10:11:48 +00:00
Gareth Flowers
79111eb3cf chore(deps): bump docker/metadata-action to 3.6.0 2022-03-19 23:38:28 +00:00
Gareth Flowers
1b1931ff4d chore(conf): adds .editorconfig 2022-03-19 23:26:51 +00:00
dependabot[bot]
c93a484e86
chore(deps): bump actions/checkout from 2 to 3 (#10)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-13 00:14:49 +00:00
Gareth Flowers
5b26f6425a docs(readme): adds docker compose example 2022-01-22 23:03:13 +00:00
Gareth Flowers
ae94c71a53 feat(docker): alpine 3.15.0, vsftpd 3.0.5r1 2022-01-22 22:49:15 +00:00
Gareth Flowers
27f5b5361d test(): exit tests if anything fails 2022-01-22 22:34:46 +00:00
Gareth Flowers
a67dccdcd1 test(): adds test script 2021-12-23 22:02:59 +00:00
Gareth Flowers
658ece9e03 chore(docker): bump alpine from 3.14.0 ro 3.14.3 2021-11-14 22:26:04 +00:00
Gareth Flowers
7e1a53a950 feat(docker): alpine v3.14.0, vsftpd v3.0.4r0 2021-08-05 22:03:28 +01:00
Gareth Flowers
ce54f573eb refact(): remove config 2021-08-05 21:57:02 +01:00
dependabot[bot]
9c4e9a03f0
chore(deps): bump peter-evans/dockerhub-description from 2.4.2 to 2.4.3 (#9) 2021-07-14 14:20:24 +01:00
Gareth Flowers
c8ead95d4a Set theme jekyll-theme-minimal 2021-05-16 17:48:40 +01:00
Gareth Flowers
cd4a51ee5f chore(ci): specify repo when updating description 2021-05-15 14:00:34 +01:00
Gareth Flowers
60d0e1fe28 chore(deps): bump peter-evans/dockerhub-description from 2 to 2.4.2 2021-05-15 13:55:07 +01:00
Gareth Flowers
fc837e7c0a chore(ci): run ci on pull requests and page builds 2021-05-13 22:17:28 +01:00
Gareth Flowers
3315a73ca5 chore(github): specifies reviewers for dependabot 2021-05-13 22:04:18 +01:00
9 changed files with 101 additions and 23 deletions

13
.editorconfig Normal file
View file

@ -0,0 +1,13 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[*.yml]
indent_size = 2
indent_style = space

View file

@ -2,5 +2,16 @@ version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
reviewers:
- "garethflowers"
schedule:
interval: "daily"
- package-ecosystem: "docker"
commit-message:
include: "scope"
prefix: "chore"
directory: "/"
reviewers:
- "garethflowers"
schedule:
interval: "daily"

View file

@ -1,18 +1,23 @@
name: Publish
name: Build and Publish Images
on:
pull_request:
branches:
- main
push:
branches: main
branches:
- main
tags:
- "*.*.*"
jobs:
main:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Prepare
id: prep
uses: crazy-max/ghaction-docker-meta@v2
uses: docker/metadata-action@v5.0.0
with:
images: |
${{ github.repository_owner }}/ftp-server
@ -23,32 +28,35 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v1
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GHCR
uses: docker/login-action@v1
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}
labels: ${{ steps.prep.outputs.labels }}
- name: Update Description
continue-on-error: true
uses: peter-evans/dockerhub-description@v2
uses: peter-evans/dockerhub-description@v3
with:
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ github.repository_owner }}/ftp-server
short-description: ${{ github.event.repository.description }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

View file

@ -1,17 +1,15 @@
FROM alpine:3.13.4
FROM alpine:3.18.4
ENV FTP_USER=foo \
FTP_PASS=bar \
GID=1000 \
UID=1000
RUN apk add --no-cache --update \
vsftpd==3.0.3-r6
vsftpd==3.0.5-r2
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

View file

@ -5,7 +5,7 @@ A simple FTP server, using
## How to use this image
### Start a FTP Server instance
### start a FTP Server instance
To start a container, with data stored in `/data` on the host, use the
following:
@ -22,6 +22,23 @@ docker run \
garethflowers/ftp-server
```
### ... via `docker compose`
```yml
services:
ftp-server:
container_name: my-ftp-server
environment:
- FTP_PASS=123
- FTP_USER=user
image: garethflowers/ftp-server
ports:
- '20-21:20-21/tcp'
- '40000-40009:40000-40009/tcp'
volumes:
- '/data:/home/user'
```
## License
- This image is released under the

10
_config.yml Normal file
View file

@ -0,0 +1,10 @@
docker_repository: garethflowers/ftp-server
author: garethflowers
plugins:
- jekyll-remote-theme
- jekyll-sitemap
remote_theme: garethflowers/garethflowers.github.io
tagline: Gareth Flowers
twitter:
username: garethflowers
card: summary

View file

@ -17,4 +17,9 @@ mkdir -p /home/$FTP_USER
chown -R $FTP_USER:$FTP_USER /home/$FTP_USER
echo "$FTP_USER:$FTP_PASS" | /usr/sbin/chpasswd
exec "$@"
touch /var/log/vsftpd.log
tail -f /var/log/vsftpd.log | tee /dev/stdout &
touch /var/log/xferlog
tail -f /var/log/xferlog | tee /dev/stdout &
/usr/sbin/vsftpd

View file

@ -6,8 +6,8 @@ session_support=NO
# access
anonymous_enable=NO
local_enable=YES
ftpd_banner=FTP Server
local_enable=YES
# local user
allow_writeable_chroot=YES
@ -17,22 +17,30 @@ local_umask=022
passwd_chroot_enable=YES
# directory
dirlist_enable=YES
dirmessage_enable=NO
hide_ids=YES
# file transfer
write_enable=YES
# logging
dual_log_enable=YES
log_ftp_protocol=YES
xferlog_enable=YES
# network
connect_from_port_20=NO
ftp_data_port=20
max_clients=0
max_per_ip=0
pasv_enable=YES
pasv_address=0.0.0.0
pasv_addr_resolve=YES
pasv_promiscuous=YES
pasv_enable=YES
pasv_max_port=40009
pasv_min_port=40000
port_enable=YES
ftp_data_port=20
connect_from_port_20=YES
# tweaks
seccomp_sandbox=NO

8
test.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
set -xe
export IMAGE_NAME=garethflowers/ftp-server
docker build --tag $IMAGE_NAME .
docker run --rm $IMAGE_NAME sh -c 'vsftpd -version 0>&1'
echo "\nOK"