-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (35 loc) · 1.94 KB
/
Copy pathDockerfile
File metadata and controls
48 lines (35 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Use an official manylinux builder (https://github.com/pypa/manylinux#docker-images)
FROM --platform=linux/amd64 quay.io/pypa/manylinux_2_28_x86_64:latest
# Install deps
RUN yum update -y & yum install -y git
RUN /opt/python/cp311-cp311/bin/python -m pip install pex
# RUN /opt/python/cp38-cp38/bin/python -m pip install dagster-cloud-cli
# RUN /opt/python/cp39-cp39/bin/python -m pip install dagster-cloud-cli
# RUN /opt/python/cp310-cp310/bin/python -m pip install dagster-cloud-cli
# RUN /opt/python/cp311-cp311/bin/python -m pip install dagster-cloud-cli
RUN /opt/python/cp312-cp312/bin/python -m pip install git+https://github.com/dagster-io/dagster.git@al/09-08-temp-pin#subdirectory=python_modules/libraries/dagster-cloud-cli
# Create virtual environment using PEX
COPY generated/gha/dagster-cloud.pex /dagster-cloud.pex
RUN PEX_TOOLS=1 /opt/python/cp312-cp312/bin/python /dagster-cloud.pex venv /venv-dagster-cloud
# Add all the relevant Python binaries to the PATH
ENV PATH="/venv-dagster-cloud/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin:/opt/python/cp312-cp312/bin:$PATH"
# Copy all src scripts
# for setting the org-specific registry info
COPY src/registry_info.sh /registry_info.sh
# for copying the template info into the target source directories
COPY src/copy_template.sh /copy_template.sh
COPY src/Dockerfile.template /Dockerfile.template
COPY src/expand_env_vars.py /expand_env_vars.py
# Copy over various Python utilities
COPY src/create_or_update_comment.py /create_or_update_comment.py
COPY src/expand_json_env.py /expand_json_env.py
COPY src/fetch_github_avatar.py /fetch_github_avatar.py
COPY src/parse_workspace.py parse_workspace.py
COPY src/notify.sh /notify.sh
COPY src/deploy.sh /deploy.sh
COPY src/run.sh /run.sh
COPY src/get_branch_deployment.sh /get_branch_deployment.sh
# Gitlab scripts
COPY src/gitlab_action gitlab_action
# Use the venv python as the command
CMD venv-dagster-cloud/bin/python3