20 Commits

Author SHA1 Message Date
4774e6ba1b Add support for s6-overlay v3.1.6.0 2024-05-15 00:49:58 +02:00
5880321a36 Add support for s6-overlay v3.1.5.0 2024-05-15 00:47:46 +02:00
ea0dc647d1 Merge pull request #20 from N0rthernL1ghts/dependabot/github_actions/docker/setup-qemu-action-3
Bump docker/setup-qemu-action from 2 to 3
2024-05-14 23:37:26 +02:00
963214dd95 Merge pull request #21 from N0rthernL1ghts/dependabot/github_actions/docker/setup-buildx-action-3
Bump docker/setup-buildx-action from 2 to 3
2024-05-14 23:37:11 +02:00
4e09119b5a Merge pull request #17 from N0rthernL1ghts/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2024-05-14 23:36:55 +02:00
847a5286af Merge branch 'master' of github.com:N0rthernL1ghts/s6-rootfs 2024-05-14 23:36:27 +02:00
86f6ba7859 Bump Alpine version to 3.19 (Only used during build stages) 2024-05-14 23:26:56 +02:00
224ae05a64 Merge pull request #19 from N0rthernL1ghts/dependabot/github_actions/docker/login-action-3
Bump docker/login-action from 2 to 3
2024-05-14 17:30:04 +02:00
f973d27a3b Merge pull request #22 from N0rthernL1ghts/dependabot/github_actions/docker/bake-action-4.1.0
Bump docker/bake-action from 3.1.0 to 4.1.0
2024-05-14 17:21:50 +02:00
dependabot[bot]
13ba3601ca Bump docker/bake-action from 3.1.0 to 4.1.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 3.1.0 to 4.1.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v3.1.0...v4.1.0)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-17 10:32:18 +00:00
dependabot[bot]
e7178a275b Bump docker/setup-buildx-action from 2 to 3
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 10:55:04 +00:00
dependabot[bot]
4ee8b820a4 Bump docker/setup-qemu-action from 2 to 3
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 10:55:01 +00:00
dependabot[bot]
cb9c060731 Bump docker/login-action from 2 to 3
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 10:54:59 +00:00
dependabot[bot]
7e4d35bdf4 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 10:18:36 +00:00
a1576900ed Remove linux/armhf support 2023-06-15 09:58:06 +02:00
fa736a885e Merge pull request #16 from N0rthernL1ghts/dependabot/github_actions/docker/bake-action-3.1.0
Bump docker/bake-action from 2.3.0 to 3.1.0
2023-06-15 01:29:17 +02:00
357b334f16 Merge pull request #15 from N0rthernL1ghts/dependabot/docker/alpine-3.18
Bump alpine from 3.17 to 3.18
2023-06-15 01:29:03 +02:00
dependabot[bot]
1117734298 Bump docker/bake-action from 2.3.0 to 3.1.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 2.3.0 to 3.1.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v2.3.0...v3.1.0)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 11:01:49 +00:00
dependabot[bot]
19badf3bd7 Bump alpine from 3.17 to 3.18
Bumps alpine from 3.17 to 3.18.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-15 10:59:30 +00:00
bd27824a51 Add support for ghcr.io 2023-04-11 12:43:59 +02:00
5 changed files with 54 additions and 18 deletions

View File

@@ -10,26 +10,33 @@ jobs:
steps:
-
name: checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
config-inline: |
[worker.oci]
max-parallelism = 16
-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.PAT_TOKEN}}
-
name: Build and push
uses: docker/bake-action@v2.3.0
uses: docker/bake-action@v4.1.0
with:
files: build/docker-bake.hcl
push: true

View File

@@ -11,7 +11,7 @@ ADD "${S6_OVERLAY_RELEASE}/v${S6_OVERLAY_VERSION}/s6-overlay-noarch${S6_OVERLAY_
# Second stage - Download s6-overlay platform-dependent binaries and unpack
FROM --platform=${TARGETPLATFORM} alpine:3.17.2 AS downloader-s6-bin
FROM --platform=${TARGETPLATFORM} alpine:3.19 AS downloader-s6-bin
ARG TARGETPLATFORM
ARG S6_OVERLAY_VERSION
ARG S6_OVERLAY_RELEASE
@@ -26,7 +26,7 @@ RUN set -eux \
# Third stage - Download s6-overlay platform-dependent hashes
FROM --platform=${TARGETPLATFORM} alpine:3.17.2 AS downloader-s6-sha256-sums
FROM --platform=${TARGETPLATFORM} alpine:3.19 AS downloader-s6-sha256-sums
ARG TARGETPLATFORM
ARG S6_OVERLAY_VERSION
ARG S6_OVERLAY_RELEASE
@@ -46,7 +46,7 @@ RUN set -eux \
# Fourth stage - Build rootfs from s6 parts
FROM alpine:3.17.2 AS rootfs-builder
FROM alpine:3.19 AS rootfs-builder
COPY --from=downloader-s6-sha256-sums ["/SHA256SUMS", "/"]
COPY --from=downloader-s6-base ["/s6overlay-base.tar.xz", "/s6overlay-base.tar.xz"]

