Skip to content

Commit

Permalink
Add docker binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
arixmkii committed Sep 1, 2024
1 parent f3aa22f commit 15e160b
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/prepare-docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Prepare QCW Docker (from revision)

on: workflow_dispatch

env:
CLI_GITURL: https://github.com/docker/cli.git
CLI_SHA: 3ab42569583b58dbc6f167d842d5a3dd5972065f
COMPOSE_GITURL: https://github.com/docker/compose.git
COMPOSE_SHA: 234036756b94e296b6ff4dc4d54896993b60db36

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: 🏗️ Install Docker Buildx
uses: docker/setup-buildx-action@v3

- name: "📝 Configure checkout"
run: git config --global core.autocrlf input

- name: "📝 Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: "📝 Fetch sources CLI"
run: |
mkdir docker-cli-release
cd docker-cli-release
git init
git remote add origin $CLI_GITURL
git fetch --depth 1 origin $CLI_SHA
git checkout FETCH_HEAD
- name: "📝 Fetch sources Compose"
run: |
mkdir docker-compose-release
cd docker-compose-release
git init
git remote add origin $COMPOSE_GITURL
git fetch --depth 1 origin $COMPOSE_SHA
git checkout FETCH_HEAD
- name: "🛠️ Build Docker CLI"
working-directory: docker-cli-release
run: |
docker buildx bake --set binary.platform=windows/amd64
- name: "🛠️ Build Docker Compose"
working-directory: docker-compose-release
run: |
docker buildx bake --set binary.platform=windows/amd64
- name: "📦 Pack Docker"
run: |
mkdir -p qcw
ls docker-cli-release/build
ls docker-compose-release/bin/build
cp docker-cli-release/build/docker-windows-amd64.exe qcw/docker.exe
cp bin/build/docker-compose.exe qcw/docker-compose.exe
cd qcw
find . -type f \( ! -iname "*.checksums" \) -exec sha256sum -b {} \; > sha.checksums
find . -type f \( ! -iname "*.checksums" \) -exec sha512sum -b {} \; >> sha.checksums
cat sha.checksums
- name: "🚀 Upload artifact"
uses: actions/upload-artifact@v4
with:
name: qcw-docker
path: qcw
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ default.

Ordered alphabetically

* `docker-cli` - [Github](https://github.com/docker/cli) `docker` command line interface;
* `docker-compose` - [Github](https://github.com/docker/compose) orchestration tool for containers;
* `gocat` - [Github](https://github.com/sumup-oss/gocat) multipurpose networking relay;
* `gvisor-tap-vsock` - [Github](https://github.com/containers/gvisor-tap-vsock) the tool to provide networking for
accessing containers from Windows;
Expand All @@ -43,6 +45,14 @@ feature rich machine emulator;

### Versions and patches

#### `docker-cli`

Version `v27.2.0`. Rebuilt for Windows amd64 platform.

#### `docker-compose`

Version `v2.29.2`. Rebuilt for Windows amd64 platform.

#### `gocat`

Built from HEAD of the development branch. Added patch with updated dependencies.
Expand Down

0 comments on commit 15e160b

Please sign in to comment.