-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1913999
commit a40bbe9
Showing
122 changed files
with
8,168 additions
and
20 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 |
---|---|---|
@@ -1,12 +1,19 @@ | ||
.git | ||
*.pyc | ||
*.pyo | ||
__pycache__ | ||
env/ | ||
.idea | ||
*~ | ||
README.md | ||
LICENSE | ||
Jenkinsfile | ||
docker-compose.yml | ||
helm-chart | ||
# first ignore everything | ||
**/* | ||
|
||
# now add things to include | ||
!./poetry-requirement.txt | ||
!./README.md | ||
!./pyproject.toml | ||
!./poetry.toml | ||
!./poetry.lock | ||
!./mop/ | ||
!./microlensing_targets/ | ||
!./manage.py | ||
!./static/ | ||
!./templates/ | ||
|
||
# but stil ignore | ||
**/*__pycache__ | ||
**/*.pyc | ||
**/*.pyo |
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,15 @@ | ||
name: "Continuous Deployment" | ||
on: | ||
push: | ||
branches: | ||
- feat/skaffold | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
cd: | ||
uses: LCOGT/reusable-workflows/.github/workflows/continuous-deployment.yaml@main | ||
with: | ||
skaffoldBuildModules: "mop" | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
FROM python:3.10 | ||
LABEL maintainer="etibachelet@gmail.com" | ||
|
||
# the exposed port must match the deployment.yaml containerPort value | ||
EXPOSE 80 | ||
ENTRYPOINT [ "/usr/local/bin/gunicorn", "mop.wsgi", "-b", "0.0.0.0:80", "--access-logfile", "-", "--error-logfile", "-", "-k", "gevent", "--timeout", "300", "--workers", "2"] | ||
|
||
WORKDIR /mop | ||
|
||
COPY requirements.txt /mop | ||
RUN pip install --no-cache-dir -r /mop/requirements.txt | ||
RUN pip install poetry | ||
|
||
COPY ./pyproject.toml ./poetry.lock ./poetry.toml /mop | ||
|
||
RUN poetry install --no-root --only main | ||
|
||
COPY . /mop | ||
|
||
# Activate virtual env | ||
ENV PATH="/mop/.venv/bin:$PATH" | ||
|
||
# disable buffering so that logs are rendered to stdout asap | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
# the exposed port must match the deployment.yaml containerPort value | ||
EXPOSE 80 | ||
|
||
ENTRYPOINT [ "gunicorn", "mop.wsgi", "-b", "0.0.0.0:80", "--access-logfile", "-", "--error-logfile", "-", "-k", "gevent", "--timeout", "300", "--workers", "2"] |
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.