-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrading fabric to go version
- Loading branch information
Showing
8 changed files
with
33 additions
and
979 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
services: | ||
fabric: | ||
container_name: ${HARBOR_CONTAINER_PREFIX}.fabric | ||
env_file: ./.env | ||
env_file: | ||
- ./.env | ||
- ./fabric/override.env | ||
build: | ||
context: ./fabric | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ${HARBOR_FABRIC_CONFIG_PATH}:/root/.config/fabric | ||
- ./fabric/utils.py:/root/.local/share/pipx/venvs/fabric/lib/python3.11/site-packages/installer/client/cli/utils.py | ||
networks: | ||
- harbor-network |
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
services: | ||
fabric: | ||
entrypoint: | ||
- "bash" | ||
- "/app/fabric/start_fabric.sh" | ||
- "-m" | ||
- "${HARBOR_FABRIC_MODEL}" | ||
- "--remoteOllamaServer" | ||
- "${HARBOR_OLLAMA_INTERNAL_URL}" | ||
environment: | ||
- DEFAULT_VENDOR=Ollama | ||
- DEFAULT_MODEL=${HARBOR_FABRIC_MODEL} | ||
- OLLAMA_API_URL=${HARBOR_OLLAMA_INTERNAL_URL} | ||
|
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 |
---|---|---|
@@ -1,20 +1,7 @@ | ||
FROM pkgxdev/pkgx | ||
FROM golang:1.23.1 | ||
|
||
WORKDIR /app | ||
RUN go install github.com/danielmiessler/fabric@latest | ||
|
||
# pkgx install && warm up | ||
RUN pkgx install git pipx python ffmpeg | ||
RUN python --version && pipx --version && ffmpeg -version | ||
|
||
RUN git clone https://github.com/danielmiessler/fabric.git | ||
RUN echo 'export LD_LIBRARY_PATH=$(find / -name "*.so" -exec dirname {} \; | sort -u | tr "\n" ":" | sed '\''s/:$//'\'')"${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"' >> ~/.bashrc | ||
|
||
WORKDIR /app/fabric | ||
|
||
RUN pipx install . | ||
RUN fabric --help | ||
|
||
COPY start_fabric.sh /app/fabric/start_fabric.sh | ||
|
||
ENTRYPOINT ["bash", "/app/fabric/start_fabric.sh"] | ||
ENTRYPOINT [ "fabric" ] | ||
|
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,2 @@ | ||
# This file can be used for additional environment variables | ||
# specifically for the fabric service. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.