Initial import
This commit is contained in:
4
tests/00-create-container.sh
Normal file
4
tests/00-create-container.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
[[ "$(basename ${PWD})" == "tests" ]] && exit 1
|
||||
docker compose up -d
|
||||
17
tests/01-install-requires.sh
Executable file
17
tests/01-install-requires.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker compose exec tests sh -c "
|
||||
apt-get update \
|
||||
&& apt-get -y install --no-install-suggests \
|
||||
curl \
|
||||
git-core \
|
||||
iproute2 \
|
||||
iputils-ping \
|
||||
jq \
|
||||
libarchive-tools \
|
||||
locales \
|
||||
python3-yaml \
|
||||
ssh \
|
||||
sudo \
|
||||
tzdata \
|
||||
"
|
||||
3
tests/90-run-container-shell.sh
Normal file
3
tests/90-run-container-shell.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker compose exec tests bash
|
||||
3
tests/90-run-sig-installer.sh
Normal file
3
tests/90-run-sig-installer.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker compose exec tests sig-installer
|
||||
3
tests/99-destroy-container.sh
Normal file
3
tests/99-destroy-container.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker compose down
|
||||
11
tests/compose.yml
Normal file
11
tests/compose.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
name: sig_installer
|
||||
services:
|
||||
|
||||
tests:
|
||||
command: sh -c "while :; do sleep 30; done"
|
||||
image: ubuntu:22.04
|
||||
user: root
|
||||
volumes:
|
||||
- ${PWD}:/usr/local/sbin:ro
|
||||
ports:
|
||||
- 8069:8069
|
||||
Reference in New Issue
Block a user