Compare commits

..

1 Commits

Author SHA1 Message Date
b0c04c0133 chore(deps): update dependency docker/compose to v2.35.1
Some checks failed
Markdown linter / markdown-lint (push) Failing after 12s
Markdown linter / markdown-link-checker (push) Failing after 20s
Build / build-amd64 (pull_request) Successful in 7m56s
Build / build-arm64 (pull_request) Successful in 10m37s
2025-05-06 22:04:01 +00:00
10 changed files with 104 additions and 223 deletions

View File

@@ -1,71 +0,0 @@
name: Auto release
on:
push:
branches: [ "master" ]
paths:
- Makefile
env:
GIT_EMAIL: noreply@cryptic.systems
GIT_USER: CSRBot
jobs:
tag_on_change:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5.0.0
with:
fetch-depth: 0
- name: Check if DC_VERSION line changed
id: check_change
run: |
echo "changed=false" >> $GITHUB_OUTPUT
for file in Makefile; do
if git diff HEAD~1 HEAD -- "${file}" | grep --quiet '^[+-]DC_VERSION'; then
echo "DC_VERSION line changed."
echo "changed=true" >> $GITHUB_OUTPUT
break
fi
done
- name: Stop if no change detected
if: steps.check_change.outputs.changed == 'false'
run: echo "No DC_VERSION change. Exiting..."
- name: Create and push new tag
id: create_tag
if: steps.check_change.outputs.changed == 'true'
run: |
defined_tag="$(grep --only-matching --perl-regexp 'DC_VERSION\?=v?[\d]*(\.[\d]*){0,2}' Makefile | cut --delimiter='=' --fields=2)"
echo "defined_tag=${defined_tag}" >> $GITHUB_OUTPUT
echo "New tag: ${defined_tag}"
git config --local user.name "${GIT_USER}"
git config --local user.email "${GIT_EMAIL}"
git tag -a "${defined_tag}" -m "${defined_tag}"
git push origin "${defined_tag}"
- name: Trigger "Push tagged images" workflow
uses: actions/github-script@v8.0.0
with:
script: |
const workflowFileName = 'release.yaml';
const defaultBranch = context.payload.repository.default_branch;
const definedTag = '${{ steps.create_tag.outputs.defined_tag }}';
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: workflowFileName,
ref: defaultBranch,
inputs: {
tag: definedTag
}
});

View File

@@ -1,8 +1,5 @@
name: Build name: Build
env:
GOPROXY: ${{ var.GOPROXY }}
on: on:
pull_request: pull_request:
types: types:
@@ -18,18 +15,15 @@ jobs:
build-arm64: build-arm64:
runs-on: ubuntu-latest-arm64 runs-on: ubuntu-latest-arm64
steps: steps:
- uses: actions/checkout@v5.0.0 - uses: actions/checkout@v4.2.2
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1 - uses: docker/setup-buildx-action@v3.10.0
- name: Build image - name: Build image
run: | run: |
TAG=latest TAG=latest
docker buildx build \ docker buildx build \
--build-arg GONOSUMDB=${GONOSUMDB} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--platform linux/arm64 \ --platform linux/arm64 \
--file Dockerfile \ --file Dockerfile \
--provenance false \ --provenance false \
@@ -39,18 +33,15 @@ jobs:
build-amd64: build-amd64:
runs-on: ubuntu-latest-amd64 runs-on: ubuntu-latest-amd64
steps: steps:
- uses: actions/checkout@v5.0.0 - uses: actions/checkout@v4.2.2
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1 - uses: docker/setup-buildx-action@v3.10.0
- name: Build image - name: Build image
run: | run: |
TAG=latest TAG=latest
docker buildx build \ docker buildx build \
--build-arg GONOSUMDB=${GONOSUMDB} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--platform linux/amd64 \ --platform linux/amd64 \
--file Dockerfile \ --file Dockerfile \
--provenance false \ --provenance false \

View File

