Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# Git
.git
.gitignore
.github/

# IDE
.idea
Expand All @@ -30,3 +31,20 @@ Thumbs.db
**/coverage
**/.pytest_cache
**/.mypy_cache

# Directories not needed in Docker build context
hindsight-docs/
hindsight-cli/
hindsight-dev/
hindsight/
hindsight-embed/
hindsight-integration-tests/
helm/
cookbook/
monitoring/
scripts/
.env
.env.*

# Keep: hindsight-api/, hindsight-clients/typescript/, hindsight-control-plane/,
# package.json, package-lock.json, docker/
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,10 @@ jobs:
include:
- target: api-only
name: api-slim
build_args: |
INCLUDE_LOCAL_MODELS=false
PRELOAD_ML_MODELS=false
smoke_cmd: "import hindsight_api; import tiktoken; print('OK')"
- target: standalone
name: standalone-slim
build_args: |
INCLUDE_LOCAL_MODELS=false
PRELOAD_ML_MODELS=false
smoke_cmd: "import hindsight_api; import tiktoken; print('OK')"

steps:
- uses: actions/checkout@v4
Expand All @@ -135,7 +131,12 @@ jobs:
context: .
file: docker/standalone/Dockerfile
target: ${{ matrix.target }}
build-args: ${{ matrix.build_args }}
push: false
load: false
load: true
tags: hindsight-${{ matrix.name }}:test

- name: Smoke test ${{ matrix.name }}
run: docker run --rm --entrypoint python hindsight-${{ matrix.name }}:test -c "${{ matrix.smoke_cmd }}"

- name: Show image size
run: docker images hindsight-${{ matrix.name }}:test --format "{{.Repository}}:{{.Tag}} {{.Size}}"
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ jobs:
context: .
file: docker/standalone/Dockerfile
target: ${{ matrix.target }}
build-args: |
INCLUDE_LOCAL_MODELS=false
PRELOAD_ML_MODELS=false
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
Expand Down
Loading