Skip to content

Commit 13a65b5

Browse files
committed
services/pkgs/rsync: Add rsync service container
1 parent 196c82e commit 13a65b5

3 files changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/pkg-rsync.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: RSync Service Container
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: "Version tag"
7+
required: true
8+
9+
jobs:
10+
main:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@master
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v1
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v1
19+
- name: Login to GCHR
20+
uses: docker/login-action@v1
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Build and push
26+
id: docker_build
27+
uses: docker/build-push-action@v2
28+
with:
29+
context: services/pkg/rsync
30+
push: true
31+
tags: "ghcr.io/void-linux/infra-rsync:${{ github.event.inputs.version }}"
32+
labels: |
33+
org.opencontainers.image.source=${{ github.repositoryUrl }}

services/pkg/rsync/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM ghcr.io/void-linux/void-linux:latest-thin-x86_64
2+
3+
RUN xbps-install -Sy rsync tini
4+
5+
WORKDIR /srv/rsync
6+
COPY rsyncd.conf /etc/rsyncd.conf
7+
ENTRYPOINT ["/usr/bin/tini", "rsync", "--", "--daemon", "--no-detach", "--config", "/etc/rsyncd.conf"]

services/pkg/rsync/rsyncd.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
log file = /dev/stdout
2+
port = 873
3+
4+
[voidlinux]
5+
path = /srv/rsync
6+
comment = Main Void Mirror
7+
read only = true
8+
timeout = 300
9+
list = true

0 commit comments

Comments
 (0)