-
Notifications
You must be signed in to change notification settings - Fork 30
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
Missing documentation for non-Kubernetes Azure setup #59
Comments
Exactly I think so too. Frankly speaking I do not know the state of this container and if it will work without Kubernetes. @kaizimmerm can you maybe shed some light on this? |
Hi, its |
@schabdo there is no k8s dependency in the docker image. |
Thanks for that. How can I know the version of Hawkbit and the version of the used Hawkbit extensions for the images at https://hub.docker.com/r/hawkbit/hawkbit-update-server-azure ? |
I can confirm I got it working by locally building this repo using Maven 3.6.3 and Java 1.8. After that, I pushed the image to Docker and used the |
Hi @wimdeblauwe, i have a question on this. I've got a similar setup but i am using Azure Container Instances. As you already have described you connected the Azure SQL DB with the env variables SPRING_DATASOURCE_URL, SPRING_DATASOURCE_USERNAME & SPRING_DATASOURCE_PASSWORD. I did the same abut does your container start properly with that? My container seems to be connected to the DB (atleast i got no errors with DB the connection) but i get several errors like:
|
Did you also set the following env variables?
Futher, I also set |
Not yet. I will try that out and edit my message here later. Thanks a lot for your help! edit: i added also these env variables unfortunately i still don't get the container running with that. As already said the DB seems to be connected: But i get a lot of errors regarding this schema. I though flyway will create everything on it's own do i have to change something in the SQL settings?
|
Hi, I have this successfully deployed on an Azure App Service (Web App For Containers). If one of the maintainers can let me know what format you want that documentation in (Just in the README? Do you guys have docs pages?) I'd be happy to take a stab at writing it up. Realistically I won't have time till next weekend but this issue has been open for a bit so I'm assuming folks won't mind the wait :) |
@drewf7 you wouldn't happen to have any documentation written up on how to do the deployment on Azure App Services would you? |
Hi @adamwendel It's been a bit haha (almost a year from the comment timestamps) I don't have anything concrete I can link you too. But here's what I can conjure up from memory, and a poke around our deployment. I had the best luck bundling hawkbit into a container and deploying that way. To do I pulled this repo https://github.com/eclipse/hawkbit-extensions.git The folder that's of interest to you is Before you run a build you'll likely want to change the default credentials. You can do that in I have the following block set in there. Whether it's still neccessary (or ever really was) I don't know.
You'll eventually want to read https://www.eclipse.org/hawkbit/concepts/authentication/ to set up a better auth mechanism. But to get things up and running you can just set
Then from the Up in Azure create a resource group to house hawkbit, and inside of it deploy.
Then deploy your hawkbit container to the app service, and set the below environment variables in the "Configuration" section
From there in theory you should be up and running. Although it's very possible I've missed something. Hopefully that helps :) |
Thank you so much @drewf7! I'm probably 90% of the way there. I've gotten all of the azure resources set up and the VNET and deployed the container on App Services. I can see usage on the SQL Server and the Event Hub, but it seems something with the storage has failed (I get an upload failed message when uploading an artifact). It doesn't seem that hawkbit has actually set up any containers in the storage account. Is the following block supposed to be set as is? Edit: Turns out I had missed adding a NIC for the storage on the VNet. |
I would like to deploy Hawkbit on Azure using a Docker image on App Service.
I have it working with the standard Hawkbit Docker image connecting to an Azure SQL server by setting the environment variables like
SPRING_DATASOURCE_URL
,SPRING_DATASOURCE_USERNAME
, ...I want to configure the storage now, but there is very little documentation here on how to do that. I suppose I need to create an own docker image after building this project with Maven and publish that on a public Docker registry if I want to use Azure Storge. But what after that?
I created a Blob Storage Container on Azure, but how do I connect the deployed Hawkbit with that? How should the security of the Blob Storage be set up?
The text was updated successfully, but these errors were encountered: