Skip to content

Commit

Permalink
New folder structure (#35)
Browse files Browse the repository at this point in the history
* Split setup in different folders per supported network

* Add a workflow to create releases for the different networks based on the tag

* Fix workflow

* Small fixes
  • Loading branch information
muXxer authored Jan 16, 2024
1 parent 0d9c8e0 commit c1a44bc
Show file tree
Hide file tree
Showing 38 changed files with 8,549 additions and 25 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,33 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
tag_prefix: ['iota', 'shimmer', 'testnet']
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
if: startsWith(github.ref_name, matrix.tag_prefix)
uses: actions/checkout@v4

- name: Find and Replace VERSION
uses: jacobtomlinson/gha-find-replace@v2
if: startsWith(github.ref_name, matrix.tag_prefix)
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "__VERSION__"
replace: ${{ github.ref_name }}
regex: false

- name: Create node-docker-setup_stardust.tar.gz
- name: Create node-docker-setup_${{ matrix.tag_prefix }}.tar.gz
if: startsWith(github.ref_name, matrix.tag_prefix)
uses: ihiroky/archive-action@v1
with:
root_dir: stardust
file_path: node-docker-setup_stardust.tar.gz
root_dir: ${{ matrix.tag_prefix }}
file_path: node-docker-setup_${{ matrix.tag_prefix }}.tar.gz

- name: Upload node-docker-setup_stardust.tar.gz file
uses: Shopify/[email protected]
- name: Upload node-docker-setup_${{ matrix.tag_prefix }}.tar.gz file
if: startsWith(github.ref_name, matrix.tag_prefix)
uses: Shopify/[email protected]
with:
name: node-docker-setup_stardust-${{ github.ref_name }}.tar.gz
path: node-docker-setup_stardust.tar.gz
name: node-docker-setup_${{ github.ref_name }}.tar.gz
path: node-docker-setup_${{ matrix.tag_prefix }}.tar.gz
repo-token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.DS_Store
legacy/data
chrysalis/data
stardust/data
iota/data
shimmer/data
testnet/data
.env
4 changes: 4 additions & 0 deletions iota/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Node Docker Setup - IOTA Mainnet
This setup lets you run an [IOTA Hornet node](https://wiki.iota.org/hornet/welcome) and additional services using Docker and Traefik as [a reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy) to enable (optional) TLS using [Let's Encrypt](https://letsencrypt.org/), control access to your node and route requests to the correct endpoints.

See [this guide](https://wiki.iota.org/hornet/how_tos/using_docker) to set up your node.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version: '3'
services:

##################################################################
# HORNET - Stardust #
# HORNET #
##################################################################

hornet:
Expand Down
5 changes: 2 additions & 3 deletions stardust/docker-compose.yml → iota/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version: '3'
services:

##################################################################
# HORNET - Stardust #
# HORNET #
##################################################################

hornet:
Expand All @@ -34,11 +34,10 @@ services:
- "traefik.http.middlewares.redirect-dashboard.redirectregex.regex=^(https?://[^/]+)/?$$"
- "traefik.http.middlewares.redirect-dashboard.redirectregex.replacement=$$1/dashboard/"
- "traefik.http.middlewares.redirect-dashboard.redirectregex.permanent=true"

cap_drop:
- ALL
volumes:
- ./${HORNET_CONFIG_FILE:-config_mainnet.json}:/app/config.json:ro
- ./${HORNET_CONFIG_FILE:-config.json}:/app/config.json:ro
- ./peering.json:/app/peering.json
- ./data:/app/data
command:
Expand Down
14 changes: 6 additions & 8 deletions stardust/env_template → iota/env_template
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@
# You need to specify the domain name of your node to automatically get a valid SSL certificate via "letsencrypt.org"
#NODE_HOST=node.your-domain.com

###################
# network section #
###################

# Choose the correct network by uncommenting one of the following lines.
#HORNET_CONFIG_FILE=config_mainnet.json
#HORNET_CONFIG_FILE=config_shimmer.json
#HORNET_CONFIG_FILE=config_testnet.json
#######################
# config file section #
#######################

# Overwrite the default config file by uncommenting the following line (default: config.json).
#HORNET_CONFIG_FILE=config.json

####################
# profiles section #
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion stardust/README.md → shimmer/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Node Docker Setup - Stardust
# Node Docker Setup - Shimmer
This setup lets you run an [IOTA Hornet node](https://wiki.iota.org/hornet/welcome) and additional services using Docker and Traefik as [a reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy) to enable (optional) TLS using [Let's Encrypt](https://letsencrypt.org/), control access to your node and route requests to the correct endpoints.

See [this guide](https://wiki.iota.org/hornet/how_tos/using_docker) to set up your node.
11 changes: 11 additions & 0 deletions shimmer/assets/grafana/dashboards/dashboard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: 1

providers:
- name: 'Prometheus'
orgId: 1
folder: ''
type: file
disableDeletion: true
allowUiUpdates: false
options:
path: /etc/grafana/provisioning/dashboards
Loading

0 comments on commit c1a44bc

Please sign in to comment.