-
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 #765 from MTES-MCT/main
Mise en production 17/06/2024
- Loading branch information
Showing
41 changed files
with
714 additions
and
300 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 |
---|---|---|
|
@@ -47,6 +47,14 @@ | |
"git_ssh_url": "git+ssh://[email protected]/app_7abbd260-6a91-4262-9c2f-3107f1194821.git", | ||
"name": "Queue staging", | ||
"alias": "queue-staging" | ||
}, | ||
{ | ||
"app_id": "app_0a820d50-269c-4d96-9b5e-81b112b0c608", | ||
"org_id": "orga_31f13631-abb3-48d2-a58b-24b736f02a9d", | ||
"deploy_url": "https://push-n3-par-clevercloud-customers.services.clever-cloud.com/app_0a820d50-269c-4d96-9b5e-81b112b0c608.git", | ||
"git_ssh_url": "git+ssh://[email protected]/app_0a820d50-269c-4d96-9b5e-81b112b0c608.git", | ||
"name": "Dagster (Production)", | ||
"alias": "dagster-production" | ||
} | ||
] | ||
} |
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,34 @@ | ||
FROM python:3.10-slim | ||
|
||
# ARG DAGSTER_PASSWORD=zlv | ||
# ARG DAGSTER_USERNAME=zlv | ||
|
||
# ENV DAGSTER_PASSWORD=$DAGSTER_PASSWORD | ||
# ENV DAGSTER_USERNAME=$DAGSTER_USERNAME | ||
|
||
RUN apt-get update && apt-get install -y nginx apache2-utils | ||
|
||
RUN pip install dagster-webserver dagster-postgres dagster-aws | ||
|
||
COPY analytics/dagster/requirements.txt . | ||
|
||
|
||
RUN pip install -r requirements.txt | ||
|
||
ENV DAGSTER_HOME=/opt/dagster/dagster_home/ | ||
|
||
RUN mkdir -p $DAGSTER_HOME | ||
|
||
COPY analytics/dagster/dagster.yaml analytics/dagster/workspace.yaml $DAGSTER_HOME | ||
|
||
COPY analytics/dagster/src $DAGSTER_HOME/src | ||
|
||
WORKDIR $DAGSTER_HOME | ||
|
||
# Setup Nginx configuration | ||
RUN htpasswd -cb /etc/nginx/.htpasswd zlv zlv | ||
COPY docker/nginx/nginx.conf /etc/nginx/sites-available/default | ||
|
||
EXPOSE 8080 3000 | ||
|
||
CMD service nginx start && dagster-webserver -h 0.0.0.0 -p 3000 |
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,14 @@ | ||
name: Data Stack CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- analytics/** | ||
|
||
jobs: | ||
deploy-dagster: | ||
uses: ./.github/workflows/deploy.yml | ||
with: | ||
app: dagster-production | ||
branch: main | ||
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 |
---|---|---|
|
@@ -33,3 +33,8 @@ yarn-error.log* | |
|
||
/talisman_report | ||
.clever.json | ||
|
||
# Data Stack | ||
.pyc | ||
__pycache__ | ||
analytics/dagster/storage/ |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
seen: 1 |
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,32 @@ | ||
FROM python:3.10-slim | ||
|
||
RUN pip install dagster-webserver dagster-postgres dagster-aws | ||
|
||
RUN apt-get update && apt-get install -y nginx apache2-utils | ||
|
||
RUN ls | ||
# Install dependencies | ||
COPY requirements.txt . | ||
|
||
|
||
RUN pip install -r requirements.txt | ||
|
||
ENV DAGSTER_HOME=/opt/dagster/dagster_home/ | ||
|
||
RUN mkdir -p $DAGSTER_HOME | ||
|
||
COPY dagster.yaml workspace.yaml $DAGSTER_HOME | ||
|
||
COPY src/ $DAGSTER_HOME | ||
|
||
WORKDIR $DAGSTER_HOME | ||
|
||
# Setup Nginx configuration | ||
RUN htpasswd -cb /etc/nginx/.htpasswd zlv zlv | ||
COPY docker/nginx/nginx.conf /etc/nginx/sites-available/default | ||
|
||
# Expose port 80 for the Nginx web server | ||
EXPOSE 8080 | ||
|
||
CMD nginx -g 'daemon off;' & dagster-webserver -h 0.0.0.0 -p 3000 | ||
|
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,16 @@ | ||
storage: | ||
postgres: | ||
postgres_db: | ||
username: | ||
env: DAGSTER_PG_USERNAME | ||
password: | ||
env: DAGSTER_PG_PASSWORD | ||
hostname: | ||
env: DAGSTER_PG_HOST | ||
db_name: | ||
env: DAGSTER_PG_DB | ||
port: | ||
env: DAGSTER_PG_PORT | ||
|
||
telemetry: | ||
enabled: false |
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 @@ | ||
{"\u2013": 9, "new": 6, "hn": 5, "why": 5, "ai": 4, "show": 4, "from": 4, "macos": 3, "language": 3, "server": 3, "at": 3, "video": 3, "may": 3, "be": 3, "using": 3, "pdf": 3, "vision": 2, "sequoia": 2, "virtual": 2, "arm": 2, "exploring": 2, "apple's": 2, "models": 2, "just": 2, "fast": 2} |
Oops, something went wrong.