Skip to content

Commit

Permalink
merging
Browse files Browse the repository at this point in the history
  • Loading branch information
neonwatty committed Nov 7, 2024
1 parent 3f5199f commit 8682f71
Show file tree
Hide file tree
Showing 48 changed files with 20 additions and 214 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/standard-app-build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 'DockerBuild'
name: "DockerBuild"

on:
push:
tags:
- 'v*'
- "v*"

jobs:
Build_And_Push:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -49,8 +49,8 @@ jobs:
- name: Build and Upload for AMD64 and ARM64
uses: docker/build-push-action@v4
with:
context: .
context: ./meme_search/
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
**/.DS_Store
**/*.db
**/*.pyc
data
meme_search_pro/db_data
12 changes: 6 additions & 6 deletions docker-compose-pro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ services:
depends_on:
meme-search-db:
condition: service_healthy
volumes:
- ./memes/:/rails/public/memes
volumes: # <-- any additional meme directory must be mounted here
- ./meme_search_pro/memes/:/rails/public/memes

image_to_text_generator:
image: ghcr.io/neonwatty/image-to-text-generator:latest
container_name: image_to_text_generator
ports:
- 8000:8000
volumes:
- ./memes/:/app/public/memes
- ./data/image_to_text_app:/app/db
volumes: # <-- any additional meme directory must be mounted here
- ./meme_search_pro/memes/:/app/public/memes
- ./meme_search_pro/db_data/image_to_text_generator:/app/db
deploy:
resources:
limits: # <-- roughly tested min memory for cpu usage
Expand All @@ -36,7 +36,7 @@ services:
image: pgvector/pgvector:pg17
container_name: meme-search-pro-db # note: must use - and not _ as ActiveRecord uses URI::RFC2396_Parser to parse database URLs
volumes:
- ./data/meme-search-pro-db:/var/lib/postgresql/data
- ./meme_search_pro/db_data/meme-search-pro-db:/var/lib/postgresql/data
environment:
POSTGRES_DB: meme_search
POSTGRES_USER: postgres
Expand Down
4 changes: 2 additions & 2 deletions streamlit_app/docker-compose.yml → docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ version: "3.8"

services:
meme_search:
image: ghcr.io/neonwatty/meme-search:streamlit
image: ghcr.io/neonwatty/meme-search:latest
container_name: meme_search
ports:
- 8501:8501
volumes:
- ./data:/home/data
- ./meme_search/data:/home/data
## uncomment to enable GPU support for the container
# deploy:
# resources:
Expand Down
4 changes: 3 additions & 1 deletion streamlit_app/.gitignore → meme_search/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.DS_Store
._.DS_Store
**/.DS_Store

**/._.DS_Store
**/.env*
scratch.ipynb
bug_reports/
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions streamlit_app/Dockerfile → meme_search/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y \

WORKDIR /home

COPY requirements.txt .
COPY ./meme_search/requirements.txt .

RUN pip3 install --no-cache-dir -r requirements.txt

Expand All @@ -22,8 +22,8 @@ WORKDIR /home

COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
COPY --from=builder /usr/local/bin /usr/local/bin
COPY meme_search /home/meme_search
COPY .streamlit /home/.streamlit
COPY ./meme_search/meme_search_app /home/meme_search
COPY ./meme_search/.streamlit /home/.streamlit

EXPOSE 8501

Expand Down
Binary file added meme_search/data/dbs/memes.faiss
Binary file not shown.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added meme_search/data/input/test_meme_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added meme_search/data/input/test_meme_7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added meme_search/data/input/test_meme_8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added meme_search_pro/memes/example_memes_2/no.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
7 changes: 0 additions & 7 deletions streamlit_app/tests/__init__.py

This file was deleted.

26 changes: 0 additions & 26 deletions streamlit_app/tests/test_app.py

This file was deleted.

38 changes: 0 additions & 38 deletions streamlit_app/tests/test_compose.py

This file was deleted.

16 changes: 0 additions & 16 deletions streamlit_app/tests/utilities/__init__.py

This file was deleted.

75 changes: 0 additions & 75 deletions streamlit_app/tests/utilities/test_add_remove.py

This file was deleted.

Binary file removed streamlit_app/tests/utilities/test_dbs/memes.faiss
Binary file not shown.
Empty file.
20 changes: 0 additions & 20 deletions streamlit_app/tests/utilities/test_imgs.py

This file was deleted.

14 changes: 0 additions & 14 deletions streamlit_app/tests/utilities/test_query.py

This file was deleted.

0 comments on commit 8682f71

Please sign in to comment.