Skip to content

Instantly share code, notes, and snippets.

@limond
Last active May 15, 2023 20:01
Show Gist options
  • Save limond/61930b03929d469cb7fff39eb89f1471 to your computer and use it in GitHub Desktop.
Save limond/61930b03929d469cb7fff39eb89f1471 to your computer and use it in GitHub Desktop.
SSH host bug example
import * as pulumi from "@pulumi/pulumi";
import * as docker from "@pulumi/docker";
const provider = new docker.Provider("provider", {
host: `ssh://${process.env.USER}@localhost:22`,
});
const exampleNginx = new docker.Container("example-nginx", {
image: "nginx:latest",
ports: [{
internal: 80,
external: 80,
}],
}, { provider });
{
"name": "mwe",
"main": "index.ts",
"devDependencies": {
"@types/node": "^16"
},
"dependencies": {
"@pulumi/docker": "=4.2.0",
"@pulumi/pulumi": "^3.67.0"
}
}
name: mwe
runtime: nodejs
description: A minimal TypeScript Pulumi program
{
"compilerOptions": {
"strict": true,
"outDir": "bin",
"target": "es2016",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.ts"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment