Skip to content

Commit

Permalink
Merge pull request #689 from bustedware/master
Browse files Browse the repository at this point in the history
added dockerfile for testnet. updated readme to reflect hostd similarly
  • Loading branch information
ChrisSchinnerl authored Nov 7, 2023
2 parents 655c65c + 662d037 commit 0e687ab
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,33 @@ with more configuration options.
From within the root of the repo run the following command to build an image of
`renterd` tagged `renterd`.

```bash
docker build -t renterd . -f docker/Dockerfile
### Production

```sh
docker build -t renterd:master -f ./docker/Dockerfile .
```

### Testnet

```sh
docker build --build-arg BUILD_TAGS='netgo testnet' -t renterd:master-zen -f ./docker/Dockerfile .
```

### Run Container

Run `renterd` in the background as a container named `renterd` that exposes its
API to the host system and the gateway to the world.

### Production

```bash
docker run -d --name renterd -e RENTERD_API_PASSWORD="<PASSWORD>" -e RENTERD_SEED="<SEED>" -p 127.0.0.1:9980:9980/tcp -p :9981:9981/tcp ghcr.io/siafoundation/renterd:master
```

### Testnet

```bash
docker run -d --name renterd -e RENTERD_API_PASSWORD="<PASSWORD>" -e RENTERD_SEED="<SEED>" -p 127.0.0.1:9980:9980/tcp -p :9981:9981/tcp <IMAGE_ID>
docker run -d --name renterd-testnet -e RENTERD_API_PASSWORD="<PASSWORD>" -e RENTERD_SEED="<SEED>" -p 127.0.0.1:9880:9880/tcp -p :9881:9881/tcp ghcr.io/siafoundation/renterd:master-zen
```

## Usage Guidelines
Expand Down

0 comments on commit 0e687ab

Please sign in to comment.