diff --git a/docker/BUILD.md b/docker/BUILD.md deleted file mode 100644 index 93e5224276..0000000000 --- a/docker/BUILD.md +++ /dev/null @@ -1,41 +0,0 @@ -# Building Docker Images for Mintlayer - -This document outlines the steps to build Docker images for the Mintlayer node daemon, wallet-cli, and wallet-gui. - -Before building make sure you clone the repository and change directory in the root of the repository. - - -## Building the Node Daemon Docker Image - -To build the Docker image for the node daemon, follow these steps: - -```bash -docker build -f docker/Dockerfile.node-daemon -t node-daemon . -``` - - -## Building the Wallet-CLI Docker Image - -To build the Docker image for the wallet-cli, follow these steps: - -```bash -docker build -f docker/Dockerfile.wallet-cli -t wallet-cli . -``` - - -## Building the Wallet-GUI Docker Image - -To build the Docker image for the wallet-gui, follow these steps: - -```bash -docker build -f docker/Dockerfile.wallet-gui -t wallet-gui . -``` - - -## Verify the builds - -Once the build process finishes, you can verify the image was created successfully by running: - -```bash -docker images -``` diff --git a/docker/Dockerfile.node-daemon b/docker/Dockerfile.node-daemon deleted file mode 100644 index 63c7754d1f..0000000000 --- a/docker/Dockerfile.node-daemon +++ /dev/null @@ -1,21 +0,0 @@ -# Build Stage -FROM rust AS builder - -WORKDIR /usr/src/node-daemon - -COPY . . - -RUN cargo build --release -j1 - -# Runtime Stage -FROM debian:latest - -COPY --from=builder /usr/src/node-daemon/target/release/node-daemon /usr/bin/node-daemon - -# Node daemon listens on ports 3030 and 13031 -EXPOSE 3030 13031 - -# Define mintlayer directory as a volume -VOLUME ["/root/.mintlayer"] - -CMD ["node-daemon"] diff --git a/docker/Dockerfile.wallet-cli b/docker/Dockerfile.wallet-cli deleted file mode 100644 index 002fe45732..0000000000 --- a/docker/Dockerfile.wallet-cli +++ /dev/null @@ -1,17 +0,0 @@ -# Build Stage -FROM rust AS builder - -WORKDIR /usr/src/wallet-cli - -COPY . . - -RUN cargo build --release -j1 - -# Runtime Stage -FROM debian:latest - -RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* - -COPY --from=builder /usr/src/wallet-cli/target/release/wallet-cli /usr/bin/wallet-cli - -CMD ["wallet-cli"] diff --git a/docker/Dockerfile.wallet-gui b/docker/Dockerfile.wallet-gui deleted file mode 100644 index e338dafe15..0000000000 --- a/docker/Dockerfile.wallet-gui +++ /dev/null @@ -1,19 +0,0 @@ -# Build Stage -FROM rust AS builder - -WORKDIR /usr/src/wallet-gui - -COPY . . - -RUN cargo build --release -j1 - -# Runtime Stage -FROM debian:latest - -# Install any necessary dependencies for your GUI (such as X11, GTK, etc.) -# Replace libgtk-3-0 with the appropriate dependencies for your application -RUN apt-get update && apt-get install -y ca-certificates libgtk-3-0 && rm -rf /var/lib/apt/lists/* - -COPY --from=builder /usr/src/wallet-gui/target/release/wallet-gui /usr/bin/wallet-gui - -CMD ["wallet-gui"] diff --git a/docker/README.md b/docker/README.md deleted file mode 100644 index 1773a672a9..0000000000 --- a/docker/README.md +++ /dev/null @@ -1,62 +0,0 @@ -# Mintlayer Node-Daemon and Wallet-CLI Docker Deployment - -This guide will cover how to use Docker to deploy and run the Mintlayer `node-daemon` and `wallet-cli`. - -## Prerequisites - -You need to have Docker installed on your system. For Docker installation guide, please visit [official Docker documentation](https://docs.docker.com/get-docker/). - -## Mintlayer Node-Daemon - -First, let's pull the docker image for `node-daemon`: - -```bash -docker pull mintlayer/node-daemon:latest -``` - -Create a network for the containers to communicate: - -```bash -docker network create mintlayer-net -``` - -To run the `node-daemon` detached and on the testnet network: - -```bash -docker run -d -p 3030:3030 -p 13031:13031 --network=mintlayer-net --name mintlayer_node_daemon -v ~/.mintlayer:/root/.mintlayer mintlayer/node-daemon:latest node-daemon testnet --http-rpc-addr 0.0.0.0:3030 -``` - -The `-v` option is used to mount a local directory (in this case `~/.mintlayer`) as a volume in the Docker container. - -If you want to display logs you can pass the `-e RUST_LOG=info` argument, such as: - -```bash -docker run -p 3030:3030 -p 13031:13031 -v ~/.mintlayer:/root/.mintlayer -e RUST_LOG=info mintlayer/node-daemon:latest node-daemon testnet -``` - -## Mintlayer Wallet-CLI - -Pull the docker image for `wallet-cli`: - -```bash -docker pull mintlayer/wallet-cli:latest -``` - -Before running `wallet-cli`, ensure that the `node-daemon` container is running, as it generates the `.cookie` file required by wallet-cli, then find the IP address of the node: - -```bash -docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aqf "name=mintlayer_node_daemon") -``` - -this will display the IP address of your node in the `mintlayer-net` - -To run `wallet-cli` with the RPC cookie file: - -```bash -docker run -it --network=mintlayer-net -v ~/.mintlayer:/root/.mintlayer mintlayer/wallet-cli:latest wallet-cli --rpc-cookie-file /root/.mintlayer//.cookie --rpc-address :3030 -``` - -replace `` with `mainnet` or `testnet` depending on what network you're running and `` with the result of the command above. - -This command mounts the same `~/.mintlayer` directory as a volume in the `wallet-cli` container and uses the `--rpc-cookie-file` option to specify the path to the cookie file. -