diff --git a/README.md b/README.md index d633e6545..601a75aee 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,16 @@ 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 @@ -54,8 +62,16 @@ docker build -t renterd . -f docker/Dockerfile 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="" -e RENTERD_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="" -e RENTERD_SEED="" -p 127.0.0.1:9980:9980/tcp -p :9981:9981/tcp +docker run -d --name renterd-testnet -e RENTERD_API_PASSWORD="" -e RENTERD_SEED="" -p 127.0.0.1:9880:9880/tcp -p :9881:9881/tcp ghcr.io/siafoundation/renterd:master-zen ``` ## Usage Guidelines diff --git a/go.mod b/go.mod index 739532428..a0a635c03 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( go.sia.tech/jape v0.10.1 go.sia.tech/mux v1.2.0 go.sia.tech/siad v1.5.10-0.20230228235644-3059c0b930ca - go.sia.tech/web/renterd v0.31.0 + go.sia.tech/web/renterd v0.32.0 go.uber.org/zap v1.25.0 golang.org/x/crypto v0.14.0 golang.org/x/term v0.13.0 diff --git a/go.sum b/go.sum index 66d886ade..3b62e2a62 100644 --- a/go.sum +++ b/go.sum @@ -319,8 +319,8 @@ go.sia.tech/siad v1.5.10-0.20230228235644-3059c0b930ca h1:aZMg2AKevn7jKx+wlusWQf go.sia.tech/siad v1.5.10-0.20230228235644-3059c0b930ca/go.mod h1:h/1afFwpxzff6/gG5i1XdAgPK7dEY6FaibhK7N5F86Y= go.sia.tech/web v0.0.0-20230817201630-c3d9328334b1 h1:qzS1HFVPuQlOyh17zqO4Qkz63Q0YwADGMt9YAiL9mrk= go.sia.tech/web v0.0.0-20230817201630-c3d9328334b1/go.mod h1:RKODSdOmR3VtObPAcGwQqm4qnqntDVFylbvOBbWYYBU= -go.sia.tech/web/renterd v0.31.0 h1:bJ1nELQFBBZ/PnYckpUZLf7+cuRiapg0m5NfBdiqvBo= -go.sia.tech/web/renterd v0.31.0/go.mod h1:FgXrdmAnu591a3h96RB/15pMZ74xO9457g902uE06BM= +go.sia.tech/web/renterd v0.32.0 h1:oJOdQRiumh2lOY87fHPjQ90YUfob/8vSjz1z85qR2z0= +go.sia.tech/web/renterd v0.32.0/go.mod h1:FgXrdmAnu591a3h96RB/15pMZ74xO9457g902uE06BM= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=