mirror of
https://github.com/containers/podman-compose.git
synced 2025-02-02 19:39:34 +01:00
Build-fail test example
Signed-off-by: BugFest <bugfest.dev@pm.me>
This commit is contained in:
parent
5a3bdbf89b
commit
5d279c4948
@ -1,9 +0,0 @@
|
|||||||
FROM busybox
|
|
||||||
ARG buildno=1
|
|
||||||
ARG httpd_port=80
|
|
||||||
ARG other_variable=not_set
|
|
||||||
ENV httpd_port ${httpd_port}
|
|
||||||
ENV other_variable ${other_variable}
|
|
||||||
RUN mkdir -p /var/www/html/ && \
|
|
||||||
echo "ALT buildno=$buildno port=$httpd_port `date -Iseconds`" > /var/www/html/index.txt
|
|
||||||
CMD httpd -f -p "$httpd_port" -h /var/www/html
|
|
@ -1,25 +1,5 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
web1:
|
test:
|
||||||
build: ./context
|
build: ./context
|
||||||
image: my-busybox-httpd
|
image: build-fail-img
|
||||||
ports:
|
|
||||||
- 8080:80
|
|
||||||
web2:
|
|
||||||
build:
|
|
||||||
context: ./context
|
|
||||||
dockerfile: Dockerfile-alt
|
|
||||||
labels:
|
|
||||||
mykey: myval
|
|
||||||
args:
|
|
||||||
buildno: 2
|
|
||||||
httpd_port: 8000
|
|
||||||
image: my-busybox-httpd2
|
|
||||||
ports:
|
|
||||||
- 8000:8000
|
|
||||||
test_build_arg_argument:
|
|
||||||
build:
|
|
||||||
context: ./context
|
|
||||||
dockerfile: Dockerfile-alt
|
|
||||||
image: my-busybox-httpd2
|
|
||||||
command: env
|
|
||||||
|
Loading…
Reference in New Issue
Block a user