14 Commits

Author SHA1 Message Date
me 44a573f6e0 provision tests, ensure the no is interpreted as a string, not a boolean. 2026-08-05 16:05:30 -07:00
me ba379b253e provision tests, add parameter to keep the containers running after the test is done. 2026-08-05 16:00:44 -07:00
me 55c7287b3d provision tests, allow containers to complete once the script has been run. 2026-08-05 14:18:17 -07:00
me b6aeb47fa4 provision tests, fix variable name. 2026-08-05 06:26:03 -07:00
me d0c791f477 provisioning, add script to easily check the results. 2026-08-04 17:59:04 -07:00
me 481a0b9744 provisioning, main.sh, variablize the local repo name. 2026-08-04 17:46:20 -07:00
me a6a8f4c97a Add ca-certificates to Prosody config which allows it to validate s2s certs. 2026-07-24 05:32:29 -07:00
me 2302897460 Ignore etc files for Prosody as well. 2026-07-24 05:15:36 -07:00
me a08c59bcb2 Remove module example as it was already in the enabled list by default. 2026-07-24 05:07:55 -07:00
me 5850a237ce Add an extra port to Prosody to see if it helps with certificate validation. 2026-07-24 05:06:30 -07:00
me 5b8deb8a67 Add community modules for Prosody and give an example of enabling notifications. 2026-07-23 14:50:42 -07:00
me b5ae8ff0ce Change example of where the prosody certs should be referenced. 2026-07-23 13:32:33 -07:00
me 0ccef4583a Ensure the cert archive exists so the symbolic links can be followed. 2026-07-13 15:55:51 -07:00
me 7b3b7623be Do not do the reload, confuses the system. 2026-07-13 15:55:08 -07:00
8 changed files with 56 additions and 15 deletions
+1
View File
@@ -68,4 +68,5 @@ DEV-*
# Ignore custom Prosody hosts.
Config/Prosody/conf.avail
Config/Prosody/etc/conf.avail
Config/Prosody/etc/
+1 -3
View File
@@ -8,7 +8,7 @@ FROM debian:trixie-slim
## Setup ##
# System Dependencies
RUN apt-get update && \
apt-get install -y prosody \
apt-get install -y prosody prosody-modules ca-certificates \
bash sudo htop \
vim
@@ -21,11 +21,9 @@ COPY ./etc/conf.avail/* /etc/prosody/conf.d/
RUN rm -rfv /etc/prosody/README*
## Main ##
# Install + Run Website
WORKDIR /root
USER root
CMD prosodyctl --root cert import /etc/letsencrypt/live && \
service prosody start && \
prosodyctl reload && \
tail -F /var/log/prosody/prosody.log & \
tail -F /var/log/prosody/prosody.err
@@ -14,6 +14,12 @@ volumes:
type: none
device: ../../Volumes/ReverseProxy/letsencrypt/live
o: bind
prosody_cert_archive:
driver: local
driver_opts:
type: none
device: ../../Volumes/ReverseProxy/letsencrypt/archive
o: bind
services:
app:
@@ -25,6 +31,7 @@ services:
ports:
- 5222:5222
- 5269:5269
- 5281:5281
#environment:
# - REPO=$REPO
# - BRANCH=$BRANCH
@@ -39,6 +46,7 @@ services:
volumes:
- prosody_data:/var/lib/prosody/
- prosody_certs:/etc/letsencrypt/live
- prosody_cert_archive:/etc/letsencrypt/archive
deploy:
mode: global
resources:
@@ -8,8 +8,8 @@ VirtualHost "example.com"
-- Note that old-style SSL on port 5223 only supports one certificate, and will always
-- use the global one.
--ssl = {
-- key = "/etc/letsencrypt/live/example.com/privkey.pem";
-- certificate = "/etc/letsencrypt/live/example.com/fullchain.pem";
-- key = "/etc/prosody/certs/example.com.key";
-- certificate = "/etc/prosody/certs/example.com.crt";
-- }
------ Components ------
+9 -5
View File
@@ -1,16 +1,20 @@
#!/usr/bin/env bash
sh -c "rm -rfv prov-test"
local_clone="git-repo"
sh -c "rm -rfv $local_clone"
echo "Downloading Repo '$REPO' : Branch '$BRANCH'"
git clone $REPO --branch=$BRANCH prov-test
git clone $REPO --branch=$BRANCH $local_clone
cd prov-test
cd $local_clone
echo "Starting Executable Script '$EXEC'"
tail -F /var/mail/mail &
tail -F /var/mail/ansible &
if [[ "$KEEP_ALIVE" == "Y" ]]; then
tail -F /var/mail/mail &
tail -F /var/mail/ansible &
fi
logfile="/root/test.log"
$EXEC > $logfile &
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# 20260804 - Hyperling
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
source $DIR/.env
## Parameters ##
num_lines="$1"
if [[ -z "$num_lines" ]]; then
num_lines=20
fi
## Setup ##
source $DIR/.env
## Main ##
ls $PT_STORAGE_DIR/*/test.log | while read test_log; do
echo -e "\n*** $test_log ***\n"
tail -n $num_lines $test_log
echo -e "\n\n"
done
@@ -20,13 +20,14 @@ services:
args:
PACKAGES: ${PACKAGES}
EXTRA_ARCH: ${EXTRA_ARCH}
restart: no
restart: "no"
environment:
- PACKAGES=$PACKAGES
- EXTRA_ARCH=$EXTRA_ARCH
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
- KEEP_ALIVE=$KEEP_ALIVE
volumes:
- type: volume
source: pt-storage
@@ -49,13 +50,14 @@ services:
args:
PACKAGES: ${PACKAGES}
EXTRA_DEBIAN: ${EXTRA_DEBIAN}
restart: no
restart: "no"
environment:
- PACKAGES=$PACKAGES
- EXTRA_DEBIAN=$EXTRA_DEBIAN
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
- KEEP_ALIVE=$KEEP_ALIVE
volumes:
- type: volume
source: pt-storage
@@ -78,13 +80,14 @@ services:
args:
PACKAGES: ${PACKAGES}
EXTRA_FEDORA: ${EXTRA_FEDORA}
restart: no
restart: "no"
environment:
- PACKAGES=$PACKAGES
- EXTRA_FEDORA=$EXTRA_FEDORA
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
- KEEP_ALIVE=$KEEP_ALIVE
volumes:
- type: volume
source: pt-storage
@@ -107,13 +110,14 @@ services:
args:
PACKAGES: ${PACKAGES}
EXTRA_OPENSUSE: ${EXTRA_OPENSUSE}
restart: no
restart: "no"
environment:
- PACKAGES=$PACKAGES
- EXTRA_OPENSUSE=$EXTRA_OPENSUSE
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
- KEEP_ALIVE=$KEEP_ALIVE
volumes:
- type: volume
source: pt-storage
@@ -136,13 +140,14 @@ services:
args:
PACKAGES: ${PACKAGES}
EXTRA_UBUNTU: ${EXTRA_UBUNTU}
restart: no
restart: "no"
environment:
- PACKAGES=$PACKAGES
- EXTRA_UBUNTU=$EXTRA_UBUNTU
- REPO=$REPO
- BRANCH=$BRANCH
- EXEC=$EXEC
- KEEP_ALIVE=$KEEP_ALIVE
volumes:
- type: volume
source: pt-storage
+1
View File
@@ -21,3 +21,4 @@ EXTRA_UBUNTU=""
REPO=https://git.hyperling.com/me/env-ansible
BRANCH=stage
EXEC="./setup.sh -l -g -s"
#KEEP_ALIVE=Y