Compare commits

...

2 Commits

3 changed files with 16 additions and 18 deletions

View File

@ -69,7 +69,7 @@ steps:
image: git.cryptic.systems/volker.raschek/git:1.4.0 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: build - name: build
image: docker.io/plugins/docker:20.18.6 image: docker.io/plugins/docker:20.18.8
settings: settings:
auto_tag: false auto_tag: false
dockerfile: Dockerfile dockerfile: Dockerfile
@ -135,7 +135,7 @@ steps:
image: git.cryptic.systems/volker.raschek/git:1.4.0 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: build - name: build
image: docker.io/plugins/docker:20.18.6 image: docker.io/plugins/docker:20.18.8
settings: settings:
auto_tag: false auto_tag: false
dockerfile: Dockerfile dockerfile: Dockerfile
@ -201,7 +201,7 @@ steps:
image: git.cryptic.systems/volker.raschek/git:1.4.0 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: build - name: build
image: docker.io/plugins/docker:20.18.6 image: docker.io/plugins/docker:20.18.8
settings: settings:
auto_tag: false auto_tag: false
dockerfile: Dockerfile dockerfile: Dockerfile
@ -265,7 +265,7 @@ steps:
image: git.cryptic.systems/volker.raschek/git:1.4.0 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: build - name: build
image: docker.io/plugins/docker:20.18.6 image: docker.io/plugins/docker:20.18.8
settings: settings:
auto_tag: false auto_tag: false
dockerfile: Dockerfile dockerfile: Dockerfile
@ -449,7 +449,7 @@ steps:
image: git.cryptic.systems/volker.raschek/git:1.4.0 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: build - name: build
image: docker.io/plugins/docker:20.18.6 image: docker.io/plugins/docker:20.18.8
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: amd64 auto_tag_suffix: amd64
@ -509,7 +509,7 @@ steps:
image: git.cryptic.systems/volker.raschek/git:1.4.0 image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: build - name: build
image: docker.io/plugins/docker:20.18.6 image: docker.io/plugins/docker:20.18.8
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm64-v8 auto_tag_suffix: arm64-v8

View File

@ -2,19 +2,17 @@
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/createrepo)](https://hub.docker.com/r/volkerraschek/createrepo) [![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/createrepo)](https://hub.docker.com/r/volkerraschek/createrepo)
This project contains all sources to build the container image This project contains all sources to build the container image `git.cryptic.systems/volker.raschek/createrepo` and the
`docker.io/volkerraschek/createrepo` and the shell script `createrepo.sh`. shell script `createrepo.sh`.
The primary goal of this project is to package the binary `createrepo` as The primary goal of this project is to package the binary `createrepo` as container image to provide the functionally
container image to provide the functionally for CI/CD workflows or for systems for CI/CD workflows or for systems which does contains the binary.
which does contains the binary.
## createrepo.sh ## createrepo.sh
The shell script `createrepo.sh` is a wrapper for the binary `createrepo`, which The shell script `createrepo.sh` is a wrapper for the binary `createrepo`, which is not available depending on the
is not available depending on the distribution. It starts the container image distribution. It starts the container image `git.cryptic.systems/volker.raschek/createrepo` in the background to call
`docker.io/volkerraschek/createrepo` in the background to call the binary. For the binary. For this reason, a container runtime like `docker` or `podman` is necessary.
this reason, a container runtime like `docker` or `podman` is necessary.
### Installation ### Installation
@ -26,8 +24,8 @@ curl https://git.cryptic.systems/volker.raschek/createrepo-docker/raw/branch/mas
### Usage ### Usage
The script forwards all arguments directly to the binary running inside the The script forwards all arguments directly to the binary running inside the container. For this reason, all arguments
container. For this reason, all arguments from the original binary can be used. from the original binary can be used.
```bash ```bash
createrepo.sh --update . # Update local repository createrepo.sh --update . # Update local repository

View File

@ -4,7 +4,7 @@ set -e
CONTAINER_RUNTIME=$(which docker) CONTAINER_RUNTIME=$(which docker)
CREATEREPO_IMAGE_FULLY_QUALIFIED="docker.io/volkerraschek/createrepo:0.17.2" # renovate: datasource=docker registryUrl=https://docker.io depName=volkerraschek/createrepo CREATEREPO_IMAGE_FULLY_QUALIFIED="git.cryptic.systems/volker.raschek/createrepo:0.17.2" # renovate: datasource=docker registryUrl=https://docker.io depName=volkerraschek/createrepo
CUSTOM_UID="${CUSTOM_UID:-"$(getent passwd "${USER}" | cut -d ':' -f 3)"}" CUSTOM_UID="${CUSTOM_UID:-"$(getent passwd "${USER}" | cut -d ':' -f 3)"}"
CUSTOM_GID="${CUSTOM_GID:-"$(getent passwd "${USER}" | cut -d ':' -f 4)"}" CUSTOM_GID="${CUSTOM_GID:-"$(getent passwd "${USER}" | cut -d ':' -f 4)"}"