Skip to content

Commit eda5a8a

Browse files
[chore] add postgresql and opensearch containers to build workflow (#2595)
* [chore] add postgresql and opensearch containers to build workflow * Fix tag name
1 parent 80e9d3e commit eda5a8a

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/workflows/component-build-images.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ jobs:
7878
tag_suffix: email
7979
context: ./
8080
setup-qemu: true
81+
- file: ./src/flagd-ui/Dockerfile
82+
tag_suffix: flagd-ui
83+
context: ./
84+
setup-qemu: true
8185
- file: ./src/fraud-detection/Dockerfile
8286
tag_suffix: fraud-detection
8387
context: ./
@@ -106,10 +110,18 @@ jobs:
106110
tag_suffix: load-generator
107111
context: ./
108112
setup-qemu: true
113+
- file: ./src/opensearch/Dockerfile
114+
tag_suffix: opensearch
115+
context: ./
116+
setup-qemu: true
109117
- file: ./src/payment/Dockerfile
110118
tag_suffix: payment
111119
context: ./
112120
setup-qemu: true
121+
- file: ./src/postgres/Dockerfile
122+
tag_suffix: postgresql
123+
context: ./
124+
setup-qemu: true
113125
- file: ./src/product-catalog/Dockerfile
114126
tag_suffix: product-catalog
115127
context: ./
@@ -126,10 +138,6 @@ jobs:
126138
tag_suffix: shipping
127139
context: ./
128140
setup-qemu: true
129-
- file: ./src/flagd-ui/Dockerfile
130-
tag_suffix: flagd-ui
131-
context: ./
132-
setup-qemu: true
133141
- file: ./test/tracetesting/Dockerfile
134142
tag_suffix: traceBasedTests
135143
context: ./

docker-compose.minimal.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,19 +680,23 @@ services:
680680

681681
# OpenSearch
682682
opensearch:
683-
image: ${OPENSEARCH_IMAGE}
684683
container_name: opensearch
684+
build:
685+
context: ./
686+
dockerfile: ${OPENSEARCH_DOCKERFILE}
687+
cache_from:
688+
- ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch
685689
deploy:
686690
resources:
687691
limits:
688-
memory: 1.1G
692+
memory: 800M
689693
restart: unless-stopped
690694
environment:
691695
- cluster.name=demo-cluster
692696
- node.name=demo-node
693697
- bootstrap.memory_lock=true
694698
- discovery.type=single-node
695-
- OPENSEARCH_JAVA_OPTS=-Xms300m -Xmx300m
699+
- OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m
696700
- DISABLE_INSTALL_DEMO_CONFIG=true
697701
- DISABLE_SECURITY_PLUGIN=true
698702
# Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,8 @@ services:
851851
build:
852852
context: ./
853853
dockerfile: ${OPENSEARCH_DOCKERFILE}
854+
cache_from:
855+
- ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch
854856
deploy:
855857
resources:
856858
limits:

0 commit comments

Comments
 (0)