Skip to content

Commit 589bea6

Browse files
committed
added docker setup
1 parent dd19e8f commit 589bea6

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ jobs:
6262

6363
- name: Run authorize and store (PAPI, RPC node)
6464
working-directory: examples
65-
run: just run-authorize-and-store
65+
run: just run-authorize-and-store-docker

examples/justfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,29 @@ teardown-services-docker:
408408

409409
echo "✅ Docker services stopped"
410410

411+
# Run RPC node example with Docker IPFS
412+
run-authorize-and-store-docker: build npm-install
413+
#!/usr/bin/env bash
414+
set -e
415+
416+
echo "🚀 Starting RPC node workflow test with Docker..."
417+
echo ""
418+
419+
just setup-services-docker
420+
node authorize_and_store_papi.js
421+
EXAMPLE_EXIT=$?
422+
423+
echo ""
424+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
425+
if [ $EXAMPLE_EXIT -eq 0 ]; then
426+
echo "✅ Example completed successfully!"
427+
else
428+
echo "❌ Example failed with exit code $EXAMPLE_EXIT"
429+
fi
430+
431+
just teardown-services-docker
432+
exit $EXAMPLE_EXIT
433+
411434
# Run smoldot example with Docker IPFS
412435
run-authorize-and-store-smoldot-docker: build npm-install
413436
#!/usr/bin/env bash

0 commit comments

Comments
 (0)