Hello, has anyone had issues with continuous deplo...
# ask-community
d
Hello, has anyone had issues with continuous deployment? I'm using docker to deploy dagster/dagit and whenever I have a job running and I redeploy the container, it looks like the job misses connection with the run and stays there forever, and I need to go and force terminate it. Is this expected behaviour? Should I schedule my deployment for when I have no jobs running?
d
Hi Dinis - if you use the docker run launcher, each run will happen in its own container that won’t be interrupted when you redeploy
d
I'm currently using docker compose to lauch dagit and daemon as such:
docker compose up -d --no-deps --build
d
d
Wow, did not know about this! Have been trying to configure it now. But I'm reaching an error at the moment with this
Copy code
docker.errors.APIError: 400 Client Error for <http+docker://localhost/v1.41/containers/01fa7c4a19109e3f428ccfabce6e2ab0bcdeb66fd99f77dc67ffaeb23382dd01/start>: Bad Request ("failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "dagster": executable file not found in $PATH: unknown")
Any idea on the problem?
d
That error makes me think that the image doesn’t have the dagster package installed in it
👀 1
d
Well only if my image is not being used properly.. I'm defining the same image as the one used to launch dagit and daemon, providing the network in which they are configured in compose
Copy code
run_launcher:
  module: dagster_docker
  class: DockerRunLauncher
  config:
    image: custom_dagster
    network: docker-dagster-network
d
What ENTRYPOINT/CMD does the image have?
d
Your questions were step by step leading me to find the problem. I don't define any entrypoint in the Dockerfile, only in the docker-compose.yml. But in my Dockerfile I'm using conda. The way I set up the image, every command needs to have the prefix:
conda run -n dagster_env [my_command]
(In the docker-compose as well) So now, I just assumed that the Docker Launcher tries to run with entrypoint
python something ...
which won't work with my setup. I've updated my Dockerfile in order to don't need my previous prefix, and it works
🎉 2
dagster spin 1
463 Views