Operating a node on a 32bit system

You need to add parameter --storage2.trust.sources=https://www.storj.io/dcs-satellites or specify it in the config.yaml:

storage2.trust.sources: https://www.storj.io/dcs-satellites

To reduce a verbosity I would recommend to use parameters --log.level=info --log.development=false --log.caller=false or options in the config.yaml

Made a Dockerfile:

FROM --platform=i386 golang:1.17-alpine as build
# RUN apt update && apt dist-upgrade -y && apt install npm -y
RUN apk add npm git bash gcc libc-dev
RUN git clone https://github.com/storj/storj.git && cd storj && git checkout v1.39.6
RUN cd storj/web/storagenode && npm install && npm run build && cd ../.. \
    && go get github.com/go-bindata/go-bindata/go-bindata \
    && go-bindata -prefix web/storagenode/ -fs -o storagenode/console/consoleassets/bindata.resource.go -pkg consoleassets web/storagenode/dist/... web/storagenode/static/... \
    && /usr/bin/env echo -e '\nfunc init() { FileSystem = AssetFile() }' >> storagenode/console/consoleassets/bindata.resource.go \
    && gofmt -w -s storagenode/console/consoleassets/bindata.resource.go
RUN cd storj && ./scripts/release.sh install ./cmd/storagenode

FROM --platform=i386 alpine
WORKDIR /app
COPY --from=build /go/bin/storagenode /app/storagenode
COPY --from=build /go/storj/cmd/storagenode/dashboard.sh /app/
COPY --from=build /go/storj/cmd/storagenode/entrypoint /
EXPOSE 28967
EXPOSE 14002
ENTRYPOINT [ "/entrypoint" ]

And docker-compose.yaml:

version: "3.7"
services:
  storagenode6:
    container_name: storagenode6
    restart: always
    stop_grace_period: 300s
    image: storagenode:i386
    build: .
    ports:
      - "28971:28967/tcp"
      - "28971:28967/udp"
      - "14006:14002"
    volumes:
      - type: bind
        source: /mnt/storj/storagenode6/identity/
        target: /app/identity
      - type: bind
        source: /mnt/storj/storagenode6/
        target: /app/config
    environment:
      - WALLET=0x000...
      - EMAIL=email
      - ADDRESS=public.address:28971
      - STORAGE=500GB
    command:
      - "--operator.wallet-features=zksync"
      - "--storage2.trust.sources=https://www.storj.io/dcs-satellites"
      # - "--log.level=info"
      # - "--log.development=false"
      # - "--log.caller=false"

To run:

docker-compose up -d

To shutdown:

docker-compose down
2 Likes