Pulumi AI hallucinated and told me to add this to ...
# general
g
Pulumi AI hallucinated and told me to add this to Pulumi.yaml but no dice
Copy code
runtime:
  name: dotnet
  options:
    version: 8.0
f
All you have to do is change
TargetFramework
in the csproj file to
net8.0
and you should be good to go.
g
doesnt work for pulumi's deployment service, of course works locally on net8.0 since the I have sdks installed. I think pulumi base imagine is dotnet 6.0. You can specify a custom image for the deployment engine though, so in theory I think one can extend https://hub.docker.com/layers/pulumi/pulumi-dotnet/latest/images/sha256-bdcdfcb41cb0[…]234138662da872301ca483983765949c1b6d3485a849b?context=explore and override DOTNET_VERSION to 8?
f
Ah, I see. I misunderstood your question.
I tried this out and it seemed to work pretty well:
gh repo clone pulumi/pulumi-docker-containers;
cd pulumi-docker-containers/docker/dotnet;
docker build -f Dockerfile --build-arg DOTNET_VERSION=8.0 .
It installed dotnet 8.0.301 and pulumi 3.117.0
g
nice. I'll try that, thanks
decided to bail out on this. since this is build arg only I dont want to inherit responsibility of maintaining my own derivative docker image for use with pulumi's hosted deployment service. Decided to downgrade our infra project back to net6.0 and shadow global.json in that directory for net6. i am surprised though that they dont publish something like pulumi/pulumi-dotnet-8.0
f
You should create an issue that they should publish an image for all the LTS versions (
6
and
8
currently)
g
yeah probably a good idea, ill do that
f
I am on a tight budget, so I can’t use automation and it isnt a problem for me, but they can’t ignore the latest LTS version on their side
g
I dont think I'm going to exceed their 3000 build minutes tbf. 150minutes a working day, 6 minutes a build., have to be deploying more than 20 times a day for my scenario. Biggest concern is as unlike running pulumi up locally, or in your own infra, you do have to hand over certain keys