View File

@@ -1,5 +1,5 @@
# First stage - Download s6-overlay and unpack it
FROM --platform=${TARGETPLATFORM} alpine:3.17 AS downloader
FROM --platform=${TARGETPLATFORM} alpine:3.19 AS downloader
ARG TARGETPLATFORM

View File

@@ -4,15 +4,18 @@ The simplest and fastest way to get S6 supervisor in your image
### Usage
```Docker
COPY --from=nlss/s6-rootfs:latest ["/", "/"]
COPY --from=ghcr.io/n0rthernl1ghts/s6-rootfs:latest ["/", "/"]
```
or with fixed version:
```Docker
COPY --from=nlss/s6-rootfs:3.1.2.1 ["/", "/"]
COPY --from=ghcr.io/n0rthernl1ghts/s6-rootfs:3.1.2.1 ["/", "/"]
```
That's it!
Note: We're moving to ghcr.io. `docker.io/nlss/s6-rootfs` will be kept up-to-date until May 2023, when is Docker sunsetting free teams.<br/>
It is highly recommended that you start using `ghcr.io/n0rthernl1ghts/s6-rootfs`.
###### Recommended way to integrate with your image (example)
```Docker
# ---------------------
@@ -24,7 +27,7 @@ FROM scratch AS rootfs
COPY ["./rootfs", "/"]
# Install S6
COPY --from=nlss/s6-rootfs:3.1.2.1 ["/", "/"]
COPY --from=ghcr.io/n0rthernl1ghts/s6-rootfs:3.1.2.1 ["/", "/"]
# ---------------------
@@ -44,4 +47,3 @@ ENV S6_CMD_RECEIVE_SIGNALS=1
# Important, this is required for S6 to work
ENTRYPOINT ["/init"]
```

View File

@@ -1,5 +1,14 @@
group "default" {
targets = ["2_1_0_2", "2_2_0_0", "2_2_0_1", "2_2_0_2", "2_2_0_3", "3_0_0_0", "3_0_0_1", "3_0_0_2", "3_0_0_2-2", "3_1_0_0", "3_1_0_1", "3_1_1_0", "3_1_1_1", "3_1_1_2", "3_1_2_0", "3_1_2_1", "3_1_3_0", "3_1_4_0", "3_1_4_1", "3_1_4_2"]
targets = [
"2_1_0_2", "2_2_0_0", "2_2_0_1",
"2_2_0_2", "2_2_0_3", "3_0_0_0",
"3_0_0_1", "3_0_0_2", "3_0_0_2-2",
"3_1_0_0", "3_1_0_1", "3_1_1_0",
"3_1_1_1", "3_1_1_2", "3_1_2_0",
"3_1_2_1", "3_1_3_0", "3_1_4_0",
"3_1_4_1", "3_1_4_2", "3_1_5_0",
"3_1_6_0"
]
}
target "build-dockerfile" {
@@ -11,7 +20,7 @@ target "build-dockerfile-legacy" {
}
target "build-platforms" {
platforms = ["linux/amd64", "linux/armhf", "linux/aarch64"]
platforms = ["linux/amd64", "linux/aarch64"]
}
target "build-common" {
@@ -68,11 +77,13 @@ function "get-tags" {
params = [version, extra_versions]
result = concat(
[
"docker.io/nlss/s6-rootfs:${version}"
"docker.io/nlss/s6-rootfs:${version}",
"ghcr.io/n0rthernl1ghts/s6-rootfs:${version}"
],
flatten([
for extra_version in extra_versions : [
"docker.io/nlss/s6-rootfs:${extra_version}"
"docker.io/nlss/s6-rootfs:${extra_version}",
"ghcr.io/n0rthernl1ghts/s6-rootfs:${extra_version}"
]
])
)
@@ -238,6 +249,22 @@ target "3_1_4_2" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("3.1.4.2")
cache-to = get-cache-to("3.1.4.2")
tags = get-tags("3.1.4.2", ["3.1", "3.1.4", "latest"])
tags = get-tags("3.1.4.2", ["3.1.4"])
args = get-args("3.1.4.2")
}
target "3_1_5_0" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("3.1.5.0")
cache-to = get-cache-to("3.1.5.0")
tags = get-tags("3.1.5.0", ["3.1.5"])
args = get-args("3.1.5.0")
}
target "3_1_6_0" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("3.1.6.0")
cache-to = get-cache-to("3.1.6.0")
tags = get-tags("3.1.6.0", ["3.1", "3.1.6", "latest"])
args = get-args("3.1.6.0")
}