File tree Expand file tree Collapse file tree 4 files changed +54
-0
lines changed
Expand file tree Collapse file tree 4 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 1999-2024. WebPros International GmbH.
2+ name : test
3+
4+ on :
5+ push :
6+ paths :
7+ - ' latest/**'
8+ - ' tests/**'
9+ pull_request :
10+ paths :
11+ - ' latest/**'
12+ - ' tests/**'
13+
14+ jobs :
15+ test :
16+ runs-on : ubuntu-24.04
17+ steps :
18+ - uses : actions/checkout@v4
19+ - run : docker compose -f ./tests/docker-compose.yml run tests
Original file line number Diff line number Diff line change 11# Dockerfiles for Plesk
22
3+ [ ![ Test Status] ( https://github.com/plesk/docker/actions/workflows/test.yml/badge.svg )] ( https://github.com/plesk/docker/actions/workflows/test.yml )
4+
35Dockerfiles for building Plesk images.
46
57# Ready to Use Images
Original file line number Diff line number Diff line change 1+ # Copyright 1999-2024. WebPros International GmbH.
2+ services :
3+ tests :
4+ build : ../latest/
5+ logging :
6+ driver : none
7+ ports :
8+ ["8443:8443"]
9+ tmpfs :
10+ - /tmp
11+ - /run
12+ - /run/lock
13+ volumes :
14+ - /sys/fs/cgroup:/sys/fs/cgroup
15+ - .:/opt/tests/
16+ cgroup : host
17+ command : /opt/tests/wait-for-plesk.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # ## Copyright 1999-2024. WebPros International GmbH.
3+
4+ COUNTER=1
5+
6+ while : ; do
7+ curl -ksL https://localhost:8443/ | grep " <title>Plesk" > /dev/null
8+ [ $? -eq 0 ] && exit 0
9+ echo " ($COUNTER ) Waiting for the Plesk initialization..."
10+ sleep 5
11+ COUNTER=$(( COUNTER + 1 ))
12+ if [ $COUNTER -eq 60 ]; then
13+ echo " Too long, interrupting..."
14+ exit 1
15+ fi
16+ done
You can’t perform that action at this time.
0 commit comments