geoHeil
06/03/2022, 6:05 PMdaniel
06/03/2022, 6:48 PMgeoHeil
06/03/2022, 6:48 PMCMD ["dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-f", "MWF/repository.py", "--attribute", "prod"]
to select the desired (dev/staging/prod) environment) 3) I am still very unfamiliar with the locations.yaml configuration file and it is unclear to me if (1,2) perhaps fit into it.daniel
06/03/2022, 6:56 PMgeoHeil
06/03/2022, 6:59 PMdaniel
06/03/2022, 6:59 PMuser_code_launcher:
module: dagster_cloud.workspace.docker
class: DockerUserCodeLauncher
config:
network: dagster_network
container_kwargs:
auto_remove: true
volumes:
- /Users/geoheil/Downloads/fooo/dagster-ssh-demo/warehouse_location_dagster:/opt/dagster/dagster_home/src/warehouse_location
locations:
your_location_name_here:
build: .
registry: your_docker_registry_here
python_file: MWF/repository.py
attribute: prod
geoHeil
06/03/2022, 7:12 PMdaniel
06/03/2022, 7:12 PMgeoHeil
06/03/2022, 7:13 PMdaniel
06/03/2022, 7:22 PMgeoHeil
06/03/2022, 7:24 PMdaniel
06/03/2022, 7:26 PMgeoHeil
06/03/2022, 7:50 PMdaniel
06/03/2022, 7:54 PMgeoHeil
06/03/2022, 7:54 PMdaniel
06/03/2022, 7:54 PMgeoHeil
06/03/2022, 7:55 PMdaniel
06/03/2022, 7:56 PMgeoHeil
06/03/2022, 7:57 PMdaniel
06/03/2022, 7:57 PMgeoHeil
06/03/2022, 7:58 PMdaniel
06/03/2022, 7:58 PMgeoHeil
06/03/2022, 8:01 PMdocker/build-push-action@v3.0.0
with cache-from: type=gha; cache-to: type=gha,mode=max it failed for me with: buildx failed with: error: cache export feature is currently not supported for docker driver. For ECR you are using https://github.com/dagster-io/dagster-cloud-cicd-action/blob/main/.github/workflows/example-minimal.yml#L25 how could this be adapted for ghcr?daniel
06/03/2022, 8:04 PMgeoHeil
06/03/2022, 8:07 PMdaniel
06/03/2022, 8:26 PMgeoHeil
06/03/2022, 10:09 PMdaniel
06/03/2022, 10:29 PMgeoHeil
06/03/2022, 10:30 PMdaniel
06/03/2022, 10:31 PMgeoHeil
06/03/2022, 10:34 PMdaniel
06/03/2022, 10:35 PMconst commitSha = github.context.payload.pull_request.head.sha;
geoHeil
06/03/2022, 10:35 PMdocker pull <http://ghcr.io/complexity-science-hub/migration-world-formula:337bd4|ghcr.io/complexity-science-hub/migration-world-formula:337bd4>
works fine (locally) but not from the agent.daniel
06/03/2022, 10:37 PM--volume ~/.docker:/root/.docker \
geoHeil
06/03/2022, 10:40 PMdaniel
06/03/2022, 10:43 PMgeoHeil
06/03/2022, 10:44 PMdaniel
06/03/2022, 10:44 PMgeoHeil
06/03/2022, 10:45 PMname: 2Previews
on: [push]
jobs:
called_testing:
# performs linting, type checking, formatting, ...
uses: ./.github/workflows/1testing.yml
preview:
runs-on: ubuntu-latest
needs:
- called_testing
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Create Dagster Cloud Code Preview
uses: dagster-io/dagster-cloud-cicd-action/preview@v0.2.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
location-file: ./locations.yaml
dagit-url: https://${{ secrets.DAGSTER_CLOUD_ORGANIZATION }}.dagster.cloud/${{ secrets.DAGSTER_CLOUD_DEPLOYMENT }}
api-token: ${{ secrets.DAGSTER_CLOUD_AGENT_TOKEN }}
daniel
06/03/2022, 10:47 PMgeoHeil
06/03/2022, 11:03 PMdaniel
06/04/2022, 6:23 PM