mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 09:27:03 +03:00
29 lines
914 B
YAML
29 lines
914 B
YAML
# See: https://github.com/GoogleContainerTools/container-structure-test
|
|
# See: https://github.com/GoogleContainerTools/container-structure-test/issues/78
|
|
schemaVersion: 2.0.0
|
|
commandTests:
|
|
- name: Integration test
|
|
command: /bin/sh
|
|
args:
|
|
- -c
|
|
- |
|
|
/entrypoint.sh > /tmp/out 2>&1 &
|
|
sleep 5
|
|
set -eux
|
|
cat /tmp/out
|
|
pidof supervisord
|
|
pidof nginx
|
|
pidof php-fpm
|
|
ls -al /var/lib/snappymail/_data_/_default_/configs/application.ini
|
|
ls -al /var/lib/snappymail/_data_/_default_/admin_password.txt
|
|
nc -vz localhost 8888
|
|
nc -vz localhost 9000
|
|
wget -S -T 3 -O /dev/null http://localhost:8888
|
|
kill `pidof supervisord`
|
|
metadataTest:
|
|
exposedPorts: ["8888", "9000"]
|
|
volumes: ["/var/lib/snappymail"]
|
|
entrypoint: []
|
|
cmd: ["/entrypoint.sh"]
|
|
workdir: /snappymail
|
|
user: root
|