Skip to content

Commit d174c2b

Browse files
committed
Use make target for acc test services
1 parent 5cdae8e commit d174c2b

File tree

1 file changed

+3
-56
lines changed

1 file changed

+3
-56
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -21,62 +21,6 @@ jobs:
2121
permissions:
2222
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
2323
contents: read
24-
env:
25-
ELASTICSEARCH_ENDPOINTS: "http://localhost:9200"
26-
ELASTICSEARCH_USERNAME: "elastic"
27-
ELASTICSEARCH_PASSWORD: password
28-
KIBANA_ENDPOINT: "http://localhost:5601"
29-
KIBANA_USERNAME: "elastic"
30-
KIBANA_PASSWORD: password
31-
KIBANA_SYSTEM_USERNAME: kibana_system
32-
KIBANA_SYSTEM_PASSWORD: password
33-
TF_ACC: "1"
34-
services:
35-
elasticsearch:
36-
image: docker.elastic.co/elasticsearch/elasticsearch:9.0.3
37-
env:
38-
discovery.type: single-node
39-
xpack.security.enabled: true
40-
xpack.security.authc.api_key.enabled: true
41-
xpack.security.authc.token.enabled: true
42-
xpack.watcher.enabled: true
43-
xpack.license.self_generated.type: trial
44-
repositories.url.allowed_urls: https://example.com/*
45-
path.repo: /tmp
46-
ELASTIC_PASSWORD: ${{ env.ELASTICSEARCH_PASSWORD }}
47-
ports:
48-
- 9200:9200
49-
options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10
50-
kibana:
51-
image: docker.elastic.co/kibana/kibana:9.0.3
52-
env:
53-
SERVER_NAME: kibana
54-
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
55-
ELASTICSEARCH_USERNAME: ${{ env.KIBANA_SYSTEM_USERNAME }}
56-
ELASTICSEARCH_PASSWORD: ${{ env.KIBANA_SYSTEM_PASSWORD }}
57-
XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: a7a6311933d3503b89bc2dbc36572c33a6c10925682e591bffcab6911c06786d
58-
# LOGGING_ROOT_LEVEL: debug
59-
ports:
60-
- 5601:5601
61-
options: --health-cmd="curl http://localhost:5601/api/status" --health-interval=10s --health-timeout=5s --health-retries=10
62-
fleet:
63-
image: docker.elastic.co/elastic-agent/elastic-agent:9.0.3
64-
env:
65-
SERVER_NAME: fleet
66-
FLEET_ENROLL: "1"
67-
FLEET_URL: https://fleet:8220
68-
FLEET_INSECURE: "true"
69-
FLEET_SERVER_ENABLE: "1"
70-
FLEET_SERVER_POLICY_ID: fleet-server
71-
FLEET_SERVER_ELASTICSEARCH_HOST: http://elasticsearch:9200
72-
FLEET_SERVER_ELASTICSEARCH_INSECURE: "true"
73-
FLEET_SERVER_INSECURE_HTTP: "true"
74-
KIBANA_HOST: http://kibana:5601
75-
KIBANA_FLEET_SETUP: "1"
76-
KIBANA_FLEET_PASSWORD: ${{ env.ELASTICSEARCH_PASSWORD }}
77-
ports:
78-
- 8220:8220
79-
options: --restart="unless-stopped"
8024

8125
steps:
8226
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -88,6 +32,9 @@ jobs:
8832
with:
8933
terraform_wrapper: false
9034

35+
- name: Setup Elastic Stack
36+
run: make docker-fleet
37+
9138
- name: Get dependencies
9239
run: make setup
9340

0 commit comments

Comments
 (0)