This repository was archived by the owner on Mar 2, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
38 lines (27 loc) · 1.57 KB
/
dockerfile
File metadata and controls
38 lines (27 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM ghcr.io/selkies-project/nvidia-glx-desktop AS build_base
USER root
# Do updates
RUN apt update && apt -y upgrade
WORKDIR /postcli
# Install some dependencies
RUN apt install -y wget unzip ocl-icd-opencl-dev libnvidia-compute-470-server && apt autoremove
# TODO: Ingest branch name from docker-compose.yml file
# ARG BRANCH_NAME
# Fetch the config file
# ADD ./get_config.sh /spacemesh/get_config.sh
# RUN sh /spacemesh/get_config.sh && rm /spacemesh/get_config.sh
# Download the precompiled binary package from git instead of compiling our own - set it as executible
ADD https://github.com/spacemeshos/post/releases/download/v0.8.10/postcli-Linux.zip /postcli/postcli-Linux.zip
RUN unzip -j "postcli-Linux.zip" && rm postcli-Linux.zip
RUN chmod +x postcli
# Now we make the final node, discarding all of the other stuff we installed during setup
# FROM ubuntu AS postbuilder
# USER root
# WORKDIR /spacemesh
# Copy over the files and config
# COPY --from=build_base /spacemesh/* ./
# Start the node
# TODO: Decouple the node data so it persists? Need to figure out where the node identity and POST data lives to test this.
# Note: This will run but you need to expose ports 7513 and 9092. Example run command: `docker run -p 7513:7513/tcp -p 9092:9092/tcp`
# Note: I have put my own rewards address here for convenience during testing, put yours in to use your own wallet or configure it while it's running with smrepl
ENTRYPOINT [ "/bin/bash", "-c", "./postcli -commitmentAtxId=9eebff023abb17ccb775c602daade8ed708f0a50d3149a42801184f5b74f2865 -datadir /home/user/post -numUnits 4 -provider=0" ]