Skip to content

Commit

Permalink
Merge pull request #2066 from iotaledger/fix/local-setup-ci
Browse files Browse the repository at this point in the history
chore: fix CI push to dockerhub latest tag
  • Loading branch information
jorgemmsilva authored Mar 7, 2023
2 parents 867b9f1 + ccedce0 commit 67988cf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }},iotaledger/wasp:latest
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BUILD_LD_FLAGS=-X=github.com/iotaledger/wasp/core/app.Version=${{ steps.tagger.outputs.tag }}
25 changes: 9 additions & 16 deletions tools/local-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ setup.

### Starting

**Note** You need to build the wasp container using `build_container.sh` if
you're on Mac/Linux or `build_container.cmd` on windows so that the `wasp`
version is properly set.
Run `docker-compose pull` to fetch the dependencies.

Run `docker-compose up` to start the setup.

After startup, you should be able to see the wasp dashboard on:
http://localhost/wasp/dashboard/

### Stopping

Press `Ctrl-C` to shut down the setup, but don't press it twice to force it.
Expand All @@ -25,12 +26,9 @@ You can also shut down the setup with `docker-compose down` in a new terminal.
Run `docker-compose down --volumes` to shut down the nodes and to remove all
databases.

### Recreation

If you made changes to the Wasp code and want to use it inside the setup, you
need to recreate the Wasp image.
### Re-build

Run `docker-compose build`
If you made changes to the Wasp code and want to use it inside the setup, you can re-build the Wasp image using `build_container.sh` or `build_container.cmd`.

## Ports

Expand All @@ -46,14 +44,9 @@ The nodes will then be reachable under these ports:

## Wasp-cli setup

To configure a new wasp-cli you can use the following commands:

:::note

You can either use a wasp-cli installed on your system, or use the one built-in
to the wasp docker container by doing: `docker exec wasp /app/wasp-cli init`
Download the wasp cli from the [releases page](https://github.com/iotaledger/wasp/releases)

:::
To configure a new wasp-cli you can use the following commands:

```shell
wasp-cli init
Expand All @@ -66,7 +59,7 @@ To create a chain:

```shell
wasp-cli request-funds
wasp-cli chain deploy --nodes=0 --quorum=1 --chain=testchain --description="Test Chain"
wasp-cli chain deploy --chain=testchain
```

After a chain has been created, the EVM JSON-RPC can be accessed via:
Expand Down
9 changes: 4 additions & 5 deletions tools/local-setup/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: "3.9"
services:

#####################################################
# Reverse Proxy (needed to rewrite dashboard route) #
#####################################################
Expand All @@ -18,7 +17,7 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:ro"

###############
# HORNET nest #
# HORNET nest #
###############

hornet-nest:
Expand Down Expand Up @@ -65,23 +64,23 @@ services:
- ALL

########
# WASP #
# WASP #
########

wasp:
container_name: wasp
image: iotaledger/wasp:latest

build:
context: ../../
dockerfile: Dockerfile.noncached
args:
BUILD_TAGS: "${BUILD_TAGS:-rocksdb}"
BUILD_LD_FLAGS: "${BUILD_LD_FLAGS:--X=github.com/iotaledger/wasp/core/app.Version=v0.0.0-testing}"
ulimits:
nofile:
soft: 16384
hard: 16384
restart: on-failure:10
restart: on-failure:1
stop_grace_period: 5m
depends_on:
traefik:
Expand Down

0 comments on commit 67988cf

Please sign in to comment.