Skip to content

Commit

Permalink
Update chisel to v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienPatte committed Oct 9, 2024
1 parent 6e38ee8 commit ba7d104
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 48 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ IMAGE=$1

echo "Building $IMAGE"

DEFAULT_GOLANG_VERSION="1.21"
DEFAULT_CHISEL_VERSION="v0.10.0"
DEFAULT_UBUNTU_VERSION="24.04"
DEFAULT_CHISEL_VERSION="v1.0.0"

REPOSITORY=$(jq -r '.repository' ./images/${IMAGE}/metadata.json)
DESCRIPTION=$(curl -s "https://api.github.com/repos/${REPOSITORY}" | jq -r '.description | values')
Expand All @@ -28,7 +28,7 @@ else
--tag ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/${IMAGE}:latest \
--build-arg RELEASE=${RELEASE} \
--build-arg VERSION=${VERSION} \
--build-arg GOLANG_VERSION=${DEFAULT_GOLANG_VERSION} \
--build-arg UBUNTU_VERSION=${DEFAULT_UBUNTU_VERSION} \
--build-arg CHISEL_VERSION=${DEFAULT_CHISEL_VERSION} \
--build-arg SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH} \
--label "org.opencontainers.image.authors=${GITHUB_REPOSITORY_OWNER}" \
Expand Down
20 changes: 11 additions & 9 deletions images/lidarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
ARG GOLANG_VERSION
FROM golang:$GOLANG_VERSION AS builder
ARG UBUNTU_VERSION
FROM ubuntu:$UBUNTU_VERSION AS builder

ARG TARGETARCH
ARG VERSION
ARG CHISEL_VERSION
ARG UBUNTU_VERSION

# Install chisel and build rootfs with lidarr dependencies
RUN \
go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \
&& curl -LO https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
&& chmod +x ./chisel-wrapper \
&& apt update \
&& apt install file --yes \
apt update \
&& apt install file curl --yes \
&& curl -L https://github.com/canonical/chisel/releases/download/${CHISEL_VERSION}/chisel_${CHISEL_VERSION}_linux_${TARGETARCH}.tar.gz \
| tar xzf - -C /usr/bin \
&& curl -LO --output-dir /usr/bin https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
&& chmod +x /usr/bin/chisel-wrapper \
&& mkdir -p /rootfs/var/lib/dpkg \
&& ./chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-24.04 \
&& chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-${UBUNTU_VERSION} \
--root /rootfs \
base-files_base \
ca-certificates_data \
Expand Down
20 changes: 11 additions & 9 deletions images/prowlarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
ARG GOLANG_VERSION
FROM golang:$GOLANG_VERSION AS builder
ARG UBUNTU_VERSION
FROM ubuntu:$UBUNTU_VERSION AS builder

ARG TARGETARCH
ARG VERSION
ARG CHISEL_VERSION
ARG UBUNTU_VERSION

# Install chisel and build rootfs with prowlarr dependencies
RUN \
go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \
&& curl -LO https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
&& chmod +x ./chisel-wrapper \
&& apt update \
&& apt install file --yes \
apt update \
&& apt install file curl --yes \
&& curl -L https://github.com/canonical/chisel/releases/download/${CHISEL_VERSION}/chisel_${CHISEL_VERSION}_linux_${TARGETARCH}.tar.gz \
| tar xzf - -C /usr/bin \
&& curl -LO --output-dir /usr/bin https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
&& chmod +x /usr/bin/chisel-wrapper \
&& mkdir -p /rootfs/var/lib/dpkg \
&& ./chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-24.04 \
&& chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-${UBUNTU_VERSION} \
--root /rootfs \
base-files_base \
ca-certificates_data \
Expand Down
20 changes: 11 additions & 9 deletions images/qbittorrent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
ARG GOLANG_VERSION
FROM golang:$GOLANG_VERSION AS builder
ARG UBUNTU_VERSION
FROM ubuntu:$UBUNTU_VERSION AS builder

ARG TARGETARCH
ARG RELEASE
ARG CHISEL_VERSION
ARG UBUNTU_VERSION

# Install chisel and build rootfs
RUN \
go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \
&& curl -LO https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
&& chmod +x ./chisel-wrapper \
&& apt update \
&& apt install file --yes \
apt update \
&& apt install file curl --yes \
&& curl -L https://github.com/canonical/chisel/releases/download/${CHISEL_VERSION}/chisel_${CHISEL_VERSION}_linux_${TARGETARCH}.tar.gz \
| tar xzf - -C /usr/bin \
&& curl -LO --output-dir /usr/bin https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
&& chmod +x /usr/bin/chisel-wrapper \
&& mkdir -p /rootfs/var/lib/dpkg \
&& ./chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-24.04 \
&& chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-${UBUNTU_VERSION} \
--root /rootfs \
base-files_base \
ca-certificates_data \
Expand Down
20 changes: 11 additions & 9 deletions images/radarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
ARG GOLANG_VERSION
FROM golang:$GOLANG_VERSION AS builder
ARG UBUNTU_VERSION
FROM ubuntu:$UBUNTU_VERSION AS builder

ARG TARGETARCH
ARG VERSION
ARG CHISEL_VERSION
ARG UBUNTU_VERSION

# Install chisel and build rootfs with radarr dependencies
RUN \
go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \
&& curl -LO https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
&& chmod +x ./chisel-wrapper \
&& apt update \
&& apt install file --yes \
apt update \
&& apt install file curl --yes \
&& curl -L https://github.com/canonical/chisel/releases/download/${CHISEL_VERSION}/chisel_${CHISEL_VERSION}_linux_${TARGETARCH}.tar.gz \
| tar xzf - -C /usr/bin \
&& curl -LO --output-dir /usr/bin https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
&& chmod +x /usr/bin/chisel-wrapper \
&& mkdir -p /rootfs/var/lib/dpkg \
&& ./chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-24.04 \
&& chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-${UBUNTU_VERSION} \
--root /rootfs \
base-files_base \
ca-certificates_data \
Expand Down
20 changes: 11 additions & 9 deletions images/sonarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
ARG GOLANG_VERSION
FROM golang:$GOLANG_VERSION AS builder
ARG UBUNTU_VERSION
FROM ubuntu:$UBUNTU_VERSION AS builder

ARG TARGETARCH
ARG VERSION
ARG CHISEL_VERSION
ARG UBUNTU_VERSION

# Install chisel and build rootfs with sonarr dependencies
RUN \
go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \
&& curl -LO https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
&& chmod +x ./chisel-wrapper \
&& apt update \
&& apt install file --yes \
apt update \
&& apt install file curl --yes \
&& curl -L https://github.com/canonical/chisel/releases/download/${CHISEL_VERSION}/chisel_${CHISEL_VERSION}_linux_${TARGETARCH}.tar.gz \
| tar xzf - -C /usr/bin \
&& curl -LO --output-dir /usr/bin https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
&& chmod +x /usr/bin/chisel-wrapper \
&& mkdir -p /rootfs/var/lib/dpkg \
&& ./chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-24.04 \
&& chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-${UBUNTU_VERSION} \
--root /rootfs \
base-files_base \
ca-certificates_data \
Expand Down

0 comments on commit ba7d104

Please sign in to comment.