Sterling Paramore
08/23/2022, 3:54 PMmeltano install
after adding the code to the image in the Dockerfile
.
I was thinking I could:
1. Build the standard image using dagster-cloud serverless build
2. Tag the image created something like dagsterstandard
3. Create a new Dockerfile that looks like:
FROM dagsterstandard
RUN cd meltano && meltano install
4. Tag that custom image with the same tag as the standard image and push that to the dagster serverless registry.
Think that will work? Any gotchas?Pete Hunt
08/23/2022, 3:59 PMJules Huisman (Quantile)
08/23/2022, 4:11 PMPete Hunt
08/23/2022, 5:09 PMSterling Paramore
08/23/2022, 6:14 PMJules Huisman (Quantile)
08/23/2022, 6:43 PM<http://ghcr.io/|ghcr.io/><our-org>/dagster-cloud-action
.
And used this image in the Github action.
You can take a look here: https://github.com/quantile-development/dagster-cloud-action
But it's all a bit hacky. It might be better to wait for official support 🙃prha
08/29/2022, 7:19 PMdagster-cloud serverless
CLI to provide a custom base image, as well as support for running a dagster_cloud_pre_install.sh
/ dagster_cloud_post_install.sh
script inside of the target directory if they exist. I’m in the process of adding support to our GH action as well.
You should be able to run:
dagster-cloud serverless deploy --base-image my_base_image <target_dir>
Jules Huisman (Quantile)
08/29/2022, 8:00 PMSterling Paramore
08/29/2022, 8:58 PMpip install -r requirements.txt
, or will that be assumed to have already been installed?prha
08/29/2022, 9:01 PMpip install -r requirements.txt
if it exists