Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: apply container name to elastic-agent Docker services (#1336)
Browse files Browse the repository at this point in the history
* fix: apply container name to elastic-agent Docker services

* chore: do not override container name for elastic-agent

(cherry picked from commit 787b976)

# Conflicts:
#	cli/config/compose/services/elastic-agent/cloud/docker-compose.yml
#	cli/config/compose/services/elastic-agent/docker-compose.yml
  • Loading branch information
mdelapenya authored and mergify-bot committed Jul 20, 2021
1 parent a272599 commit 54cba72
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: '2.4'
services:
elastic-agent:
image: docker.elastic.co/observability-ci/centos-systemd:latest
container_name: ${centos_systemdContainerName}
entrypoint: "/usr/sbin/init"
platform: ${stackPlatform:-linux/amd64}
privileged: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
version: '2.4'
services:
elastic-agent:
<<<<<<< HEAD
image: docker.elastic.co/${elasticAgentDockerNamespace:-beats}/elastic-agent${elasticAgentDockerImageSuffix}:${elasticAgentTag:-7.14.0-SNAPSHOT}
container_name: ${elasticAgentContainerName}
=======
image: "docker.elastic.co/${elasticAgentDockerNamespace:-beats}/elastic-agent${elasticAgentDockerImageSuffix}:${elasticAgentTag:-8.0.0-SNAPSHOT}"
>>>>>>> 787b976 (fix: apply container name to elastic-agent Docker services (#1336))
depends_on:
elasticsearch:
condition: service_healthy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: '2.4'
services:
elastic-agent:
image: docker.elastic.co/observability-ci/debian-systemd:latest
container_name: ${debian_systemdContainerName}
entrypoint: "/sbin/init"
platform: ${stackPlatform:-linux/amd64}
privileged: true
Expand Down
4 changes: 4 additions & 0 deletions cli/config/compose/services/elastic-agent/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
version: '2.4'
services:
elastic-agent:
<<<<<<< HEAD
image: docker.elastic.co/${elasticAgentDockerNamespace:-beats}/elastic-agent${elasticAgentDockerImageSuffix}:${elasticAgentTag:-7.14.0-SNAPSHOT}
container_name: ${elasticAgentContainerName}
=======
image: "docker.elastic.co/${elasticAgentDockerNamespace:-beats}/elastic-agent${elasticAgentDockerImageSuffix}:${elasticAgentTag:-8.0.0-SNAPSHOT}"
>>>>>>> 787b976 (fix: apply container name to elastic-agent Docker services (#1336))
depends_on:
elasticsearch:
condition: service_healthy
Expand Down
1 change: 0 additions & 1 deletion e2e/_suites/fleet/stand-alone.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ func (fts *FleetTestSuite) startStandAloneAgent(image string, flavour string, en

containerName := fmt.Sprintf("%s_%s_%d", common.FleetProfileName, common.ElasticAgentServiceName, 1)

common.ProfileEnv["elasticAgentContainerName"] = containerName
common.ProfileEnv["elasticAgentTag"] = dockerImageTag

for k, v := range env {
Expand Down

0 comments on commit 54cba72

Please sign in to comment.