Skip to content

Commit

Permalink
feat: remove alpine base image, add alpine-toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed Jul 3, 2024
1 parent d116275 commit 020efcb
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 8 deletions.
3 changes: 2 additions & 1 deletion apps/alpine/Dockerfile → apps/alpine-toolbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ARG VERSION
FROM docker.io/library/alpine:3.20@sha256:b89d9c93e9ed3597455c90a0b88a8bbb5cb7188438f70953fede212a0c4394e0

ARG TARGETPLATFORM
Expand All @@ -21,6 +20,8 @@ RUN \
ca-certificates \
catatonit \
curl \
\
git \
grep \
less

Expand Down
3 changes: 3 additions & 0 deletions apps/alpine-toolbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Alpine Linux Toolbox

[Alpine Linux](https://alpinelinux.org) Toolbox image.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
app: alpine
app: alpine-toolbox
semver: true
channels:
- name: stable
Expand Down
3 changes: 0 additions & 3 deletions apps/alpine/README.md

This file was deleted.

24 changes: 22 additions & 2 deletions apps/emqx-init/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
FROM ghcr.io/prehor/alpine:3.20@sha256:3f10abffcc9280fe75c2598bf6260f7c7ce86e9cc25756fa8dabe0da8e3a954b
FROM docker.io/library/alpine:3.20@sha256:b89d9c93e9ed3597455c90a0b88a8bbb5cb7188438f70953fede212a0c4394e0

ARG TARGETPLATFORM
ARG VERSION
ARG CHANNEL

ENV CHARSET="UTF-8" \
LANG="en_US.UTF-8" \
TZ="Etc/UTC"

RUN \
mkdir /config \
&& \
adduser app -D -u 568 -g 568 -h /config \
&& \
chown 568:568 /config \
&& \
apk add --no-cache \
bash \
ca-certificates \
catatonit \
curl

COPY ./apps/emqx-init/entrypoint.sh /entrypoint.sh

USER nobody
USER app

ENTRYPOINT ["/usr/bin/catatonit", "--"]
CMD ["/entrypoint.sh"]

LABEL org.opencontainers.image.source="https://www.emqx.com"
20 changes: 19 additions & 1 deletion apps/usbip/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
FROM ghcr.io/prehor/alpine:3.20@sha256:3f10abffcc9280fe75c2598bf6260f7c7ce86e9cc25756fa8dabe0da8e3a954b
FROM docker.io/library/alpine:3.20@sha256:b89d9c93e9ed3597455c90a0b88a8bbb5cb7188438f70953fede212a0c4394e0

ARG TARGETPLATFORM
ARG VERSION
ARG CHANNEL

ENV CHARSET="UTF-8" \
LANG="en_US.UTF-8" \
TZ="Etc/UTC"

RUN \
mkdir /config \
&& \
adduser app -D -u 568 -g 568 -h /config \
&& \
chown 568:568 /config \
&& \
apk add --no-cache \
bash \
ca-certificates \
catatonit \
curl \
\
hwdata-usb \
linux-tools-usbip~"${VERSION}"

COPY ./apps/usbip/entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/usr/bin/catatonit", "--"]
CMD ["/entrypoint.sh"]

LABEL org.opencontainers.image.source="https://github.com/torvalds/linux/blob/master/tools/usb/usbip/README"

0 comments on commit 020efcb

Please sign in to comment.