Skip to content

Commit 19aac88

Browse files
authored
add entry-point service (#218)
Add new service for running a DHT entry point. Currently the entry point used broker image, but it could use an image created from the dht package. It needs a broker image created from `streamr-1.0` branch, and therefore the service can be started only if the images are built from that branch (like we do here https://github.com/streamr-dev/network/blob/21bacaeb4aaadc7d5b10a37591c5e464d674c819/.github/workflows/validate.yml#L137). This service doesn't work from command line at the moment as we have not deployed broker images from the `streamr-1.0` branch.
1 parent 331c113 commit 19aac88

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ jobs:
4747
- name: Check out the repo
4848
uses: actions/[email protected]
4949
- name: Start Streamr Docker Stack
50-
run: ./streamr-docker-dev/bin.sh start --wait --timeout 600
50+
# TODO the entry-point service is temporarily disabled as broker images are not yet built from streamr-1.0 branch
51+
run: ./streamr-docker-dev/bin.sh start --wait --timeout 600 --except entry-point
5152
- name: Collect docker logs on failure
5253
if: failure()
5354
uses: jwalton/[email protected]

docker-compose.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,27 @@ services:
167167
interval: 30s
168168
timeout: 10s
169169
retries: 20
170+
entry-point:
171+
# NOTE THIS IS NOT USABLE YET as streamr/broker-node:dev images are in brubeck era, not in streamr-1.0 era
172+
# - we currently publish images only from main, not from streamr-1.0
173+
# - i.e. in the current streamr/broker-node:dev image there is no "entry-point" script at all
174+
# TODO could move entry-point.ts from broker/bin to dht/bin then create a dht docker image and then use it here
175+
# - also remove "entry-point" from broker's package.json bin script list
176+
# TODO add this as a dependency for all brokers
177+
container_name: streamr-dev-entry-point
178+
image: streamr/broker-node:dev
179+
init: true
180+
networks:
181+
- streamr-network
182+
restart: unless-stopped
183+
ports:
184+
- "40500:40500"
185+
command: npm exec -- entry-point
186+
healthcheck:
187+
test: ["CMD", "curl", "${STREAMR_BASE_URL}:40500"]
188+
interval: 1s
189+
timeout: 5s
190+
retries: 10
170191
broker-node-storage-1:
171192
container_name: streamr-dev-broker-node-storage-1
172193
image: streamr/broker-node:dev

0 commit comments

Comments
 (0)