From 724760adc162989785125c182f9965fc3b312d00 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 6 Apr 2024 05:41:39 -0400 Subject: [PATCH 1/3] Remove use of XDG_RUNTIME_DIR, does not exist on Mac Signed-off-by: Daniel J Walsh --- recipes/natural_language_processing/summarizer/bootc/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/natural_language_processing/summarizer/bootc/README.md b/recipes/natural_language_processing/summarizer/bootc/README.md index ab98c25c..875602ca 100644 --- a/recipes/natural_language_processing/summarizer/bootc/README.md +++ b/recipes/natural_language_processing/summarizer/bootc/README.md @@ -23,9 +23,10 @@ cd recipes/natural_language_processing/chatbot # commands within the container build. If the registry you are pulling images # from requires authentication, then you will need to volume mount the # auth_json file with SELinux separation disabled. +podman login --auth-file auth.json quay.io/yourrepo podman build --build-arg "sshpubkey=$(cat ~/.ssh/id_rsa.pub)" \ --security-opt label=disable \ - -v ${XDG_RUNTIME_DIR}/containers/auth.json:/run/containers/0/auth.json \ + -v ./auth.json:/run/containers/0/auth.json \ --cap-add SYS_ADMIN \ -t quay.io/yourrepo/youros:tag . From 8aa40abed204e85ca63f9171029e441a0cd0bea4 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 6 Apr 2024 05:43:24 -0400 Subject: [PATCH 2/3] Document handling of quadlet files correctly Signed-off-by: Daniel J Walsh --- .../chatbot/quadlet/README.md | 7 +++---- .../natural_language_processing/rag/quadlet/README.md | 7 +++---- .../summarizer/quadlet/README.md | 11 +++++------ 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/recipes/natural_language_processing/chatbot/quadlet/README.md b/recipes/natural_language_processing/chatbot/quadlet/README.md index 86e63337..26fffec6 100644 --- a/recipes/natural_language_processing/chatbot/quadlet/README.md +++ b/recipes/natural_language_processing/chatbot/quadlet/README.md @@ -1,10 +1,9 @@ ### Run chatbot as a systemd service ```bash -sudo cp chatbot.yaml /usr/share/containers/systemd/chatbot.yaml -sudo cp chatbot.kube /usr/share/containers/chatbot.kube -sudo cp chatbot.image /usr/share/containers/chatbot.image -sudo /usr/libexec/podman/quadlet --dryrun (optional) +(cd ../;make quadlet) +sudo cp ../build/chatbot.yaml ../build/chatbot.kube ../build/chatbot.image /usr/share/containers/systemd/ +sudo /usr/libexec/podman/quadlet --dryrun #optional sudo systemctl daemon-reload sudo systemctl start chatbot ``` diff --git a/recipes/natural_language_processing/rag/quadlet/README.md b/recipes/natural_language_processing/rag/quadlet/README.md index e99caf61..1d59de2b 100644 --- a/recipes/natural_language_processing/rag/quadlet/README.md +++ b/recipes/natural_language_processing/rag/quadlet/README.md @@ -1,10 +1,9 @@ ### Run rag as a systemd service ```bash -sudo cp rag.yaml /usr/share/containers/systemd/rag.yaml -sudo cp rag.kube /usr/share/containers/rag.kube -sudo cp rag.image /usr/share/containers/rag.image -sudo /usr/libexec/podman/quadlet --dryrun (optional) +(cd ../;make quadlet) +sudo cp ../build/rag.yaml ../build/rag.kube ../build/rag.image /usr/share/containers/systemd/ +sudo /usr/libexec/podman/quadlet --dryrun #optional sudo systemctl daemon-reload sudo systemctl start rag ``` diff --git a/recipes/natural_language_processing/summarizer/quadlet/README.md b/recipes/natural_language_processing/summarizer/quadlet/README.md index 49fe11f4..78c57ad4 100644 --- a/recipes/natural_language_processing/summarizer/quadlet/README.md +++ b/recipes/natural_language_processing/summarizer/quadlet/README.md @@ -1,10 +1,9 @@ ### Run summarizer as a systemd service ```bash -cp ../build/summarizer.yaml /etc/containers/systemd/summarizer.yaml -cp ../build/summarizer.kube /etc/containers/summarizer.kube -cp ../build/summarizer.image /etc/containers/summarizer.image -/usr/libexec/podman/quadlet --dryrun (optional) -systemctl daemon-reload -systemctl start summarizer +(cd ../;make quadlet) +sudo cp ../build/summarizer.yaml ../build/summarizer.kube ../build/summarizer.image /usr/share/containers/systemd/ +sudo /usr/libexec/podman/quadlet --dryrun #optional +sudo systemctl daemon-reload +sudo systemctl start summarizer ``` From 1ea46a71dca7eec3a129d5b692d962c3d4eb8c71 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 6 Apr 2024 05:44:41 -0400 Subject: [PATCH 3/3] Fix codespell typos Signed-off-by: Daniel J Walsh --- recipes/audio/audio_to_text/quadlet/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/audio/audio_to_text/quadlet/README.md b/recipes/audio/audio_to_text/quadlet/README.md index 2bebaef4..0def24c4 100644 --- a/recipes/audio/audio_to_text/quadlet/README.md +++ b/recipes/audio/audio_to_text/quadlet/README.md @@ -16,7 +16,7 @@ podman ps podman logs ``` -The application should be acessible at `http://localhost:8501`. It will take a few minutes for the model to load. +The application should be accessible at `http://localhost:8501`. It will take a few minutes for the model to load. ### Run audio-text as a systemd service