New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provision Web App for Containers #2827
Comments
As a workaround, I just figured out I can do this:
It feels hacky and brittle, though... :) |
Hi there, The provider already support single container deployment using a You need to base64encode your docker-compose file, i.e. Maybe this should just be documented ;) If someone can point me in the right direction, I'll be glad to write it. |
@Djiit Nice! I came back here to write that I'd found that out too :) I'm currently using the following config:
The |
@Djiit Would be great if that could be documented here : https://www.terraform.io/docs/providers/azurerm/r/app_service.html# A specific example usage for containers would also be great, like what exists for .net and Java. But it's already great enough that it's supported. |
I agree with you, I've already been contacted by a team member to enhance
the docs. I hope it gets updated soon !
…--
Julien
Le mar. 12 févr. 2019 à 11:34, jnancel <notifications@github.com> a écrit :
@Djiit <https://github.com/Djiit> Would be great if that could be
documented here :
https://www.terraform.io/docs/providers/azurerm/r/app_service.html#
A specific example usage for containers would also be great, like what
exists for .net and Java.
But it's already great enough that it's supported.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2827 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABHZtGXRVgZPcN-kswwqMiAWCJKWm6fcks5vMpjRgaJpZM4aezy0>
.
|
hi @tomasaschan @Djiit @jnancel Thanks for opening this issue :) Just to let you know that I've added some examples for using Containers within an App Service in #2913 which should help clarify this. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Description
Azure Web App for Containers are really cool, and I think it would be awesome if this provider supported them!
As far as I can tell, the CLI handles creating them with a couple of extra flags. Basically, you do
to create a single-container app service, and
to create a multi-container app. However, I haven't been able to figure out whether - and, if it does, how - the Azure SDK for Go supports this yet.
Interestingly, if I create the service plan and web app using the CLI, according to the instructions linked above, I can then import them into my Terraform state and have the following configurations propose no changes:
az group create --name my-rg --location "West Europe" az appservice plan create --name my-svc-plan --resource-group my-rg --sku S1 --is-linux az webapp create --resource-group my-rg --plan my-svc-plan --name a-globally-unique-name --multicontainer-config-type compose --multicontainer-config-file a-compose-file-on-disk.yml
New or Affected Resource(s)
The text was updated successfully, but these errors were encountered: