blue-lunch-98125
01/17/2023, 6:03 PMkind: Module
description: ebtflask
type: container
name: ebtflask
image: efs-server
build:
timeout: 3600
services:
- name: ebtflask
ports:
- name: http
containerPort: 5000
dependencies:
- kafka-broker
- pgbouncer
- redis
command:
- nodemon
- -e
- py
- --exec
- './manage.py runserver --disable_reloader'
- --config
- freshebt/nodemon.json
env:
EFS_DB_HOST: pgbouncer
EFS_REDIS_HOST: redis
OPENSEARCH_HOST: opensearch
exclude:
- devops/images/**/*
---
kind: Module
description: celery-beat
type: container
name: celery-beat
image: efs-server
build:
dependencies:
- name: ebtflask
services:
- name: celery-beat
env:
EFS_DB_HOST: pgbouncer
EFS_REDIS_HOST: redis
dependencies:
- pgbouncer
- redis
command:
- nodemon
- -e
- py
- --exec
- 'celery beat -A freshebt.app:celery --pidfile= --schedule /var/lib/celery-beat.db --loglevel=INFO'
- --watch
- freshebt
include: []
Where the second module simply reuses the container image built in the first, but with a different command.bright-policeman-43626
01/17/2023, 7:36 PMkind: Module
type: container
name: application-image
dockerfile: Dockerfile
include: [./modules.garden.yml, Dockerfile, .]
Then you can reuse that image using outputs of that module:
kind: Module
description: celery-beat
type: container
name: celery-beat
image: ${modules.application-image.outputs.deployment-image-name}:${modules.application-image.version}
build:
dependencies:
- name: ebtflask
services:
**** continues...
This example will build `application-image:v1.X.X) for exampleblue-lunch-98125
01/17/2023, 7:56 PMbright-policeman-43626
01/17/2023, 8:10 PMblue-lunch-98125
01/19/2023, 10:10 AMbright-policeman-43626
01/19/2023, 8:55 PMancient-diamond-80011
01/20/2023, 8:27 AM