generated from szaimen/aio-fail2ban
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add aio-local-ai-cuda12 image based on local-ai nvidia-cuda12 docker …
…image
- Loading branch information
Showing
7 changed files
with
173 additions
and
5 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
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 @@ | ||
.idea | ||
|
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,18 @@ | ||
# From https://github.com/mudler/LocalAI/blob/master/Dockerfile | ||
FROM quay.io/go-skynet/local-ai:v2.24.2-aio-gpu-nvidia-cuda-12 | ||
|
||
COPY --chmod=775 start.sh /start.sh | ||
|
||
# hadolint ignore=DL3008 | ||
RUN set -ex; \ | ||
\ | ||
export DEBIAN_FRONTEND=noninteractive; \ | ||
apt-get update; \ | ||
apt-get install -y --no-install-recommends \ | ||
netcat-openbsd \ | ||
; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# hadolint ignore=DL3002 | ||
USER root | ||
ENTRYPOINT [ "/start.sh" ] |
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,20 @@ | ||
# a quick way to build and run the docker image | ||
services: | ||
cpu: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
image: szaimen/aio-local-ai:v2 | ||
|
||
cuda12: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.cuda12 | ||
image: szaimen/aio-local-ai-cuda12:v2 | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
count: 1 | ||
capabilities: [gpu] |
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