-
-
Save limond/61930b03929d469cb7fff39eb89f1471 to your computer and use it in GitHub Desktop.
SSH host bug example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "mwe", | |
"main": "index.ts", | |
"devDependencies": { | |
"@types/node": "^16" | |
}, | |
"dependencies": { | |
"@pulumi/docker": "=4.2.0", | |
"@pulumi/pulumi": "^3.67.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mwe | |
runtime: nodejs | |
description: A minimal TypeScript Pulumi program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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