@@ -67,7 +67,7 @@ After `docker-compose up -d`, two services named `nodeosd` and `keosd` will be s
You can run the `cleos` commands via a bash alias.
```bash
alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -u http://nodeosd:8888'
alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -u http://nodeosd:8888 --wallet-url http://localhost:8888'
cleos get info
cleos get account inita
```
...
...
@@ -86,29 +86,15 @@ docker-compose stop keosd
### Develop/Build custom contracts
Due to the fact that the eosio/eos image does not contain the required dependencies for contract development (this is by design, to keep the image size small), you will need to utilize eosio/builder. However, eosio/builder does not contain eosiocpp. As such, you will need to run eosio/builder interactively, and clone, build and install EOS. Once this is complete, you can then utilize eosiocpp to compile your contracts.
Due to the fact that the eosio/eos image does not contain the required dependencies for contract development (this is by design, to keep the image size small), you will need to utilize the eosio/eos-dev image. This image contains both the required binaries and dependencies to build contracts using eosiocpp.
You can also create a Dockerfile that will do this for you.
```
FROM eosio/builder
RUN git clone -b master --depth 1 https://github.com/EOSIO/eos.git --recursive \
Then, from the same directory as the Dockerfile, simply run:
You can either use the image available on [Docker Hub](https://hub.docker.com/r/eosio/eos-dev/) or navigate into the dev folder and build the image manually.
```bash
docker build -t eosio/contracts .
docker run -it-v /path/to/custom/contracts:/contracts eosio/contracts /bin/bash
cd dev
docker build -t eosio/eos-dev .
```
At this time you should be at a bash shell. You can navigate into the /contracts directory and use eosiocpp to compile your custom contracts.
### Change default configuration
You can use docker compose override file to change the default configurations. For example, create an alternate config file `config2.ini` and a `docker-compose.override.yml` with the following content.