Skip to content

Commit

Permalink
Merge pull request #4 from RyoJerryYu/fix-build-error
Browse files Browse the repository at this point in the history
fix: build docker error
  • Loading branch information
RyoJerryYu authored Jun 10, 2024
2 parents a6e88f4 + 99f010a commit c9d1412
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt

COPY main.py /app/
COPY proto/gen /app/proto/gen
COPY src /app/src
COPY memos_webhook /app/memos_webhook

# Make port 8000 available to the environment outside this container
EXPOSE 8000
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ update_deps:
@./proto/update_deps.sh

run:
@./run.sh
@./tests/run.sh

freeze:
@pip freeze > requirements.txt
Expand Down
1 change: 0 additions & 1 deletion run.sh

This file was deleted.

1 change: 1 addition & 0 deletions tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.download
13 changes: 5 additions & 8 deletions docker_compose.yaml → tests/docker_compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@ version: "3.0"
services:
memos:
networks:
- memos
- memos_webhook_test
image: neosmemo/memos:0.22.1
container_name: memos
ports:
- 5230:5230
- 5240:5230
webhook:
image: ghcr.io/ryojerryyu/memos-webhook-py:test
networks:
- memos
- memos_webhook_test
build:
context: .
context: ..
dockerfile: Dockerfile
container_name: webhook
environment:
- LOG_LEVEL=debug
- MEMOS_HOST=memos
Expand All @@ -24,4 +21,4 @@ services:
- ./.download:/app/download

networks:
memos:
memos_webhook_test:
1 change: 1 addition & 0 deletions tests/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker-compose -f tests/docker_compose.yaml up -d

0 comments on commit c9d1412

Please sign in to comment.