Skip to content

Added option for azure provisioning. - #18

Open
FixingFox wants to merge 1 commit into
arvids-unavailable:mainfrom
FixingFox:feature/azure_appservice_setup
Open

Added option for azure provisioning.#18
FixingFox wants to merge 1 commit into
arvids-unavailable:mainfrom
FixingFox:feature/azure_appservice_setup

Conversation

@FixingFox

Copy link
Copy Markdown

This pull request adds full support for deploying openGym to Azure App Service as an alternative to self-hosting with Docker Compose. It introduces new infrastructure-as-code files, deployment documentation, and a combined Docker image to run both the frontend (nginx) and backend (Node.js API) in a single container, as required by Azure App Service. The README and self-hosting docs are updated to reference the new Azure deployment option.

Azure App Service deployment support:

  • Added azure.yaml configuration for Azure Developer CLI (azd) to define the deployment process and post-provision hooks.
  • Introduced infra/main.bicep and infra/main.parameters.json for automated Azure resource provisioning, including App Service, registry, and Azure Files share.
  • Created deploy/azure/Dockerfile to build a single image running both nginx and the Node.js API, with environment variables for CDN-hosted exercise media.
  • Added deploy/azure/nginx.conf and deploy/azure/start.sh to configure nginx for SPA and API proxying, and to orchestrate process startup within the container.
  • Added post-provision scripts (deploy/azure/hooks/postprovision.sh and .ps1) to set ORIGIN and RP_ID based on the deployed app's hostname, ensuring passkey login works correctly.

Documentation updates:

  • Added docs/AZURE_APPSERVICE.md with step-by-step instructions for deploying to Azure, handling custom domains, persistence, and scaling caveats.
  • Updated README.md and docs/SELF_HOSTING.md to reference Azure App Service as a supported deployment option, with links to the new documentation.

Minor documentation and formatting fixes:

  • Standardized markdown formatting in feature lists and environment variable tables for consistency and clarity.

@mangeshraut712

Copy link
Copy Markdown

Superseded by #28 (azure.yaml, Bicep, deploy/azure, docs/AZURE_APPSERVICE.md). Thank you.

@mangeshraut712

Copy link
Copy Markdown

Azure azd files and docs are in #28. Please close in favor of that PR.

@SunriseDuarte

Copy link
Copy Markdown

Heads up: openGym has moved to GitLab.
-> GitLab

The GitHub repo is no longer maintained (the account was suspended, so it's out of my hands). Please re-open this issue/PR on GitLab so it doesn't get lost, I'll pick it up there. Questions, help and roadmap discussion now happen in Discord:
-> Discord

Sorry for the noise, and thanks for sticking around.
more infos here: openGym

@FixingFox

Copy link
Copy Markdown
Author

Merge request opened in https://gitlab.com/DuarteSantos8/opengym/-/merge_requests/35. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants