2019-04-05 11:02:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cat <<EOF
|
|
|
|
version: '2.1'
|
|
|
|
services:
|
|
|
|
|
|
|
|
${SERVICE_NAME}:
|
|
|
|
image: ${BUILD_IMAGE}
|
|
|
|
volumes:
|
|
|
|
- .:$PWD
|
|
|
|
- $HOME/.cache:/home/$UNAME/.cache
|
|
|
|
working_dir: $PWD
|
|
|
|
command: /sbin/init
|
|
|
|
depends_on:
|
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
machinegun:
|
2020-01-23 15:16:40 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/machinegun:bc41864a0db9a4a8340642cf765a9df7fa6890ff
|
2019-04-05 11:02:11 +00:00
|
|
|
command: /opt/machinegun/bin/machinegun foreground
|
|
|
|
volumes:
|
|
|
|
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
|
2020-01-23 15:16:40 +00:00
|
|
|
- ./test/machinegun/cookie:/opt/machinegun/etc/cookie
|
2019-04-05 11:02:11 +00:00
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 12
|
|
|
|
|
|
|
|
EOF
|