Skip to content

Commit 8250def

Browse files
authored
Merge pull request #2 from streamr-dev/dev-readme
Add README and LICENSE
2 parents 08a6663 + 7eaf624 commit 8250def

File tree

6 files changed

+752
-1
lines changed

6 files changed

+752
-1
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
on: [push]
2-
2+
name: Test
33
jobs:
44
test:
55
runs-on: ubuntu-latest

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.idea
2+
.DS_Store

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<p align="center">
2+
<a href="https://streamr.network">
3+
<img alt="Streamr" src="https://raw.githubusercontent.com/streamr-dev/streamr-docker-dev-action/master/docker-header-img.png" width="1320" />
4+
</a>
5+
</p>
6+
<h1 align="left"></h1>
7+
# streamr-docker-dev-action
8+
![.github/workflows/test.yaml](https://github.com/streamr-dev/streamr-docker-dev-action/workflows/.github/workflows/test.yaml/badge.svg)
9+
10+
## Description
11+
`streamr-docker-dev-action` is a custom GitHub Action that:
12+
- Clones `streamr-docker-dev` command line tool (available via `./streamr-docker-dev/streamr-docker-dev/bin.sh`)
13+
- Starts Streamr Docker stack
14+
15+
## Required input arguments
16+
None.
17+
18+
## Optional input arguments
19+
Currently the following services are started by default:
20+
- mysql
21+
- redis
22+
- engine-and-editor
23+
- cassandra parity-node0
24+
- parity-sidechain-node0
25+
- bridge
26+
- data-union-server
27+
- broker-node-storage-1
28+
- nginx
29+
- smtp
30+
- platform
31+
32+
You can customise services that are required by your use case with `services-to-start` input parameter.
33+
For example:
34+
```
35+
on: [push]
36+
37+
jobs:
38+
test:
39+
runs-on: ubuntu-latest
40+
name: Use streamr-docker-dev-action to start a few services
41+
steps:
42+
- uses: actions/checkout@v2
43+
- id: start-docker-services
44+
uses: streamr-dev/streamr-docker-dev-action@v1
45+
with:
46+
services-to-start: 'redis mysql engine-and-editor'
47+
```
48+
49+
## Required output arguments
50+
None.
51+
52+
## Optional output arguments
53+
None.
54+
55+
## Secrets
56+
None.
57+
58+
## Environment variables
59+
None.
60+
61+
## Example
62+
```
63+
on: [push]
64+
65+
jobs:
66+
example:
67+
runs-on: ubuntu-latest
68+
name: Using streamr-docker-dev-action
69+
steps:
70+
- uses: actions/checkout@v2
71+
- uses: streamr-dev/streamr-docker-dev-action@v1
72+
- run: npm ci && npm test
73+
shell: bash
74+
```

action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ inputs:
44
services-to-start:
55
description: 'Streamr Docker Stack services to start'
66
required: false
7+
# If changing the default list of services below, update examples in README.md
78
default: 'mysql redis engine-and-editor cassandra parity-node0 parity-sidechain-node0 bridge data-union-server broker-node-storage-1 nginx smtp platform'
89
runs:
910
using: "composite"

docker-header-img.png

418 KB
Loading

0 commit comments

Comments
 (0)