Skip to content

Commit

Permalink
refactor(common): general cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboesquivel committed Dec 2, 2018
1 parent a6d151a commit 75fa6ad
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
5 changes: 2 additions & 3 deletions docker-compose.yml
Expand Up @@ -25,8 +25,7 @@ services:
- ./contracts:/opt/application/contracts
depends_on:
- mongo
links:
- 'eos-wallet:eos-wallet'
- eos-wallet
networks:
eoslocal:
aliases:
Expand Down Expand Up @@ -95,7 +94,7 @@ services:
volumes:
eosio-data-volume:
keosd-data-volume:
external: true # set false to delete wallet
external: true
mongo-data-volume:

networks:
Expand Down
13 changes: 9 additions & 4 deletions readme.md
Expand Up @@ -115,6 +115,8 @@ Execute `make setup` for:
- Chain initialization.
- Testing Users Creation.

Run `docker ps` afterwards to see the list of running containers.

## Commands

- `make setup` run chain initialization.
Expand Down Expand Up @@ -220,7 +222,7 @@ EOS Local comes with 2 EOS nodes running in separate docker containers, you can
You can execute commands on any container from you host machine using the `docker exec` command.
Eg:

`docker exec -i eoslocal_eosio cleos --url http://localhost:8888/`
`docker exec -i eoslocal_eosio cleos --url http://localhost:8888/ get info`

We recomend using declaring alias on your shell configuration Eg (.bashrc or .zshrc)

Expand Down Expand Up @@ -261,6 +263,12 @@ root@b39ffe3c43c0:/opt/eosio/bin# cleos get info
}
```

## Docker Tips

- `docker ps` displays the list of docker containers currently running.
- `docker network ls` displays the list of currently running networks.
- `docker --help` is your friend.

## Frequently Asked Questions

### Why Containers ?
Expand All @@ -285,9 +293,6 @@ Learn more at https://cloud.google.com/containers/

We use a Kanban-style board. That's were we prioritize the work. [Go to Project Board](https://github.com/eoscostarica/eos-local/projects/3).

<p align="center">
<img src="docs/project-board.png" width="600">
</p>

The main communication channels are [github issues](https://github.com/eoscostarica/eos-local/issues) and [EOS Costa Rica's Discord server](https://eoscostarica.io/discord). Feel to join and ask as many questions you may have.

Expand Down
2 changes: 1 addition & 1 deletion services/eosio/scripts/unlock.sh
Expand Up @@ -4,7 +4,7 @@
set -ux

# Alias cleos with endpoint param to avoid repetition
# We use as host here because that service name configured in docker-compose.yml
# Host name is the service name configured in docker-compose.yml
cleos="cleos -u http://eosio:8888 --wallet-url http://eos-wallet:8901"

# Unlocks the default wallet and waits .5 seconds
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


0 comments on commit 75fa6ad

Please sign in to comment.