@@ -1,21 +1,46 @@
name: 'Lint Markdown files' name: Markdown linter
on: on:
pull_request: pull_request:
types: paths: [ "**/*.md" ]
- opened types: [ "opened", "reopened", "synchronize" ]
- reopened
- synchronize
push: push:
branches: branches:
- master - '**'
paths: [ "**/*.md" ]
tags-ignore:
- '**'
workflow_dispatch: {} workflow_dispatch: {}
jobs: jobs:
markdown-lint: markdown-link-checker:
runs-on: ubuntu-latest container:
image: docker.io/library/node:23.11.0-alpine
runs-on:
- ubuntu-latest
steps: steps:
- uses: actions/checkout@v5.0.0 - name: Install tooling
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0 run: |
with: apk update
globs: '**/*.md' apk add git npm
- uses: actions/checkout@v4.2.2
- name: Verify links in markdown files
run: |
npm install
npm run readme:link
markdown-lint:
container:
image: docker.io/library/node:23.11.0-alpine
runs-on:
- ubuntu-latest
steps:
- name: Install tooling
run: |
apk update
apk add git
- uses: actions/checkout@v4.2.2
- name: Lint markdown files
run: |
npm install
npm run readme:lint

View File

@@ -1,40 +1,19 @@
name: Release name: Release
env:
GOPROXY: ${{ var.GOPROXY }}
on: on:
push: push:
tags: tags:
- "**" - "**"
workflow_dispatch:
inputs:
tag:
description: "Tag which should be released"
type: string
required: true
jobs: jobs:
push-arm64: push-arm64:
runs-on: ubuntu-latest-arm64 runs-on: ubuntu-latest-arm64
steps: steps:
- id: version_extraction - uses: actions/checkout@v4.2.2
name: Extract git tag
run: |
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v5.0.0
with:
fetch-tags: true
ref: "${{ steps.version_extraction.outputs.version }}"
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1 - uses: docker/setup-buildx-action@v3.10.0
- uses: docker/login-action@v3.6.0 - uses: docker/login-action@v3.4.0
with: with:
registry: git.cryptic.systems registry: git.cryptic.systems
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
@@ -42,37 +21,24 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker buildx build \ docker buildx build \
--build-arg GONOSUMDB=${GONOSUMDB} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--platform linux/arm64 \ --platform linux/arm64 \
--file Dockerfile \ --file Dockerfile \
--provenance false \ --provenance false \
--tag git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-arm64 \ --tag git.cryptic.systems/volker.raschek/docker-compose:${TAG}-arm64 \
--push \ --push \
. .
push-amd64: push-amd64:
runs-on: ubuntu-latest-amd64 runs-on: ubuntu-latest-amd64
steps: steps:
- id: version_extraction - uses: actions/checkout@v4.2.2
name: Extract git tag
run: |
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v5.0.0
with:
fetch-tags: true
ref: "${{ steps.version_extraction.outputs.version }}"
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1 - uses: docker/setup-buildx-action@v3.10.0
- uses: docker/login-action@v3.6.0 - uses: docker/login-action@v3.4.0
with: with:
registry: git.cryptic.systems registry: git.cryptic.systems
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
@@ -80,14 +46,13 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker buildx build \ docker buildx build \
--build-arg GONOSUMDB=${GONOSUMDB} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--platform linux/amd64 \ --platform linux/amd64 \
--file Dockerfile \ --file Dockerfile \
--provenance false \ --provenance false \
--tag git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-amd64 \ --tag git.cryptic.systems/volker.raschek/docker-compose:${TAG}-amd64 \
--push \ --push \
. .
@@ -97,15 +62,7 @@ jobs:
- push-arm64 - push-arm64
- push-amd64 - push-amd64
steps: steps:
- id: version_extraction - uses: docker/login-action@v3.4.0
name: Extract git tag
run: |
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3.6.0
with: with:
registry: git.cryptic.systems registry: git.cryptic.systems
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
@@ -113,36 +70,30 @@ jobs:
- name: Create and push manifest - name: Create and push manifest
run: | run: |
docker manifest create git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }} \ TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
--amend git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-amd64 \
--amend git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-arm64
docker manifest push git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }} docker manifest create git.cryptic.systems/volker.raschek/docker-compose:${TAG} \
--amend git.cryptic.systems/volker.raschek/docker-compose:${TAG}-amd64 \
--amend git.cryptic.systems/volker.raschek/docker-compose:${TAG}-arm64
docker manifest push git.cryptic.systems/volker.raschek/docker-compose:${TAG}
sync-to-hub-docker-io: sync-to-hub-docker-io:
needs: needs:
- push-manifest - push-manifest
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- id: version_extraction - name: Copy images to docker.io
name: Extract git tag run: |
run: | TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Copy images to docker.io apt-get update --yes
run: | apt-get install --yes skopeo
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm') skopeo copy \
--all \
apt-get update --yes --dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
apt-get install --yes skopeo --dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
skopeo copy \ --src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
--all \ --src-username volker.raschek \
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \ docker://git.cryptic.systems/volker.raschek/docker-compose:${TAG} \
--dest-username ${{ secrets.DOCKER_IO_USERNAME }} \ docker://docker.io/volkerraschek/docker-compose:${TAG}
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
--src-username volker.raschek \
docker://git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }} \
docker://docker.io/volkerraschek/docker-compose:${{ steps.version_extraction.outputs.version }}

