
We have a need to run ad-hoc commands with the various things mounted, such as the gerrit init, as well as our friends like manage-projects. Make a second "service" that doesn't do anything, but allows us to run "docker-compose run". Change-Id: Ic9bafe85b90af413c891b969273437be9df6a79f
23 lines
485 B
Django/Jinja
23 lines
485 B
Django/Jinja
version: '2'
|
|
|
|
services:
|
|
gerrit:
|
|
image: {{ gerrit_container_image }}
|
|
network_mode: host
|
|
user: gerrit
|
|
volumes:
|
|
{% for volume in gerrit_container_volumes %}
|
|
- {{ volume }}
|
|
{% endfor %}
|
|
# Utility "service" to allow us to run ad-hoc commands
|
|
shell:
|
|
image: {{ gerrit_container_image }}
|
|
restart: 'no'
|
|
command: /bin/true
|
|
network_mode: host
|
|
user: gerrit
|
|
volumes:
|
|
{% for volume in gerrit_container_volumes %}
|
|
- {{ volume }}
|
|
{% endfor %}
|