first commit
Some checks failed
Internal - Main - Continuous Integration / ci (push) Has been cancelled
Internal - Main - Continuous Integration / release (push) Has been cancelled
Need fix to Issue / main (push) Has been cancelled

This commit is contained in:
2025-08-03 01:13:37 +07:00
commit 70d1c8d63e
68 changed files with 120376 additions and 0 deletions

11
test/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
#checkov:skip=CKV_DOCKER_2: required
FROM alpine:3
WORKDIR /app
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
CMD ["/bin/sh", "entrypoint.sh"]
USER 1000:1000

View File

@@ -0,0 +1,4 @@
services:
service-a:
image: busybox
command: ["sh", "-c", "exit 1"]

View File

@@ -0,0 +1,23 @@
services:
web:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
- /app/vendor
environment:
- DB_HOST=mysql
- DB_USER=root
- DB_PASSWORD=12345
- DATABASE=testing
depends_on:
- mysql
mysql:
image: mariadb:latest
environment:
- MYSQL_HOST=127.0.0.1
- MYSQL_USER=root
- MARIADB_ROOT_PASSWORD=12345
- MYSQL_DB=testing

View File

@@ -0,0 +1,7 @@
volumes:
test_volume: {}
services:
service-a:
image: ${IMAGE_NAME}
command: ["tail", "-f", "/dev/null"]

View File

@@ -0,0 +1,5 @@
services:
service-d:
image: busybox
command: ["tail", "-f", "/dev/null"]
profiles: [profile-2]

17
test/docker-compose.yml Normal file
View File

@@ -0,0 +1,17 @@
services:
service-a:
image: busybox
command: ["tail", "-f", "/dev/null"]
volumes:
- test_volume:/test:Z
service-b:
image: busybox
command: ["tail", "-f", "/dev/null"]
profiles: [profile-1]
service-c:
image: busybox
command: ["tail", "-f", "/dev/null"]
profiles: [profile-2]
volumes:
test_volume: {}

13
test/entrypoint.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
sleep 2 && cat <<EOF
_________________________________________________
< It works! >
< --abort-on-container-exit --exit-code-from=web >
-------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\\/\\
||----w |
|| ||
EOF