View File

@@ -6,15 +6,14 @@ on:
- master - master
paths: paths:
- README.md - README.md
workflow_dispatch: {}
jobs: jobs:
update-description-on-hub-docker-io: update-description-on-hub-docker-io:
runs-on: runs-on:
- ubuntu-latest - ubuntu-latest
steps: steps:
- uses: actions/checkout@v5.0.0 - uses: actions/checkout@v4.2.2
- uses: peter-evans/dockerhub-description@v5.0.0 - uses: peter-evans/dockerhub-description@v4.0.2
with: with:
username: ${{ secrets.DOCKER_IO_USERNAME }} username: ${{ secrets.DOCKER_IO_USERNAME }}
password: ${{ secrets.DOCKER_IO_PASSWORD }} password: ${{ secrets.DOCKER_IO_PASSWORD }}

View File

@@ -56,6 +56,8 @@ MD013:
tables: false tables: false
# Include headings # Include headings
headings: true headings: true
# Include headings
headers: true
# Strict length checking # Strict length checking
strict: false strict: false
# Stern length checking # Stern length checking
@@ -68,6 +70,11 @@ MD022:
# Blank lines below heading # Blank lines below heading
lines_below: 1 lines_below: 1
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
MD024:
# Only check sibling headings
allow_different_nesting: true
# MD025/single-title/single-h1 - Multiple top-level headings in the same document # MD025/single-title/single-h1 - Multiple top-level headings in the same document
MD025: MD025:
# Heading level # Heading level

View File

@@ -1,9 +1,6 @@
FROM docker.io/library/golang:1.25.3-alpine3.21 AS build FROM docker.io/library/golang:1.24.2-alpine3.21 AS build
ARG DC_VERSION=main ARG DC_VERSION=main
ARG GONOSUMDB
ARG GOPRIVATE
ARG GOPROXY
RUN set -ex && \ RUN set -ex && \
apk update && \ apk update && \
@@ -14,7 +11,7 @@ RUN git clone https://github.com/docker/compose.git --branch ${DC_VERSION} docke
cd docker-compose && \ cd docker-compose && \
make DESTDIR=/cache make DESTDIR=/cache
FROM docker.io/library/alpine:3.22 FROM docker.io/library/alpine:3.21
COPY --from=build /cache/docker-compose /usr/bin/docker-compose COPY --from=build /cache/docker-compose /usr/bin/docker-compose

View File

