sparse-intern-71089
09/18/2021, 8:53 AMbillowy-army-68599
billowy-army-68599
mysterious-piano-88140
09/18/2021, 3:24 PMbillowy-army-68599
pulumi config set adminPassword --secret
mysterious-piano-88140
09/18/2021, 4:47 PMmyImage.imageName
) is not known.
And on the other hand, it builds the Docker image which is already built in the Docker registry, because a Github action automatically takes care of that.billowy-army-68599
mysterious-piano-88140
09/18/2021, 6:09 PMmysterious-piano-88140
09/19/2021, 10:35 AMconst servicePlan = new AppServicePlan('appserivceplan', {
kind: 'Linux',
name: 'appserviceplan',
resourceGroupName: 'resourcegroup',
location: 'germanywestcentral',
sku: {
capacity: 2,
family: 'S2',
name: 'S2',
size: 'S2',
tier: 'Standard'
},
tags: {
env: 'dev',
type: 'appserviceplan'
}
})
const customImage = 'imagename'
const registry = '<http://ghcr.io|ghcr.io>'
const adminUsername = 'username'
const adminPassword = 'password'
const myImage = new Image(customImage, {
build: '../',
imageName: interpolate`<http://ghcr.io/<organisation>/${customImage}:1.0.0|ghcr.io/<organisation>/${customImage}:1.0.0>`,
registry: {
server: registry,
username: adminUsername,
password: adminPassword
}
})
const app = new WebApp('webapp', {
kind: 'Linux',
name: 'webapp',
resourceGroupName: 'resourcegroup',
serverFarmId: servicePlan.id,
siteConfig: {
appSettings: [
{
name: 'WEBSITES_ENABLE_APP_SERVICE_STORAGE',
value: 'false'
},
{
name: 'DOCKER_REGISTRY_SERVER_URL',
value: interpolate`https://${registry}`
},
{
name: 'DOCKER_REGISTRY_SERVER_USERNAME',
value: adminUsername
},
{
name: 'DOCKER_REGISTRY_SERVER_PASSWORD',
value: adminPassword
},
{
name: 'WEBSITES_PORT',
value: '80' // Our custom image exposes port 80. Adjust for your app as needed.
}
],
alwaysOn: true,
linuxFxVersion: interpolate`DOCKER|<http://ghcr.io/<organisation>/${customImage}:1.0.0|ghcr.io/<organisation>/${customImage}:1.0.0>`
},
httpsOnly: true
})
billowy-army-68599
billowy-army-68599
myImage.imageName
is not known, but I don't see that used anywhereprehistoric-nail-50687
09/20/2021, 7:30 AMmyImage
? I don’t think it is needed in your case. As you say, the image is already build - then you only have to reference it in linuxFxVersion
and set the correct DOCKER_REGISTRY_SERVER_URL
, DOCKER_REGISTRY_SERVER_USERNAME
and DOCKER_REGISTRY_SERVER_PASSWORD
.