Create an official `chisel` container image to improve UX for creating/extending Chiseled base container images
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- docker, go
- Área
- build-system, devops
Línea de trabajo
Comienza revisando los ejemplos de Dockerfile deseados en el issue y compáralos con la configuración actual de release y creación de imágenes del repositorio. Define cómo debe producirse y publicarse una imagen oficial de chisel versionada y, después, verifica que admita tanto la creación de un rootfs como la ampliación de una imagen existente con los comandos documentados de chisel cut.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Thanks to the addition of the chisel manifest, we can now use chisel to perform multiple subsequent installations of slices on the same rootfs. This is great for creating and extending Chiseled base container images.
However, when creating or extending a Chiseled container image, the UX is not that great since you need to acquire chisel before you can create a new rootfs.
Ideally, users wouldn't have to know about chisel's dependencies or need to worry about golang versions, etc.
Providing an official Chisel container image would simplify all of this.
Current UX for acquiring Chisel
Binary
Extending a container image
FROM amd64/ubuntu:noble AS chisel
ARG BASE_IMAGE="ubuntu/dotnet-runtime"
ARG CHISEL_VERSION="v1.X.X"
# Install chisel's dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
file \
&& rm -rf /var/lib/apt/lists/*
# Install chisel
RUN chisel_url=https://github.com/canonical/chisel/releases/download/v${CHISEL_VERSION}/chisel_v${CHISEL_VERSION}_linux_amd64.tar.gz \
&& curl -fSLOJ ${chisel_url} \
&& curl -fSL ${chisel_url}.sha384 | sha384sum -c - \
&& tar -xzf chisel_v${CHISEL_VERSION}_linux_amd64.tar.gz -C /usr/bin/ chisel
# Install new slices
COPY --from=$BASE_IMAGE / /rootfs/
RUN chisel cut --release ubuntu-24.04 --root /rootfs/ \
libicu74_libs \
tzdata-legacy_zoneinfo \
tzdata_zoneinfo
FROM scratch AS final
COPY --link --from=chisel /rootfs /
Golang
Extending a container image
FROM amd64/golang:1.2X AS chisel
ARG BASE_IMAGE="ubuntu/dotnet-runtime"
ARG CHISEL_VERSION="v1.X.X"
# Install chisel's dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
file \
&& rm -rf /var/lib/apt/lists/*
# Install chisel tool
RUN go install github.com/canonical/chisel/cmd/chisel@v${CHISEL_VERSION}
# Install new slices
COPY --from=$BASE_IMAGE / /rootfs/
RUN chisel cut --release ubuntu-24.04 --root /rootfs/ \
libicu74_libs \
tzdata-legacy_zoneinfo \
tzdata_zoneinfo
FROM scratch AS final
COPY --link --from=chisel /rootfs /
Desired UX
Creating a base image
FROM amd64/ubuntu/chisel:v1.X.X AS chisel
# Install slices
RUN mkdir -p /rootfs \
&& chisel cut --release ubuntu-24.04 --root /rootfs \
base-files_base \
base-files_chisel \
base-files_release-info \
...
FROM scratch AS final
COPY --link --from=chisel /rootfs /
Extending a base image
FROM amd64/ubuntu/chisel:v1.X.X AS chisel
ARG BASE_IMAGE="ubuntu/dotnet-runtime"
# Install new slices
COPY --from=$BASE_IMAGE / /rootfs/
RUN chisel cut --release ubuntu-24.04 --root /rootfs/ \
libicu74_libs \
tzdata-legacy_zoneinfo \
tzdata_zoneinfo
FROM scratch AS final
COPY --link --from=chisel /rootfs /
- Lenguaje dominante
- Go
- Estrellas
- 434
- Forks
- 74
- Merge medio
- 1 d 30 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de canonical/chisel
-
`mode` of a generated directory is random when it has a generated childPosiblemente ocupada @Amadeus-22 la tomó hace 24 días. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
-
cut fails on uncompressed debPosiblemente ocupada @yuminn-k la tomó hace 29 días. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 42/100
-
`prefer` drops a path when the preferred package lists it `until: mutate`Posiblemente ocupada @18Abhinav07 la tomó hace 8 días. AbiertoBug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Todos los issues de canonical/chisel
Issues similares
-
mcpx scan: flag unsafe tool namesPosiblemente ocupada @zeyadbadawyy la tomó hoy. Abiertoarea/scan enhancement good first issue priority/medium size/small
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rohitgollarahalli/mcpx#45 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Mend: dependency security vulnerability
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
Windows 主机
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Lee-xeo/Claude-Cage#1550 ·
Los mantenedores suelen responder en 1 día
-
(bug) ui: spanPaint can index spans past their end (panic: index out of range)Posiblemente ocupada @MaxMiksa la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día