Compare commits
2 Commits
62ec30984e
...
d3a4ad6bb2
Author | SHA1 | Date | |
---|---|---|---|
d3a4ad6bb2 | |||
cd463bf5a5 |
17
4/docker-compose.yml
Normal file
17
4/docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
# TIP: Little more complex, now we have a "custom entrypoint", a script that runs whenever the container starts
|
||||||
|
# TIP: Do you notice anything wrong with any of the entrypoint lines?
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: git.autonomic.zone/autonomic-cooperative/docker-debugging-disco:0.1.0
|
||||||
|
ports:
|
||||||
|
- 8000:80
|
||||||
|
configs:
|
||||||
|
- source: custom_entrypoint
|
||||||
|
target: /custom-docker-entrypoint-2.sh
|
||||||
|
entrypoint: /custom-docker-entrypoint-2.sh
|
||||||
|
|
||||||
|
configs:
|
||||||
|
custom_entrypoint:
|
||||||
|
file: entrypoin.sh
|
5
4/entrypoint.sh
Executable file
5
4/entrypoint.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export CHALLENGE=4
|
||||||
|
|
||||||
|
/custom-docker-entrypoint.sh
|
Reference in New Issue
Block a user