-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create additional runner Dockerfile and separate from build
- Loading branch information
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Use an Ubuntu image or another suitable base image | ||
FROM quainetwork/quai-gpu-miner:v0.2.0 | ||
|
||
RUN ./deploy_miner.sh | ||
|
||
RUN wget https://repo.radeon.com/amdgpu-install/latest/ubuntu/focal/amdgpu-install_6.2.60202-1_all.deb && \ | ||
apt update && apt install -y \ | ||
./amdgpu-install_6.2.60202-1_all.deb \ | ||
cuda-drivers | ||
|
||
RUN amdgpu-install -y --accept-eula | ||
|
||
ENV PLATFORM="" | ||
ENV STRATUM_IP="" | ||
ENV STRATUM_PORT="" | ||
|
||
# Entrypoint is sh so it can accept the arguments | ||
ENTRYPOINT ["sh", "-c"] | ||
|
||
# CMD will construct the full command using the environment variables | ||
CMD ["./quai-gpu-miner/quai-gpu-miner/quai-gpu-miner -${PLATFORM} -P stratum://${STRATUM_IP}:${STRATUM_PORT}"] |