Will Gunadi
05/03/2022, 10:32 PMdagster api grpc -h 0.0.0.0 -p 4000 -f repo1.py
Do I just have multiple -f switch or what?prha
05/04/2022, 12:06 AMdaniel
05/04/2022, 12:26 AMWill Gunadi
05/04/2022, 1:42 PMdaniel
05/04/2022, 2:01 PMWill Gunadi
05/04/2022, 2:05 PMCMD ["dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-f", "bb_repository.py"]
CMD ["dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4001", "-f", "repo_2.py"]
daniel
05/04/2022, 2:05 PMWill Gunadi
05/04/2022, 2:05 PMdaniel
05/04/2022, 2:06 PMWill Gunadi
05/04/2022, 2:09 PMdaniel
05/04/2022, 2:13 PMWill Gunadi
05/04/2022, 2:14 PMdaniel
05/04/2022, 2:17 PMdocker_example_user_code:
build:
context: .
dockerfile: ./Dockerfile_user_code
container_name: docker_example_user_code
image: docker_example_user_code_image
restart: always
environment:
DAGSTER_POSTGRES_USER: "postgres_user"
DAGSTER_POSTGRES_PASSWORD: "postgres_password"
DAGSTER_POSTGRES_DB: "postgres_db"
DAGSTER_CURRENT_IMAGE: "docker_example_user_code_image"
command: dagster api grpc -h 0.0.0.0 -p 4000 -f repo1.py
ports:
- "4000:4000"
networks:
- docker_example_network
docker_other_example_user_code:
build:
context: .
dockerfile: ./Dockerfile_user_code
container_name: docker_other_example_user_code
image: docker_example_user_code_image
restart: always
environment:
DAGSTER_POSTGRES_USER: "postgres_user"
DAGSTER_POSTGRES_PASSWORD: "postgres_password"
DAGSTER_POSTGRES_DB: "postgres_db"
DAGSTER_CURRENT_IMAGE: "docker_example_user_code_image"
command: dagster api grpc -h 0.0.0.0 -p 4000 -f repo2.py
ports:
- "4001:4001"
networks:
- docker_example_network
Will Gunadi
05/04/2022, 2:18 PMdaniel
05/04/2022, 2:19 PMWill Gunadi
05/04/2022, 2:19 PMdaniel
05/04/2022, 2:20 PMWill Gunadi
05/04/2022, 2:20 PMdaniel
05/04/2022, 2:20 PMWill Gunadi
05/04/2022, 2:20 PMdaniel
05/04/2022, 2:21 PMWill Gunadi
05/04/2022, 2:21 PMdaniel
05/04/2022, 2:22 PMWill Gunadi
05/04/2022, 2:22 PMdaniel
05/04/2022, 2:22 PMWill Gunadi
05/04/2022, 2:22 PMdaniel
05/04/2022, 2:24 PMWill Gunadi
05/04/2022, 2:25 PMdaniel
05/04/2022, 2:25 PMWill Gunadi
05/04/2022, 2:26 PMdaniel
05/04/2022, 7:34 PMWill Gunadi
05/04/2022, 7:34 PM/opt/dagster/dagster_home/storage/456cc875-97ec-425a-b795-321247888b00/compute_logs/bb_contact_contacts_list_seb_op.out
What do you think is going on here? Is this because Dagit is in a different container than the dagster-daemon?daniel
05/10/2022, 2:27 PMWill Gunadi
05/11/2022, 11:13 PMcompute_logs:
module: dagster.core.storage.local_compute_log_manager
class: LocalComputeLogManager
config:
base_dir: /opt/dagster/dagster_home/storage
And map a volume to the host's filesystem in the docker-compose.yaml:
volumes: # Make docker client accessible so we can launch containers using host docker
- /var/run/docker.sock:/var/run/docker.sock
- ./storage:/opt/dagster/dagster_home/storage
I map the above in both dagit and dagster_daemon containers.
But.. when I run a job, the raw log view is still empty, the bottom says:
/opt/dagster/dagster_home/storage/08dfbcc7-b8e5-4cb1-890c-9b83b7df5ebd/compute_logs/some_op.out
but I can't find that .out file in the volume (which is why the view is empty).
The whole directory is there (up to /compute_logs), just the file is missing.
Any thoughts?daniel
05/12/2022, 12:40 AMWill Gunadi
05/13/2022, 1:35 PMrun_launcher:
module: dagster_docker
class: DockerRunLauncher
config:
env_vars:
- DAGSTER_POSTGRES_USER
- DAGSTER_POSTGRES_PASSWORD
- DAGSTER_POSTGRES_DB
network: dagster_network
container_kwargs:
volumes:
- /home/user1/dagster_prj/storage:/opt/dagster/dagster_home/storage