From 5b27dfe8d9ce84f60033fefdd7033d3d9e4b5938 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Sat, 15 May 2021 09:07:36 +0200 Subject: [PATCH] first commit --- .github/workflows/docker-publish.yml | 29 ++++++++++++++++++++++++++++ Dockerfile | 5 +++++ README.md | 20 ++++++++++++++++++- 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker-publish.yml create mode 100644 Dockerfile diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000..caf56b9 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,29 @@ +name: Publish Docker Image + +on: + push: + branches: + - main + schedule: + - cron: '0 7 * * SUN' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + tags: rogersik/admin-helper:latest + - + name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e5d091f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +# https://hub.docker.com/_/alpine +FROM alpine:latest + +RUN apk update && \ + apk add --no-cache nano mc micro rsync ncdu \ No newline at end of file diff --git a/README.md b/README.md index 608912a..923b116 100644 --- a/README.md +++ b/README.md @@ -1 +1,19 @@ -# docker-admin-helper \ No newline at end of file +# admin-helper Container + +This image is builded to easier maintain unusually docker container tasks. + +Installed tools: + +* rsync +* mc +* nano + +# An example execution +## Editing config files +``` +docker run --rm \ + -v "home-assistant_config:/opt/docker-volume/" \ + -it \ + -w /opt/docker-volume/ \ + rogersik/admin-helper +``` \ No newline at end of file