https://dagster.io/ logo
#dagster-cloud
Title
# dagster-cloud
a

Adam Borlase

03/22/2023, 10:19 AM
Hi All, I want to run a python library that requires Java. How can I install the latest version of Java when doing a Command line push to the Cloud?
q

Qwame

03/22/2023, 1:48 PM
Have you tried installing Java in your code location image?
a

Adam Borlase

03/22/2023, 1:50 PM
I am using the Cereals example so unsure on where I would include this. It is my first time using Dagster cloud.
q

Qwame

03/22/2023, 1:52 PM
Are you using a hybrid setup or serverless?
a

Adam Borlase

03/22/2023, 1:54 PM
Serverless - using this as the example code: https://github.com/dagster-io/dagster-cloud/tree/main/dagster-cloud-examples and deploying with:
Copy code
dagster-cloud serverless deploy-python-executable ./xxx \
  --location-name first_loan_model \
  --package-name xxx --build-method=docker
s

Shalabh Chaturvedi

03/22/2023, 3:00 PM
Hi Adam, you will need to build a base docker image with Java and use that instead of the default base image. See https://docs.dagster.io/dagster-cloud/deployment/serverless#using-a-different-base-image-or-using-native-dependencies.
a

Adam Borlase

03/22/2023, 3:07 PM
Thanks so much. I will give this a try!