-
Notifications
You must be signed in to change notification settings - Fork 6
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 #19 from dagster-io/benpankow/add-dockerfile-name-arg
Add dockerfile name argument
- Loading branch information
Showing
13 changed files
with
115 additions
and
3 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,35 @@ | ||
name: Custom Dockerfile Name Example | ||
on: push | ||
|
||
jobs: | ||
custom-dockerfile-name-example: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
# Configure access to ECR, for this example | ||
# If you are using another registry, your steps may differ | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
|
||
- name: Login to ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
|
||
- name: Cache Docker builds | ||
uses: satackey/[email protected] | ||
continue-on-error: true | ||
|
||
- name: Run Dagster Cloud CI/CD action | ||
# Here, use `uses: dagster-io/dagster-cloud-cicd-action/deploy@{version}` | ||
# e.g. `uses: dagster-io/dagster-cloud-cicd-action/[email protected]` | ||
uses: ./deploy | ||
with: | ||
location-file: ./example/minimal/locations.yaml | ||
dagit-url: https://elementl.dogfood.dagster.cloud/dev | ||
api-token: ${{ secrets.DAGSTER_AGENT_TOKEN }} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,9 @@ | ||
FROM python:3.8-slim | ||
|
||
RUN pip install \ | ||
dagster \ | ||
dagster-cloud | ||
|
||
WORKDIR /opt/dagster/app | ||
|
||
COPY repo.py /opt/dagster/app |
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,6 @@ | ||
# Dockerfile Name Example | ||
|
||
This example specifies custom Dockerfile filename to use as part of the image build process. | ||
|
||
The GitHub actions workflow for this example can be found at | ||
[`.github/workflows/example-custom-dockerfile-name.yml`](../../.github/workflows/example-custom-dockerfile-name.yml). |
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,6 @@ | ||
locations: | ||
github_action_demo_custom_dockerfile_name: | ||
build: . | ||
dockerfile: CustomDockerfileName | ||
registry: 764506304434.dkr.ecr.us-west-2.amazonaws.com/github-action-demo-minimal | ||
python_file: repo.py |
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,27 @@ | ||
from dagster import RunRequest, pipeline, repository, schedule, sensor, solid | ||
|
||
|
||
@solid() | ||
def foo_solid(_): | ||
pass | ||
|
||
|
||
@solid() | ||
def foo_solid_2(_): | ||
pass | ||
|
||
|
||
@pipeline | ||
def foo_pipeline(): | ||
foo_solid() | ||
foo_solid_2() | ||
|
||
|
||
@pipeline | ||
def other_foo_pipeline(): | ||
foo_solid() | ||
|
||
|
||
@repository | ||
def foo_repo(): | ||
return [foo_pipeline] |
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