commit dbb0c34f73be8aaf13c1830bdab7ac692d1050fa Author: Kaan Barmore-Genc Date: Sat Nov 19 11:59:15 2022 -0500 Add rsync diff --git a/.woodpecker/rsync.yml b/.woodpecker/rsync.yml new file mode 100644 index 0000000..c073a9e --- /dev/null +++ b/.woodpecker/rsync.yml @@ -0,0 +1,11 @@ +pipeline: + build: + image: woodpeckerci/plugin-docker-buildx + secrets: [docker_username, docker_password] + settings: + repo: seriousbug/rsync + dockerfile: rsync/Dockerfile + platforms: linux/amd64 + tag: latest + when: + path: rsync/* diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..e8a8710 --- /dev/null +++ b/Readme.md @@ -0,0 +1,25 @@ +## Containers + +This repository contains various docker images that I found useful. These are +typically not very complex, usually not more than an alpine image with a few +packages installed. + +Right now I'm using these primarily in my Woodpecker CI steps, but they are +regular docker images and can be used anywhere. + +### rsync + +Gives you access to `rsync`, `ssh`, and `scp` commands. + +--- + +## Adding a new container + +1. Add a new folder, named after the container. +1. Create a Dockerfile inside of that folder, and fill out the dockerfile. +1. Go to Dockerhub, and create a repository for this new container. +1. Under `.woodpecker/`, copy an existing pipeline. Name the copy after the container. +1. Update the new pipeline: + - Update the `repo: ...` to match the new repo you created + - Point `dockerfile: ...` to the new dockerfile + - Update `when: ...` condition so it's built when the correct folder is updated diff --git a/rsync/Dockerfile b/rsync/Dockerfile new file mode 100644 index 0000000..93d3fd0 --- /dev/null +++ b/rsync/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:latest + +LABEL org.opencontainers.image.authors="kaan@bgenc.net" + +RUN apk add --no-cache openssh rsync