generated from suliman-99/Open-Source-Projects-Template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from liviomendonca/main
add `JSONFileChildSeeder` class
- Loading branch information
Showing
14 changed files
with
562 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM python:3.10.14-bookworm | ||
WORKDIR /app | ||
|
||
# Set environment variables to avoid prompts during package installations | ||
# caso não dê certo, voltar `&& export DEBIAN_FRONTEND=noninteractive \` | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update \ | ||
# Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131 | ||
&& apt-get purge -y imagemagick imagemagick-6-common | ||
|
||
RUN python3 -m pip install --upgrade \ | ||
setuptools==69.0.3 \ | ||
gitpython==3.1.41 | ||
|
||
# django-seeding specifics | ||
RUN pip install pipenv | ||
RUN apt-get install -y sqlite3 libsqlite3-dev | ||
|
||
# finalizing.. | ||
RUN apt-get clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "dev env", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "backend", | ||
"workspaceFolder": "/workspace", // /${localWorkspaceFolderBasename}" | ||
|
||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-azuretools.vscode-docker", | ||
"ms-python.python" | ||
], | ||
"settings": { | ||
"python.analysis.nodeExecutable": "" | ||
} | ||
} | ||
}, | ||
|
||
"postStartCommand": "pipenv sync" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
services: | ||
backend: | ||
build: | ||
context: .. | ||
dockerfile: .devcontainer/Dockerfile | ||
image: python3.10-bookworm | ||
container_name: seeding_PR | ||
|
||
volumes: | ||
- ..:/workspace | ||
|
||
command: sleep infinity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.