If you are running docker on linux, this is pretty easy to do, since storagenodes are packaged as binaries, so we simply overwrite the storagenode
binary inside /app
in the container, and then restart the container.
For example this pulls a specific version from Github:
#!/bin/bash
VERSION=v1.104.1
CONTAINER=storagenode_satet_d1n2-node-1
ARCH=$(docker exec $CONTAINER printenv GOARCH)
cat <<EOF | docker exec -i $CONTAINER bash
wget https://github.com/storj/storj/releases/download/$VERSION/storagenode_linux_$ARCH.zip
unzip -o storagenode_linux_$ARCH.zip && rm storagenode_linux_$ARCH.zip
chmod +x storagenode
EOF
docker container restart $CONTAINER