{"id":17114341,"url":"https://github.com/anthonychu/containerapps-sidecar-sample","last_synced_at":"2025-03-23T23:30:12.933Z","repository":{"id":68672504,"uuid":"490913915","full_name":"anthonychu/containerapps-sidecar-sample","owner":"anthonychu","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-11T01:20:55.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-29T06:45:40.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonychu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-11T01:18:55.000Z","updated_at":"2022-05-13T17:03:34.000Z","dependencies_parsed_at":"2023-02-24T11:30:23.281Z","dependency_job_id":null,"html_url":"https://github.com/anthonychu/containerapps-sidecar-sample","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"2274b50d1c803bde76d517ba232980837d670c73"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychu%2Fcontainerapps-sidecar-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychu%2Fcontainerapps-sidecar-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychu%2Fcontainerapps-sidecar-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychu%2Fcontainerapps-sidecar-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonychu","download_url":"https://codeload.github.com/anthonychu/containerapps-sidecar-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245186209,"owners_count":20574549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T17:16:44.198Z","updated_at":"2025-03-23T23:30:12.897Z","avatar_url":"https://github.com/anthonychu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Container Apps sidecar example\n\n## Deploy the app\n\n1. Create a Container Apps environment.\n\n    ```bash\n    az containerapp env create --name demo --resource-group demo --location canadacentral\n\n    # Get the environment id\n    az containerapp env show --name demo --resource-group demo --query id\n    ```\n\n1. Open `app.yaml` and update the `managedEnvironmentId` with the value from the previous step. Save the file.\n\n1. Create a container app.\n\n    ```bash\n    az containerapp create --name test-sidecar --resource-group demo --yaml app.yaml --query properties.configuration.ingress.fqdn\n    ```\n\n1. Open the app at its URL.\n\n1. To observe the sidecar's streaming logs in real-time, run the following command:\n\n    ```bash\n    az containerapp logs show --name test-sidecar --resource-group demo --container sidecar --follow\n    ```\n\n1. Click the *Call sidecar* button.\n\n    - The main app will call the sidecar app. The result is displayed on the page.\n\n    - The sidecar logs should show that it processed the request.\n\n1. Click the *Write a file* button.\n\n    - The main app writes a file into a volume that it shares with the sidecar app.\n\n    - The sidecar logs should show that it observed the file that was written.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonychu%2Fcontainerapps-sidecar-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonychu%2Fcontainerapps-sidecar-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonychu%2Fcontainerapps-sidecar-sample/lists"}