Skip to content

Commit

Permalink
Merge pull request containers#156 from sallyom/update-rag-containerfile
Browse files Browse the repository at this point in the history
update rag containerfile
  • Loading branch information
rhatdan authored Apr 4, 2024
2 parents a03b4ea + 930a9e6 commit d0ca37a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ailab_image_build_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
packages: write

steps:
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/[email protected]
# required for multi-arch builds
- name: Install qemu dependency
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:
workflow_dispatch:
branches: [main]

permissions: write-all

jobs:
build:
runs-on: ubuntu-latest # windows-latest || macos-latest
Expand All @@ -23,6 +21,11 @@ jobs:
RAG_IMAGE: rag
CHROMADB_IMAGE: chromadb
steps:
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v4
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
Expand Down Expand Up @@ -127,8 +130,7 @@ jobs:
with:
image: ${{ env.RAG_IMAGE }}
tags: latest ${{ github.sha }}
# TODO: add amd64
platforms: linux/arm64
platforms: linux/arm64, linux/amd64
context: recipes/natural_language_processing/rag
containerfiles: |
./recipes/natural_language_processing/rag/builds/Containerfile
Expand Down
12 changes: 0 additions & 12 deletions recipes/natural_language_processing/rag/builds/Containerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
FROM registry.access.redhat.com/ubi9/python-311:1-52
### Update sqlite for chroma
USER root
RUN dnf remove sqlite3 -y
RUN wget https://www.sqlite.org/2023/sqlite-autoconf-3410200.tar.gz
RUN tar -xvzf sqlite-autoconf-3410200.tar.gz
WORKDIR sqlite-autoconf-3410200
RUN ./configure
RUN make
RUN make install
RUN mv /usr/local/bin/sqlite3 /usr/bin/sqlite3
ENV LD_LIBRARY_PATH="/usr/local/lib"
####
WORKDIR /rag
COPY builds/requirements.txt .
RUN pip install --upgrade pip
Expand Down

0 comments on commit d0ca37a

Please sign in to comment.