Skip to content

Commit a541250

Browse files
committed
feat: add redis image
1 parent 8340812 commit a541250

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.github/workflows/apps.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
- 'scripts/apps/uptime-kuma-2/**'
4141
sinusbot_changed:
4242
- 'apps/sinusbot/**'
43+
redis_changed:
44+
- 'apps/redis/**'
45+
- 'scripts/apps/redis/**'
4346
base_changed:
4447
- 'base/**'
4548
- 'scripts/base/ampstart.sh'
@@ -50,7 +53,7 @@ jobs:
5053
set -euo pipefail
5154
# Default matrix when not a push: build all apps
5255
if [ "${{ github.event_name }}" != "push" ]; then
53-
echo 'apps_json=["postgresql","uptime-kuma-2","sinusbot"]' >> "$GITHUB_OUTPUT"
56+
echo 'apps_json=["postgresql","uptime-kuma-2","sinusbot","redis"]' >> "$GITHUB_OUTPUT"
5457
exit 0
5558
fi
5659
@@ -64,6 +67,7 @@ jobs:
6467
if [ "${{ steps.filter.outputs.postgresql_changed || 'false' }}" = "true" ]; then apps+=('"postgresql"'); fi
6568
if [ "${{ steps.filter.outputs.uptime_kuma_2_changed || 'false' }}" = "true" ]; then apps+=('"uptime-kuma-2"'); fi
6669
if [ "${{ steps.filter.outputs.sinusbot_changed || 'false' }}" = "true" ]; then apps+=('"sinusbot"'); fi
70+
if [ "${{ steps.filter.outputs.redis_changed || 'false' }}" = "true" ]; then apps+=('"redis"'); fi
6771
6872
if [ "${#apps[@]}" -eq 0 ]; then
6973
echo 'apps_json=[]' >> "$GITHUB_OUTPUT"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ Currently maintained image tags:
2727
| [postgresql](https://github.com/CubeCoders/dockerfiles/tree/master/apps/postgresql/Dockerfile) | An image based on the `debian` image, incorporating specific dependencies required to build PostgreSQL from source |
2828
| [uptime-kuma-2](https://github.com/CubeCoders/dockerfiles/tree/master/apps/uptime-kuma-2/Dockerfile) | An image based on the `debian` image, incorporating specific dependencies and setup required for Uptime Kuma 2 |
2929
| [sinusbot](https://github.com/CubeCoders/dockerfiles/tree/master/apps/sinusbot/Dockerfile) | An image based on the `debian` image, incorporating specific dependencies and setup required for SinusBot |
30+
| [redis](https://github.com/CubeCoders/dockerfiles/tree/master/apps/redis/Dockerfile) | An image based on the `ubuntu` image, incorporating specific dependencies required to build Redis from source |
3031

3132
All images (other than the `sinusbot` image) are built for `linux/amd64` and `linux/arm64`. The `linux/arm64` builds include [box86](https://github.com/Pi-Apps-Coders/box86-debs) and [box64](https://github.com/Pi-Apps-Coders/box64-debs).

apps/redis/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Redis dependencies image for AMP containers
2+
# cubecoders/ampbase:redis
3+
4+
FROM cubecoders/ampbase:ubuntu
5+
6+
LABEL org.opencontainers.image.licenses=MIT
7+
8+
ENV DEBIAN_FRONTEND="noninteractive"
9+
10+
# Install dependencies as per official Redis build instructions
11+
RUN set -eux; \
12+
apt-get update; \
13+
apt-get install -o APT::Keep-Downloaded-Packages="false" -y --no-install-recommends \
14+
ca-certificates wget dpkg-dev gcc g++ libc6-dev libssl-dev make git cmake python3 \
15+
python3-pip python3-venv python3-dev unzip rsync clang automake autoconf libtool pkg-config; \
16+
apt-get clean; \
17+
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)