Skip to content

Commit ffd90fa

Browse files
authored
Update docker docs (#816)
1 parent 2193773 commit ffd90fa

File tree

4 files changed

+27
-11
lines changed

4 files changed

+27
-11
lines changed

KernelMemory.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{CA49F1A1
119119
tools\search.sh = tools\search.sh
120120
tools\upload-file.sh = tools\upload-file.sh
121121
tools\run-s3ninja.sh = tools\run-s3ninja.sh
122+
tools\dockerize-amd64.sh = tools\dockerize-amd64.sh
123+
tools\dockerize-arm64.sh = tools\dockerize-arm64.sh
122124
EndProjectSection
123125
EndProject
124126
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Abstractions", "service\Abstractions\Abstractions.csproj", "{8A9FA587-7EBA-4D43-BE47-38D798B1C74C}"

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ to **start the Kernel Memory Service** using OpenAI:
186186
docker run -e OPENAI_API_KEY="..." -it --rm -p 9001:9001 kernelmemory/service
187187
```
188188
189+
on Linux ARM/MacOS
190+
191+
```shell
192+
docker run -e OPENAI_API_KEY="..." -it --rm -p 9001:9001 kernelmemory/service:latest-arm64
193+
```
194+
189195
If you prefer using custom settings and services such as Azure OpenAI, Azure
190196
Document Intelligence, etc., you should create an `appsettings.Development.json`
191197
file overriding the default values set in `appsettings.json`, or using the
@@ -201,10 +207,14 @@ on Windows:
201207
202208
docker run --volume .\appsettings.Development.json:/app/appsettings.Production.json -it --rm -p 9001:9001 kernelmemory/service
203209
204-
on macOS/Linux:
210+
on Linux (AMD64):
205211
206212
docker run --volume ./appsettings.Development.json:/app/appsettings.Production.json -it --rm -p 9001:9001 kernelmemory/service
207213
214+
on ARM64 / macOS:
215+
216+
docker run --volume ./appsettings.Development.json:/app/appsettings.Production.json -it --rm -p 9001:9001 kernelmemory/service:latest-arm64
217+
208218
# Import files using KM web service and `MemoryWebClient`
209219
210220
> ```csharp

tools/dockerize-amd64.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/"
6-
cd "$HERE"
6+
cd "$HERE/.."
77

88
USR=kernelmemory
99
IMG=${USR}/service
@@ -14,9 +14,9 @@ docker rmi ${IMG}${TAG} >/dev/null 2>&1
1414
set -e
1515

1616
if [ -z "$(docker images -q ${IMG}${TAG})" ]; then
17-
echo "All ${IMG}${TAG} images have been deleted."
17+
echo "All ${IMG}${TAG} local images have been deleted."
1818
else
19-
echo "Some ${IMG}${TAG} images are still present:"
19+
echo "Some ${IMG}${TAG} local images are still present:"
2020
docker images ${IMG}${TAG}
2121
exit -1
2222
fi
@@ -28,6 +28,8 @@ docker buildx build --no-cache --load \
2828
--build-arg RUN_IMAGE_TAG=8.0-alpine-amd64 \
2929
-t ${IMG}${TAG} .
3030

31-
docker login -u ${USR} --password-stdin
31+
echo "Signing in as ${USR}..."
32+
docker login -u ${USR}
3233

33-
docker push ${IMG}${TAG}
34+
echo "Pushing ${IMG}${TAG}..."
35+
docker push "${IMG}${TAG}"

tools/dockerize-arm64.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/"
6-
cd "$HERE"
6+
cd "$HERE/.."
77

88
USR=kernelmemory
99
IMG=${USR}/service
@@ -14,9 +14,9 @@ docker rmi ${IMG}${TAG} >/dev/null 2>&1
1414
set -e
1515

1616
if [ -z "$(docker images -q ${IMG}${TAG})" ]; then
17-
echo "All ${IMG}${TAG} images have been deleted."
17+
echo "All ${IMG}${TAG} local images have been deleted."
1818
else
19-
echo "Some ${IMG}${TAG} images are still present:"
19+
echo "Some ${IMG}${TAG} local images are still present:"
2020
docker images ${IMG}${TAG}
2121
exit -1
2222
fi
@@ -28,6 +28,8 @@ docker buildx build --no-cache --load \
2828
--build-arg RUN_IMAGE_TAG=8.0-alpine-arm64v8 \
2929
-t ${IMG}${TAG} .
3030

31-
docker login -u ${USR} --password-stdin
31+
echo "Signing in as ${USR}..."
32+
docker login -u ${USR}
3233

33-
docker push ${IMG}${TAG}
34+
echo "Pushing ${IMG}${TAG}..."
35+
docker push "${IMG}${TAG}"

0 commit comments

Comments
 (0)