Skip to content

Commit

Permalink
Krzysztofwrobel/sc 25659/fix broken images in pypi nameguard readme (#…
Browse files Browse the repository at this point in the history
…444)

* rename workflow files

* move Docker to apps
  • Loading branch information
djstrong authored Oct 21, 2024
1 parent 57e7ea2 commit d3907d2
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ repos:
hooks:
- id: ruff
args: [ --fix ]
files: '^api/.*\.py'
files: '^packages/nameguard-python/.*\.py'
- id: ruff-format
files: '^api/.*\.py'
files: '^packages/nameguard-python/.*\.py'
File renamed without changes.
13 changes: 13 additions & 0 deletions apps/api.nameguard.io/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM --platform=linux/arm64 public.ecr.aws/lambda/python:3.11

WORKDIR /app

COPY ../../packages/nameguard-python/pyproject.toml ../../packages/nameguard-python/poetry.lock ../../packages/nameguard-python/LICENSE ../../packages/nameguard-python/README.md ./
COPY ../../packages/nameguard-python/nameguard ./nameguard/
RUN pip install --no-cache-dir .[lambda]

# warmup
RUN python -m nameguard.web_api
RUN python -m nameguard.lambda

CMD [ "nameguard.lambda.handler" ]
3 changes: 1 addition & 2 deletions apps/api.nameguard.io/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ provider:
ecr:
images:
oss-nameguard:
# /packages/nameguard-python/
path: ../../packages/nameguard-python/
path: ./
platform: linux/arm64

plugins:
Expand Down
13 changes: 0 additions & 13 deletions packages/nameguard-python/Dockerfile

This file was deleted.

0 comments on commit d3907d2

Please sign in to comment.