@@ -1,6 +1,6 @@
# DC_VERSION # DC_VERSION
# Only required to install a specify version # Only required to install a specifiy version
DC_VERSION?=v2.40.2 # renovate: datasource=github-releases depName=docker/compose DC_VERSION?=v2.35.1 # renovate: datasource=github-releases depName=docker/compose
# CONTAINER_RUNTIME # CONTAINER_RUNTIME
# The CONTAINER_RUNTIME variable will be used to specified the path to a container runtime. This is needed to start and # The CONTAINER_RUNTIME variable will be used to specified the path to a container runtime. This is needed to start and
@@ -17,20 +17,12 @@ DC_IMAGE_NAME:=docker-compose
DC_IMAGE_VERSION?=latest DC_IMAGE_VERSION?=latest
DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IMAGE_NAME}:${DC_IMAGE_VERSION} DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IMAGE_NAME}:${DC_IMAGE_VERSION}
# Golang related environment variables
GONOSUMDB?=
GOPRIVATE?=
GOPROXY?=
# BUILD CONTAINER IMAGE # BUILD CONTAINER IMAGE
# ===================================================================================================================== # =====================================================================================================================
PHONY:=container-image/build PHONY:=container-image/build
container-image/build: container-image/build:
${CONTAINER_RUNTIME} build \ ${CONTAINER_RUNTIME} build \
--build-arg DC_VERSION=${DC_VERSION} \ --build-arg DC_VERSION=${DC_VERSION} \
--build-arg GONOSUMDB=${GONOSUMDB} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--file Dockerfile \ --file Dockerfile \
--no-cache \ --no-cache \
--pull \ --pull \
@@ -42,6 +34,7 @@ container-image/build:
PHONY:=container-image/delete PHONY:=container-image/delete
container-image/delete: container-image/delete:
- ${CONTAINER_RUNTIME} image rm ${DC_IMAGE_FULLY_QUALIFIED} - ${CONTAINER_RUNTIME} image rm ${DC_IMAGE_FULLY_QUALIFIED}
- ${CONTAINER_RUNTIME} image rm ${BASE_IMAGE_FULL}
# PUSH CONTAINER IMAGE # PUSH CONTAINER IMAGE
# ===================================================================================================================== # =====================================================================================================================
@@ -54,4 +47,4 @@ container-image/push:
# ===================================================================================================================== # =====================================================================================================================
# Declare the contents of the PHONY variable as phony. We keep that information in a variable so we can use it in # Declare the contents of the PHONY variable as phony. We keep that information in a variable so we can use it in
# if_changed. # if_changed.
.PHONY: ${PHONY} .PHONY: ${PHONY}

View File

@@ -1,17 +1,16 @@
# docker-compose # docker-compose-docker
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/docker-compose)](https://hub.docker.com/r/volkerraschek/docker-compose) [![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/docker-compose)](https://hub.docker.com/r/volkerraschek/docker-compose)
This project contains all sources to build the container image `git.cryptic.systems/volker.raschek/docker-compose`. The This project contains all sources to build the container image `docker.io/volkerraschek/docker-compose`. The primary
primary goal of this project is to package the binary `docker-compose` as container image. The source code of the binary goal of this project is to package the binary `docker-compose` as container image. The source code of the binary can be
can be found in the upstream project of [docker/compose](https://github.com/docker/compose). found in the upstream project of [docker/compose](https://github.com/docker/compose).
The workflow or how `docker-compose` can in general be used is documented at The workflow or how `docker-compose` can in general be used is documented [here](https://docs.docker.com/compose/).
[docs.docker.com](https://docs.docker.com/compose/). Nevertheless, here are some examples of how to use the container Nevertheless, here are some examples of how to use the container image.
image.
```bash ```bash
IMAGE_VERSION=2.40.2 IMAGE_VERSION=2.34.0
docker run \ docker run \
--rm \ --rm \
--volume ./path/to/docker-compose.yml:/workdir/docker-compose.yml:ro \ --volume ./path/to/docker-compose.yml:/workdir/docker-compose.yml:ro \

View File

@@ -2,16 +2,13 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [ "customManagers": [
{ {
"customType": "regex", "fileMatch": ["^README\\.md$"],
"fileMatch": [
"^README\\.md$"
],
"matchStrings": [ "matchStrings": [
"IMAGE_VERSION=(?<currentValue>.*)" "VERSION=(?<currentValue>.*)"
], ],
"datasourceTemplate": "github-releases", "depNameTemplate": "volker.raschek/docker-compose",
"depNameTemplate": "docker/compose", "datasourceTemplate": "docker",
"versioningTemplate": "semver" "registryUrlTemplate": "https://git.cryptic.systems"
} }
], ],
"extends": [ "extends": [
@@ -22,16 +19,9 @@
], ],
"packageRules": [ "packageRules": [
{ {
"addLabels": [ "automerge": false,
"renovate/automerge" "matchPackageNames": [ "docker-compose" ],
], "matchManagers": [ "regex" ]
"automerge": true,
"matchPackageNames": [
"docker/compose"
],
"matchManagers": [
"regex"
]
} }
] ]
} }