mirror of
https://github.com/BillyOutlast/rocm-automated.git
synced 2026-02-04 03:51:19 +01:00
docker logic
This commit is contained in:
@@ -2,13 +2,12 @@ FROM docker.io/getterup/fedora-rocm7.1:latest
|
||||
# vim: filetype=dockerfile
|
||||
|
||||
# Copy built ollama binary and libraries from build output
|
||||
COPY ollama-build/ollama-build-output/bin/ollama /usr/bin/ollama
|
||||
COPY ollama-build/ollama-build-output/lib/ollama /usr/lib/ollama
|
||||
COPY ./ollama-build/ollama-build-output/bin/ollama /usr/bin/ollama
|
||||
COPY ./ollama-build/ollama-build-output/lib/ollama /usr/lib/ollama
|
||||
|
||||
# Set executable permissions
|
||||
RUN chmod +x /usr/bin/ollama
|
||||
|
||||
|
||||
# ROCm environment variables for runtime
|
||||
ENV ROCM_PATH=/opt/rocm \
|
||||
HIP_PATH=/opt/rocm \
|
||||
|
||||
4
build.sh
4
build.sh
@@ -83,8 +83,8 @@ else
|
||||
print_error "Failed to build Ollama binary"
|
||||
exit 1
|
||||
fi
|
||||
echo -e "${YELLOW}Command: podman build -t ${OLLAMA_IMAGE}:latest -f ${Dockerfiles_DIR}/Dockerfile.ollama-rocm-7.1${NC}"
|
||||
if podman build -t "${OLLAMA_IMAGE}:latest" -f "${Dockerfiles_DIR}/Dockerfile.ollama-rocm-7.1"; then
|
||||
echo -e "${YELLOW}Command: podman build -t ${OLLAMA_IMAGE}:latest -f ${Dockerfiles_DIR}/Dockerfile.ollama-rocm-7.1 .${NC}"
|
||||
if podman build -t "${OLLAMA_IMAGE}:latest" -f "${Dockerfiles_DIR}/Dockerfile.ollama-rocm-7.1" .; then
|
||||
print_success "Ollama ROCm 7.1 image built successfully"
|
||||
else
|
||||
print_error "Failed to build Ollama ROCm 7.1 image"
|
||||
|
||||
Reference in New Issue
Block a user