fix(docker): add aurweb-image service

The new `aurweb-image` service does not perform any purpose
other than providing a build definition for 'aurweb:latest'.
With this, `docker-compose build` now just runs once for the
`aurweb-image` service, which builds the image used by all
other services.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-10-19 07:35:27 -07:00
parent e05cfc3375
commit d22580fa74
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -21,15 +21,17 @@
version: "3.8" version: "3.8"
services: services:
ca: aurweb-image:
build: . build: .
image: aurweb:latest image: aurweb:latest
ca:
image: aurweb:latest
init: true init: true
entrypoint: /docker/ca-entrypoint.sh entrypoint: /docker/ca-entrypoint.sh
command: echo command: echo
memcached: memcached:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
command: /docker/scripts/run-memcached.sh command: /docker/scripts/run-memcached.sh
@ -37,7 +39,6 @@ services:
test: "bash /docker/health/memcached.sh" test: "bash /docker/health/memcached.sh"
redis: redis:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
entrypoint: /docker/redis-entrypoint.sh entrypoint: /docker/redis-entrypoint.sh
@ -48,7 +49,6 @@ services:
- "16379:6379" - "16379:6379"
mariadb: mariadb:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
entrypoint: /docker/mariadb-entrypoint.sh entrypoint: /docker/mariadb-entrypoint.sh
@ -64,7 +64,6 @@ services:
test: "bash /docker/health/mariadb.sh" test: "bash /docker/health/mariadb.sh"
mariadb_init: mariadb_init:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
environment: environment:
@ -76,7 +75,6 @@ services:
condition: service_healthy condition: service_healthy
git: git:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
environment: environment:
@ -93,7 +91,6 @@ services:
condition: service_started condition: service_started
smartgit: smartgit:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
environment: environment:
@ -107,7 +104,6 @@ services:
condition: service_healthy condition: service_healthy
cgit-php: cgit-php:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
environment: environment:
@ -123,7 +119,6 @@ services:
- git_data:/aurweb/aur.git - git_data:/aurweb/aur.git
cgit-fastapi: cgit-fastapi:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
environment: environment:
@ -139,7 +134,6 @@ services:
- git_data:/aurweb/aur.git - git_data:/aurweb/aur.git
php-fpm: php-fpm:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
environment: environment:
@ -160,7 +154,6 @@ services:
- "19000:9000" - "19000:9000"
fastapi: fastapi:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
environment: environment:
@ -182,7 +175,6 @@ services:
- "18000:8000" - "18000:8000"
nginx: nginx:
build: .
image: aurweb:latest image: aurweb:latest
init: true init: true
environment: environment:
@ -207,7 +199,6 @@ services:
condition: service_healthy condition: service_healthy
sharness: sharness:
build: .
image: aurweb:latest image: aurweb:latest
profiles: ["dev"] profiles: ["dev"]
init: true init: true
@ -232,7 +223,6 @@ services:
- ./templates:/aurweb/templates - ./templates:/aurweb/templates
pytest-mysql: pytest-mysql:
build: .
image: aurweb:latest image: aurweb:latest
profiles: ["dev"] profiles: ["dev"]
init: true init: true
@ -258,7 +248,6 @@ services:
- ./templates:/aurweb/templates - ./templates:/aurweb/templates
pytest-sqlite: pytest-sqlite:
build: .
image: aurweb:latest image: aurweb:latest
profiles: ["dev"] profiles: ["dev"]
init: true init: true
@ -280,7 +269,6 @@ services:
- ./templates:/aurweb/templates - ./templates:/aurweb/templates
test: test:
build: .
image: aurweb:latest image: aurweb:latest
profiles: ["dev"] profiles: ["dev"]
init: true init: true