clean up containers
Browse files- .gitattributes +1 -0
- build_cudabuild.sh +5 -0
- build_diffusion.sh +2 -2
- build_slim.sh +4 -26
- build_slimz.sh +1 -1
- cudabuild/Dockerfile +15 -0
- diffusion/Dockerfile +0 -4
- server.tar.xz +0 -3
- llama-server → slim.tar.xz +2 -2
- slim/Dockerfile +0 -11
- slimz/Dockerfile +0 -2
.gitattributes
CHANGED
@@ -42,3 +42,4 @@ llama-server-static filter=lfs diff=lfs merge=lfs -text
|
|
42 |
arco_BE8.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
slimz.tar.xz filter=lfs diff=lfs merge=lfs -text
|
44 |
llama-server-static-z filter=lfs diff=lfs merge=lfs -text
|
|
|
|
42 |
arco_BE8.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
slimz.tar.xz filter=lfs diff=lfs merge=lfs -text
|
44 |
llama-server-static-z filter=lfs diff=lfs merge=lfs -text
|
45 |
+
slim.tar.xz filter=lfs diff=lfs merge=lfs -text
|
build_cudabuild.sh
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
podman build --squash-all --tag bookworm:cudabuild cudabuild
|
2 |
+
#podman image prune -f
|
3 |
+
#podman save localhost/bookworm:diffusion >test.tar
|
4 |
+
#time xz -9e -T0 test.tar
|
5 |
+
|
build_diffusion.sh
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
podman build --squash-all --tag bookworm:diffusion diffusion
|
2 |
-
podman image prune -f
|
3 |
-
podman save localhost/bookworm:diffusion >test.tar
|
4 |
#time xz -9e -T0 test.tar
|
5 |
|
|
|
1 |
podman build --squash-all --tag bookworm:diffusion diffusion
|
2 |
+
#podman image prune -f
|
3 |
+
#podman save localhost/bookworm:diffusion >test.tar
|
4 |
#time xz -9e -T0 test.tar
|
5 |
|
build_slim.sh
CHANGED
@@ -1,28 +1,6 @@
|
|
1 |
-
|
2 |
-
cp /lib/x86_64-linux-gnu/libgomp.so.1 slim/
|
3 |
-
cp /lib/x86_64-linux-gnu/libcurl.so.4 slim/
|
4 |
-
cp /lib/x86_64-linux-gnu/libnghttp2.so.14 slim/
|
5 |
-
cp /lib/x86_64-linux-gnu/librtmp.so.1 slim/
|
6 |
-
cp /lib/x86_64-linux-gnu/libssh2.so.1 slim/
|
7 |
-
cp /lib/x86_64-linux-gnu/libpsl.so.5 slim/
|
8 |
-
cp /lib/x86_64-linux-gnu/libssl.so.3 slim/
|
9 |
-
cp /lib/x86_64-linux-gnu/libcrypto.so.3 slim/
|
10 |
-
cp /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 slim/
|
11 |
-
cp /lib/x86_64-linux-gnu/libldap-2.5.so.0 slim/
|
12 |
-
cp /lib/x86_64-linux-gnu/liblber-2.5.so.0 slim/
|
13 |
-
cp /lib/x86_64-linux-gnu/libbrotlidec.so.1 slim/
|
14 |
-
cp /lib/x86_64-linux-gnu/libkrb5.so.3 slim/
|
15 |
-
cp /lib/x86_64-linux-gnu/libk5crypto.so.3 slim/
|
16 |
-
cp /lib/x86_64-linux-gnu/libkrb5support.so.0 slim/
|
17 |
-
cp /lib/x86_64-linux-gnu/libsasl2.so.2 slim/
|
18 |
-
cp /lib/x86_64-linux-gnu/libbrotlicommon.so.1 slim/
|
19 |
-
cp /lib/x86_64-linux-gnu/libkeyutils.so.1 slim/
|
20 |
-
|
21 |
-
podman build --squash-all --tag bookworm:server slim
|
22 |
podman image prune -f
|
23 |
-
podman save localhost/bookworm:
|
24 |
-
rm
|
25 |
-
time xz -6 -T0
|
26 |
-
rm slim/llama-server
|
27 |
-
rm slim/*.so.*
|
28 |
|
|
|
1 |
+
podman build --squash-all --tag bookworm:slim slim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
podman image prune -f
|
3 |
+
podman save localhost/bookworm:slim >slim.tar
|
4 |
+
rm slim.tar.xz
|
5 |
+
time xz -6 -T0 slim.tar
|
|
|
|
|
6 |
|
build_slimz.sh
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
podman build --squash-all --tag bookworm:slim
|
2 |
podman image prune -f
|
3 |
podman save localhost/bookworm:slim >slimz.tar
|
4 |
rm slimz.tar.xz
|
|
|
1 |
+
podman build --squash-all --tag bookworm:slim slim
|
2 |
podman image prune -f
|
3 |
podman save localhost/bookworm:slim >slimz.tar
|
4 |
rm slimz.tar.xz
|
cudabuild/Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM debian:bookworm-slim
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get upgrade
|
4 |
+
RUN apt-get -y install git git-lfs pip cmake python3 ccache wget
|
5 |
+
#RUN apt-get -y install cuda-toolkit-12-6
|
6 |
+
RUN wget https://developer.download.nvidia.com/compute/cuda/12.6.1/local_installers/cuda-repo-debian12-12-6-local_12.6.1-560.35.03-1_amd64.deb
|
7 |
+
|
8 |
+
RUN apt -y install software-properties-common
|
9 |
+
RUN add-apt-repository -y contrib
|
10 |
+
RUN dpkg -i cuda-repo-debian12-12-6-local_12.6.1-560.35.03-1_amd64.deb
|
11 |
+
RUN cp /var/cuda-repo-debian12-12-6-local/cuda-D6D196D1-keyring.gpg /usr/share/keyrings/
|
12 |
+
RUN dpkg -i cuda-repo-debian12-12-6-local_12.6.1-560.35.03-1_amd64.deb
|
13 |
+
#RUN apt-get -y install cuda-toolkit-12-6
|
14 |
+
|
15 |
+
CMD ["sleep", " infinity"]
|
diffusion/Dockerfile
CHANGED
@@ -1,6 +1,2 @@
|
|
1 |
FROM debian:bookworm-slim
|
2 |
-
|
3 |
-
RUN apt-get update && apt-get upgrade
|
4 |
-
RUN apt-get install -y git git-lfs pip cmake python3
|
5 |
-
|
6 |
CMD ["sleep", " infinity"]
|
|
|
1 |
FROM debian:bookworm-slim
|
|
|
|
|
|
|
|
|
2 |
CMD ["sleep", " infinity"]
|
server.tar.xz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:ba8a19a296fd275b376e96d0aa9cd4f5d4b7ff746467b1b232e0ac909f5a15dc
|
3 |
-
size 32443820
|
|
|
|
|
|
|
|
llama-server → slim.tar.xz
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:673b67d90a303b0eb489cdcf8db9f3ac291bf40ee7cfaedd7ede134b1c8af47c
|
3 |
+
size 17223116
|
slim/Dockerfile
CHANGED
@@ -1,13 +1,2 @@
|
|
1 |
FROM debian:bookworm-slim
|
2 |
-
#RUN apt-get update && apt-get upgrade
|
3 |
-
#RUN apt-get install -y git git-lfs pip cmake python3
|
4 |
-
|
5 |
-
#RUN git clone https://github.com/ggerganov/llama.cpp.git
|
6 |
-
#RUN cd llama.cpp && make -j 32 llama-server
|
7 |
-
#RUN cp llama.cpp/llama-server .
|
8 |
-
#RUN rm -rf llama.cpp/
|
9 |
-
|
10 |
-
COPY llama-server .
|
11 |
-
COPY lib*.so.* /lib/x86_64-linux-gnu/
|
12 |
-
|
13 |
CMD ["sleep", " infinity"]
|
|
|
1 |
FROM debian:bookworm-slim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
CMD ["sleep", " infinity"]
|
slimz/Dockerfile
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
FROM debian:bookworm-slim
|
2 |
-
CMD ["sleep", " infinity"]
|
|
|
|
|
|