Skip to content

ZKWAS-553: docker build and release to hub #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: feature/NewZkwasm2025
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM nvidia/cuda:12.2.0-devel-ubuntu22.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
# Install required packages and setup ssh access
RUN apt-get update && apt-get install -y --no-install-recommends openssh-server sudo cmake curl build-essential git wget && rm -rf /var/lib/apt/lists/* \
&& sudo apt update -y && sudo apt install -y apache2-utils \
&& mkdir /var/run/sshd \
&& /etc/init.d/ssh start \
&& useradd -rm -d /home/zkwasm -s /bin/bash -g root -G sudo -u 1001 zkwasm \
&& echo 'zkwasm:zkwasm' | chpasswd \
&& echo 'zkwasm ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers

# Switch to the zkwasm user for subsequent commands
USER zkwasm

WORKDIR /home/zkwasm

RUN mkdir prover-node-release

# Copy the tarball into the container
COPY prover_node_Ubuntu2204.tar.gz /home/zkwasm/prover-node-release

WORKDIR /home/zkwasm/prover-node-release
# Unpack tarball
RUN tar -xzvf prover_node_Ubuntu2204.tar.gz

# Create prover log folder
RUN mkdir logs && \
mkdir logs/prover

# Command overriden by docker-compose
CMD ["true"]
3 changes: 3 additions & 0 deletions build_image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# TODO: tag with version
DOCKER_BUILDKIT=0 docker build --rm --network=host -t prover-node-dev:latest .
Binary file removed prover_node_Ubuntu2204.tar
Binary file not shown.
Binary file added prover_node_Ubuntu2204.tar.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions push_dockerhub.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker login -u <username> -p <password>
# Push the docker image to dockerhub
docker push rhaoio/prover-node-dev:latest