Skip to content

Commit

Permalink
feat: Backup and restore feature
Browse files Browse the repository at this point in the history
Refs: #6
  • Loading branch information
tazarov committed Aug 2, 2023
1 parent 4b1d2df commit 366b5f3
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/build-images-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Images

on:
push:
branches:
- develop
env:
REGISTRY: ghcr.io
IMAGE_NAME: "ghcr.io/amikos-tech/chromadb-chart/chroma"

jobs:
build-images:
strategy:
matrix:
chroma-version: [ 0.4.3, 0.4.4 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Latest release
run: |
echo "Latest release: ${{ steps.releaser.outputs.chart_version }}"
echo "Changed charts: ${{ steps.releaser.outputs.changed_charts }}"
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push release Docker image
uses: docker/[email protected]
with:
context: .
file: image/Dockerfile
push: true
build-args: |
CHROMA_VERSION=${{ matrix.chroma-version }}
tags: "${{ env.IMAGE_NAME }}:${{ matrix.chroma-version }}-dev"
3 changes: 2 additions & 1 deletion image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RUN find /chroma -mindepth 1 -maxdepth 1 ! \( -name 'chromadb' -o -name 'LICENSE
. /chroma/venv/bin/activate && \
pip install --force-reinstall --no-cache-dir -r /chroma/requirements.txt && \
chown -R chroma:chroma /chroma && \
apt-get update -qq && apt-get install sqlite3
apt-get update -qq && apt-get install sqlite3 -y && \
echo 'chroma ALL=(ALL) NOPASSWD: /usr/sbin/fsfreeze' >> /etc/sudoers
EXPOSE 8000
USER chroma
WORKDIR /chroma
Expand Down

0 comments on commit 366b5f3

Please sign in to comment.