{"id":22493320,"url":"https://github.com/jefking/hs-hack","last_synced_at":"2026-05-02T09:32:28.301Z","repository":{"id":143115519,"uuid":"152975076","full_name":"jefking/hs-hack","owner":"jefking","description":"Custom hack; Containers + Imaging","archived":false,"fork":false,"pushed_at":"2018-10-18T10:55:07.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-01T23:17:29.404Z","etag":null,"topics":["aci","arm","azcopy","azure","cli","container","docker"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jefking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-10-14T13:10:35.000Z","updated_at":"2018-11-05T17:06:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3f8b09b-1ccb-4cb8-afe8-51ecda3db2b1","html_url":"https://github.com/jefking/hs-hack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefking%2Fhs-hack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefking%2Fhs-hack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefking%2Fhs-hack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefking%2Fhs-hack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jefking","download_url":"https://codeload.github.com/jefking/hs-hack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924500,"owners_count":20694728,"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":["aci","arm","azcopy","azure","cli","container","docker"],"created_at":"2024-12-06T18:38:17.149Z","updated_at":"2026-05-02T09:32:28.267Z","avatar_url":"https://github.com/jefking.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tools\n- Git\n- Docker\n- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest)\n- [AZCopy](https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-linux)\n\n# [Azure](https://portal.azure.com)\n- [Storage Account](https://docs.microsoft.com/en-us/azure/storage/)\n    - [File Share](https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction)\n- [Container Instances](https://azure.microsoft.com/en-us/services/container-instances/)\n    - Creates Share (Azure CLI)\n    - Processes Files (Custom Image)\n\n# Algorithm\n- Initialize\n    - Resource Group (command)\n- ARM Deployment (command [1.deploy.json](https://github.com/jefking/hs-hack/blob/master/1.deploy.json))\n    - Creates Storage Account\n    - Creates Azure Container Instance\n        - Container creates File Share\n- Upload Files (script)\n- ARM Deployment (command [2.deploy.json](https://github.com/jefking/hs-hack/blob/master/2.deploy.json))\n    - Deploy Custom Image to ACI\n        - With Mapped File Share\n- Wait for processing to complete (manually)\n- Download Files (script)\n- Delete all resources (command)\n\n# Commands\n## Specify\n- Resource Group Name (alpha-numeric)\n- Resource Group Location (West US 2)\n- Customer Name (alpha-numeric)\n- Container Image Name\n\n## Deploy\n### 1. Create Resource Group\n``\naz group create -g \u003cresourceGroupName\u003e --location \"West US 2\"\n``\n\n### 2. Setup File Share\n``\naz group deployment create --name setup --resource-group \u003cresourceGroupName\u003e --template-file 1.deploy.json --parameters customerName=\u003ccustomerName\u003e\n``\n\n### 3. Upload\n``\nazcopy --source /mnt/\u003ccustomerName\u003e --destination https://\u003cstorageAccountName\u003e.file.core.windows.net/\u003ccustomerName\u003e --dest-key \u003cstorageAccountKey\u003e\n``\n\n### 4. Process Files (Container)\n``\naz group deployment create --name process --resource-group \u003cresourceGroupName\u003e --template-file 2.deploy.json --parameters 2.parameters.json\n``\n\n### 5. Download\n``\nazcopy --source https://\u003cstorageAccountName\u003e.file.core.windows.net/\u003ccustomerName\u003e --destination /mnt/\u003ccustomerName\u003e --source-key \u003cstorageAccountKey\u003e --recursive\n``\n\n### 6. Delete Resources ($0)\n``\naz group delete -n \u003cresourceGroupName\u003e\n``\n\n# V.Next\n1. Container Registry\n2. Code changes\n- Process terminates when done\n- Don't delete files\n- ini -\u003e data store (later)\n- processing can be per file (later)\n3. Template Changes\n- CPU/Memory ACI\n4. Automation\n- Uploads\n- Waiting for processing to complete\n- Downloads\n5. DevOps\n- CI\n- CD","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefking%2Fhs-hack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjefking%2Fhs-hack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefking%2Fhs-hack/lists"}