Skip to content

Commit

Permalink
chore(request-node): remove dockerfile (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux committed Feb 14, 2022
1 parent f540b1a commit c047df3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 107 deletions.
27 changes: 0 additions & 27 deletions packages/request-node/Dockerfile

This file was deleted.

41 changes: 4 additions & 37 deletions packages/request-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,46 +284,13 @@ This mnemonic should only be used for testing.
### Docker

The Request Node can be deployed with Docker.
For now, the user has to clone the repository to build the Docker and run it.

```bash
git clone https://github.com/RequestNetwork/requestNetwork.git
cd packages/request-node
docker build -t "request-node" .
docker run request-node
```

The environment variables used to configure the Node can be defined in the `docker run` command.

For example, the user can define custom parameters for IPFS connection with the following command:

```
docker run -e IPFS_HOST=<custom_ipfs_host> IPFS_PORT=<custom_ipfs_port>
```

If the user want the server to listen on a specific port, he has to expose that port as well:

```
docker run -e PORT=80 --expose 80
```

The user can connect to an IPFS node and Ethereum node (like ganache) on the local machine, using the following:

```bash
docker run -e IPFS_HOST=host.docker.internal -e WEB3_PROVIDER_URL=http://host.docker.internal:8545
```

The user can use the docker-compose tool to run an environment containing the Request Node and an instance of IPFS with the following command:

```bash
docker-compose up
```

The environment variables must be defined in the `docker-compose.yml` file in the `environment` section. `$ETHEREUM_NETWORK_ID` and `$WEB3_PROVIDER_URL` must be defined.
The Docker image is available on the [DockerHub](https://hub.docker.com/r/requestnetwork/request-node).
Please refer to the [RequestNetwork/docker-images](https://github.com/RequestNetwork/docker-images) repository
for instructions on how to use this image.

#### Docker for unpublished version

See instructions in [Dockerfile.dev](./Dockerfile.dev)
See instructions in [Dockerfile.dev](./Dockerfile.dev).

### Running fully locally

Expand Down
21 changes: 0 additions & 21 deletions packages/request-node/docker-compose.yml

This file was deleted.

22 changes: 0 additions & 22 deletions packages/request-node/docker/docker-tsconfig.json

This file was deleted.

0 comments on commit c047df3

Please sign in to comment.