Here we have some basic Docker images for StraxD. The images build from the full node master on GitHub. After installing Docker, you can build and run the container with the following.
cd Stratis.StraxD
docker build -t stratisfullnode/straxmain .
docker run -it <containerId>
You can optionally use volumes external to the Docker container so that the blockchain does not have to sync between tests.
docker volume create stratisfullnode
docker run --mount source=stratisfullnode,target=/root/.stratisnode -it <containerId>
When running the image, add a -p <containerPort>:<localPort>
to formward the ports:
docker run -p 17105:17105 -it <containerId>
docker build . --no-cache
Modify the Dockerfile to put the conf file in the right location and remove the "-testnet" from the run statement.
---
COPY strax.conf.docker /root/.stratisnode/strax/StraxMain/strax.conf
---
CMD ["dotnet", "run"]
Also remove testnet=1
from the *.docker.conf
file.