Skip to content

Commit

Permalink
feat: rdd alpine-toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed Jul 3, 2024
1 parent bfeea8a commit 35a3a46
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
33 changes: 33 additions & 0 deletions apps/alpine-toolbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM docker.io/library/alpine:3.20.0

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 \
\
git \
grep \
less

COPY ./apps/alpine/entrypoint.sh /entrypoint.sh

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

LABEL org.opencontainers.image.source="https://alpinelinux.org"
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.
4 changes: 4 additions & 0 deletions apps/alpine-toolbox/ci/latest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# renovate: datasource=docker depName=docker.io/library/alpine
version="3.20.0"
printf "%s" "${version}"
9 changes: 9 additions & 0 deletions apps/alpine-toolbox/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Uses /bin/bash if no command is given or the first argument is an option
if [[ ${#@} -eq 0 || ${1:0:1} == '-' ]]; then
set -- /bin/bash "$@"
fi

# Execute command
exec "$@"
9 changes: 9 additions & 0 deletions apps/alpine-toolbox/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
app: alpine-toolbox
semver: true
channels:
- name: stable
platforms: ["linux/amd64"]
stable: true
tests:
enabled: false

0 comments on commit 35a3a46

Please sign in to comment.