-
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 #766 from MTES-MCT/feat/install-dagster
Feat/install dagster
- Loading branch information
Showing
5 changed files
with
64 additions
and
4 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,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
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,14 @@ | ||
server { | ||
listen 8080; | ||
|
||
location / { | ||
auth_basic "Restricted Access"; | ||
auth_basic_user_file /etc/nginx/.htpasswd; | ||
|
||
proxy_pass http://127.0.0.1:3000; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ services: | |
env_file: | ||
- .env | ||
ports: | ||
- 3000:3000 | ||
- 8080:8080 | ||
|
||
postgres: | ||
image: postgres:latest | ||
|