Use aptly base image for aptly-api container
`aptly-api` container image is built from aptly image adding command to run
aptly api service.
By using the same image both for aptly and aptly-api we can decrease number
of Drivetrain images and simplify docker image building jobs.
Prod-related: PROD-25633 (PROD:25633)
Change-Id: I16d2efba9da6331eb39cf52c3f725c932610d444
diff --git a/defaults/docker_images.yml b/defaults/docker_images.yml
index fa13bdf..8b0b6a0 100644
--- a/defaults/docker_images.yml
+++ b/defaults/docker_images.yml
@@ -43,6 +43,5 @@
# aptly
docker_image_aptly:
base: "${_param:mcp_docker_registry}/mirantis/cicd/aptly:${_param:mcp_version}"
- api: "${_param:mcp_docker_registry}/mirantis/cicd/aptly-api:${_param:mcp_version}"
public: "${_param:mcp_docker_registry}/mirantis/cicd/aptly-public:${_param:mcp_version}"
publisher: "${_param:mcp_docker_registry}/mirantis/cicd/aptly-publisher:${_param:mcp_version}"
diff --git a/docker/swarm/stack/aptly.yml b/docker/swarm/stack/aptly.yml
index d5b8362..3282641 100644
--- a/docker/swarm/stack/aptly.yml
+++ b/docker/swarm/stack/aptly.yml
@@ -16,7 +16,8 @@
deploy:
restart_policy:
condition: any
- image: ${_param:docker_image_aptly:api}
+ image: ${_param:docker_image_aptly:base}
+ command: 'aptly api serve -no-lock'
ports:
- 18084:8080
volumes: