Skip to content

Commit 7dbfbcd

Browse files
committed
Updated ci config
1 parent 986faf6 commit 7dbfbcd

File tree

2 files changed

+1
-56
lines changed

2 files changed

+1
-56
lines changed

.ci/docker-compose.yml

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ services:
2323

2424
elasticsearch-oss:
2525
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:-5.6.15}
26-
- elasticsearch
2726
volumes:
2827
- esvol:/tmp
2928
networks:
@@ -33,63 +32,11 @@ services:
3332
- "repositories.url.allowed_urls=http://snapshot.*"
3433
- node.attr.testattr=test
3534
- bootstrap.memory_lock=false
35+
- "xpack.security.enabled=false"
3636
- "discovery.type=single-node"
3737
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
3838

39-
client-platinum:
40-
image: docker.elastic.co/clients/elasticsearch-js:${NODE_JS_VERSION:-10}
41-
build:
42-
context: ..
43-
dockerfile: .ci/Dockerfile
44-
args:
45-
NODE_JS_VERSION: ${NODE_JS_VERSION:-10}
46-
environment:
47-
- "TEST_ES_SERVER=https://elastic:changeme@elasticsearch-platinum:9200"
48-
volumes:
49-
- ..:/usr/src/app
50-
# This will mount the node_modules directory
51-
# to the host machine using the buildtime directory.
52-
- /usr/src/app/node_modules
53-
- esvol:/tmp
54-
networks:
55-
- esnet-platinum
56-
depends_on:
57-
- elasticsearch-platinum
58-
# there is not need to run again also the unit test
59-
command: ["npm", "run", "test:integration"]
60-
61-
elasticsearch-platinum:
62-
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:5.6.15}
63-
ports:
64-
- "9200:9200"
65-
networks:
66-
- esnet-platinum
67-
environment:
68-
- "node.attr.testattr=test"
69-
- "path.repo=/tmp"
70-
- "repositories.url.allowed_urls=http://snapshot.*"
71-
- "discovery.type=single-node"
72-
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
73-
- "ELASTIC_PASSWORD=changeme"
74-
- "xpack.security.enabled=true"
75-
- "xpack.license.self_generated.type=trial"
76-
- "xpack.security.http.ssl.enabled=true"
77-
- "xpack.security.http.ssl.verification_mode=certificate"
78-
- "xpack.security.http.ssl.key=certs/testnode.key"
79-
- "xpack.security.http.ssl.certificate=certs/testnode.crt"
80-
- "xpack.security.http.ssl.certificate_authorities=certs/ca.crt"
81-
- "xpack.security.transport.ssl.enabled=true"
82-
- "xpack.security.transport.ssl.key=certs/testnode.key"
83-
- "xpack.security.transport.ssl.certificate=certs/testnode.crt"
84-
- "xpack.security.transport.ssl.certificate_authorities=certs/ca.crt"
85-
volumes:
86-
- "./certs/testnode.crt:/usr/share/elasticsearch/config/certs/testnode.crt"
87-
- "./certs/testnode.key:/usr/share/elasticsearch/config/certs/testnode.key"
88-
- "./certs/ca.crt:/usr/share/elasticsearch/config/certs/ca.crt"
89-
9039
networks:
91-
# we need two networks otherwise the two ES instances will join each other
9240
esnet-oss:
93-
esnet-platinum:
9441
volumes:
9542
esvol:

.ci/run-tests

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ unset VAULT_ROLE_ID VAULT_SECRET_ID VAULT_TOKEN
1717
set -x
1818

1919
ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION} NODE_JS_VERSION=${NODE_JS_VERSION} docker-compose -f .ci/docker-compose.yml run client-oss
20-
21-
ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION} NODE_JS_VERSION=${NODE_JS_VERSION} docker-compose -f .ci/docker-compose.yml run client-platinum

0 commit comments

Comments
 (0)