Skip to content

Commit 37412ac

Browse files
committed
feat: add MongoDB and SinusBot images
1 parent 609a26f commit 37412ac

File tree

5 files changed

+43
-3
lines changed

5 files changed

+43
-3
lines changed

.github/workflows/apps.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
uptime_kuma_2_changed:
3939
- 'apps/uptime-kuma-2/**'
4040
- 'scripts/apps/uptime-kuma-2/**'
41+
mongodb_changed:
42+
- 'apps/mongodb/**'
43+
- 'scripts/apps/mongodb/**'
44+
sinusbot_changed:
45+
- 'apps/sinusbot/**'
46+
- 'scripts/apps/sinusbot/**'
4147
base_changed:
4248
- 'base/**'
4349
- 'scripts/base/ampstart.sh'
@@ -48,7 +54,7 @@ jobs:
4854
set -euo pipefail
4955
# Default matrix when not a push: build all apps
5056
if [ "${{ github.event_name }}" != "push" ]; then
51-
echo 'apps_json=["postgresql","uptime-kuma-2"]' >> "$GITHUB_OUTPUT"
57+
echo 'apps_json=["postgresql","uptime-kuma-2","mongodb","sinusbot"]' >> "$GITHUB_OUTPUT"
5258
exit 0
5359
fi
5460
@@ -61,6 +67,8 @@ jobs:
6167
apps=()
6268
if [ "${{ steps.filter.outputs.postgresql_changed || 'false' }}" = "true" ]; then apps+=('"postgresql"'); fi
6369
if [ "${{ steps.filter.outputs.uptime_kuma_2_changed || 'false' }}" = "true" ]; then apps+=('"uptime-kuma-2"'); fi
70+
if [ "${{ steps.filter.outputs.mongodb_changed || 'false' }}" = "true" ]; then apps+=('"mongodb"'); fi
71+
if [ "${{ steps.filter.outputs.sinusbot_changed || 'false' }}" = "true" ]; then apps+=('"sinusbot"'); fi
6472
6573
if [ "${#apps[@]}" -eq 0 ]; then
6674
echo 'apps_json=[]' >> "$GITHUB_OUTPUT"

apps/mongodb/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# MongoDB dependencies image for AMP containers
2+
# cubecoders/ampbase:mongodb
3+
4+
FROM cubecoders/ampbase:debian
5+
6+
LABEL org.opencontainers.image.licenses=MIT
7+
8+
ENV DEBIAN_FRONTEND="noninteractive"
9+
10+
# Install required packages
11+
RUN set -eux; \
12+
apt-get update; \
13+
apt-get install -o APT::Keep-Downloaded-Packages="false" -y --no-install-recommends \
14+
libcurl4t64 libgssapi-krb5-2 libldap-common libwrap0 libsasl2-2 libsasl2-modules libsasl2-modules-gssapi-mit openssl liblzma5; \
15+
apt-get clean; \
16+
rm -rf /var/lib/apt/lists/*

apps/postgresql/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PostgreSQL image for AMP containers
1+
# PostgreSQL dependencies image for AMP containers
22
# cubecoders/ampbase:postgresql
33

44
FROM cubecoders/ampbase:debian

apps/sinusbot/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SinusBot dependencies image for AMP containers
2+
# cubecoders/ampbase:sinusbot
3+
4+
FROM cubecoders/ampbase:debian
5+
6+
LABEL org.opencontainers.image.licenses=MIT
7+
8+
ENV DEBIAN_FRONTEND="noninteractive"
9+
10+
# Install required packages
11+
RUN set -eux; \
12+
apt-get update; \
13+
apt-get install -o APT::Keep-Downloaded-Packages="false" -y --no-install-recommends \
14+
x11vnc xvfb libxcursor1 ca-certificates curl bzip2 libnss3 libegl1 x11-xkb-utils libasound2t64 libpci3 libxslt1.1 libxkbcommon0 libxss1 libxcomposite1 libglib2.0-0t64 less; \
15+
apt-get clean; \
16+
rm -rf /var/lib/apt/lists/*

apps/uptime-kuma-2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Uptime Kuma 2 image for AMP containers
1+
# Uptime Kuma 2 dependencies image for AMP containers
22
# Based on https://github.com/louislam/uptime-kuma/blob/223cde831f09a49a317bc4e5926cc8a38a6fa3f2/docker/debian-base.dockerfile
33
# cubecoders/ampbase:uptime-kuma-2
44

0 commit comments

Comments
 (0)