Skip to content

Commit 366b5f3

Browse files
committed
feat: Backup and restore feature
Refs: #6
1 parent 4b1d2df commit 366b5f3

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build Images
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: "ghcr.io/amikos-tech/chromadb-chart/chroma"
10+
11+
jobs:
12+
build-images:
13+
strategy:
14+
matrix:
15+
chroma-version: [ 0.4.3, 0.4.4 ]
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Configure Git
24+
run: |
25+
git config user.name "$GITHUB_ACTOR"
26+
git config user.email "[email protected]"
27+
- name: Latest release
28+
run: |
29+
echo "Latest release: ${{ steps.releaser.outputs.chart_version }}"
30+
echo "Changed charts: ${{ steps.releaser.outputs.changed_charts }}"
31+
- name: Log in to the Container registry
32+
uses: docker/[email protected]
33+
with:
34+
registry: ${{ env.REGISTRY }}
35+
username: ${{ github.actor }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
37+
- name: Build and push release Docker image
38+
uses: docker/[email protected]
39+
with:
40+
context: .
41+
file: image/Dockerfile
42+
push: true
43+
build-args: |
44+
CHROMA_VERSION=${{ matrix.chroma-version }}
45+
tags: "${{ env.IMAGE_NAME }}:${{ matrix.chroma-version }}-dev"

image/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ RUN find /chroma -mindepth 1 -maxdepth 1 ! \( -name 'chromadb' -o -name 'LICENSE
1010
. /chroma/venv/bin/activate && \
1111
pip install --force-reinstall --no-cache-dir -r /chroma/requirements.txt && \
1212
chown -R chroma:chroma /chroma && \
13-
apt-get update -qq && apt-get install sqlite3
13+
apt-get update -qq && apt-get install sqlite3 -y && \
14+
echo 'chroma ALL=(ALL) NOPASSWD: /usr/sbin/fsfreeze' >> /etc/sudoers
1415
EXPOSE 8000
1516
USER chroma
1617
WORKDIR /chroma

0 commit comments

Comments
 (0)