added build of ubuntu image #7
@ -12,7 +12,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hadolint/hadolint-action@v3.1.0
|
||||
with:
|
||||
dockerfile: Dockerfile
|
||||
dockerfile: dockerfile/alpine/Dockerfile
|
||||
|
||||
build:
|
||||
runs-on: k3s
|
||||
@ -24,7 +24,8 @@ jobs:
|
||||
with:
|
||||
image: rogersik/devops-helper
|
||||
registry: gitea.sikorski.cloud
|
||||
tag: development
|
||||
tag: dev-alpine
|
||||
cache: true
|
||||
username: rogersik
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
build_file: dockerfile/alpine/Dockerfile
|
31
.gitea/workflows/dev_ubuntu.yaml
Normal file
31
.gitea/workflows/dev_ubuntu.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Dockerfile lint:
|
||||
runs-on: k3s
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hadolint/hadolint-action@v3.1.0
|
||||
with:
|
||||
dockerfile: dockerfile/ubuntu/Dockerfile
|
||||
|
||||
build:
|
||||
runs-on: k3s
|
||||
# needs: Dockerfile lint # lets process faster pull-requests
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Kaniko build
|
||||
uses: aevea/action-kaniko@master
|
||||
with:
|
||||
image: rogersik/devops-helper
|
||||
registry: gitea.sikorski.cloud
|
||||
tag: dev-ubuntu
|
||||
cache: true
|
||||
username: rogersik
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
build_file: dockerfile/ubuntu/Dockerfile
|
@ -13,7 +13,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hadolint/hadolint-action@v3.1.0
|
||||
with:
|
||||
dockerfile: Dockerfile
|
||||
dockerfile: Dockerfile/alpine/
|
||||
|
||||
build:
|
||||
runs-on: k3s
|
||||
@ -25,7 +25,8 @@ jobs:
|
||||
with:
|
||||
image: rogersik/devops-helper
|
||||
registry: gitea.sikorski.cloud
|
||||
tag: latest
|
||||
tag: latest-alpine
|
||||
cache: true
|
||||
username: rogersik
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
build_file: dockerfile/aline/Dockerfile
|
32
.gitea/workflows/main_ubuntu.yaml
Normal file
32
.gitea/workflows/main_ubuntu.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
name: build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: "0 6 * * SUN"
|
||||
|
||||
jobs:
|
||||
Dockerfile lint:
|
||||
runs-on: k3s
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hadolint/hadolint-action@v3.1.0
|
||||
with:
|
||||
dockerfile: Dockerfile/ubuntu/
|
||||
|
||||
build:
|
||||
runs-on: k3s
|
||||
needs: Dockerfile lint
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Kaniko build
|
||||
uses: aevea/action-kaniko@master
|
||||
with:
|
||||
image: rogersik/devops-helper
|
||||
registry: gitea.sikorski.cloud
|
||||
tag: latest-ubuntu
|
||||
cache: true
|
||||
username: rogersik
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
build_file: dockerfile/aline/Dockerfile
|
15
README.md
15
README.md
@ -1,16 +1,21 @@
|
||||
# admin-helper Container
|
||||
[![Build Status](https://drone.sikorski.cloud/api/badges/RogerSik/docker-admin-helper/status.svg)](https://drone.sikorski.cloud/RogerSik/docker-admin-helper)
|
||||
|
||||
This image is builded to easier maintain unusually docker container tasks.
|
||||
This image is builded to do easier maintaince tasks. Example editing config files (with some comfort).
|
||||
|
||||
Installed tools:
|
||||
|
||||
* rsync
|
||||
* mc
|
||||
* nano
|
||||
- rsync
|
||||
- mc
|
||||
- nano
|
||||
|
||||
## Ubuntu and Alpine Images
|
||||
|
||||
We are providing Ubuntu and Alpine images. Ubuntu for tasks where Alpine maybe is not good at. [Example "kubectl cp" larger files](https://github.com/kubernetes/kubernetes/issues/115573)
|
||||
|
||||
# An example execution
|
||||
|
||||
## Editing config files
|
||||
|
||||
```
|
||||
docker run --rm \
|
||||
-v "home-assistant_config:/opt/docker-volume/" \
|
||||
|
10
dockerfile/ubuntu/Dockerfile
Normal file
10
dockerfile/ubuntu/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
# https://hub.docker.com/_/alpine
|
||||
|
||||
FROM ubuntu:22.04
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y nano mc micro rsync ncdu git curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY ./bin/ /usr/local/bin
|
||||
|
||||
ENTRYPOINT ["sleep", "infinity"]
|
Loading…
Reference in New Issue
Block a user