Skip to content

Commit

Permalink
Updates for building
Browse files Browse the repository at this point in the history
  • Loading branch information
krobertson committed Mar 31, 2024
1 parent fab056c commit 8438ade
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
13 changes: 9 additions & 4 deletions apps/chia-gigahorse-cudaplotter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
FROM debian:12-slim AS base

ARG TARGETPLATFORM
ARG VERSION
ARG CHANNEL

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
ocl-icd-libopencl1 tzdata \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /chia-cuda-plotter

COPY cuda_plot_k32_v3 .

CMD ["sleep", "infinity"]

RUN mkdir -p /etc/OpenCL/vendors && \
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility

CMD ["sleep", "infinity"]

COPY cuda_plot_k32_v3 .
4 changes: 4 additions & 0 deletions apps/chia-gigahorse-cudaplotter/ci/latest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
channel=$1
version=$(curl -sX GET "https://api.github.com/repos/madMAx43v3r/chia-gigahorse/releases" | jq --raw-output '.[0].tag_name' 2>/dev/null)
printf "%s" "${version}"
4 changes: 2 additions & 2 deletions apps/chia-gigahorse-cudaplotter/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
app: radarr
app: chia-gigahorse-cudaplotter
base: true
semantic_versioning: true
semantic_versioning: false
channels:
- name: master
platforms: ["linux/amd64"]
Expand Down

0 comments on commit 8438ade

Please sign in to comment.