{"id":18734510,"url":"https://github.com/wise2c-devops/build-harbor-aarch64","last_synced_at":"2025-11-15T03:30:15.143Z","repository":{"id":203072563,"uuid":"707079285","full_name":"wise2c-devops/build-harbor-aarch64","owner":"wise2c-devops","description":"Build an offline-deployable Harbor version for ARM64 architecture.","archived":false,"fork":false,"pushed_at":"2025-01-18T04:57:39.000Z","size":69,"stargazers_count":47,"open_issues_count":5,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-18T05:29:18.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/wise2c-devops.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":"2023-10-19T07:23:49.000Z","updated_at":"2025-01-18T04:57:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"87737f80-27fa-46c2-aba2-bd9f424d58df","html_url":"https://github.com/wise2c-devops/build-harbor-aarch64","commit_stats":null,"previous_names":["wise2c-devops/build-harbor-aarch64"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wise2c-devops%2Fbuild-harbor-aarch64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wise2c-devops%2Fbuild-harbor-aarch64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wise2c-devops%2Fbuild-harbor-aarch64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wise2c-devops%2Fbuild-harbor-aarch64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wise2c-devops","download_url":"https://codeload.github.com/wise2c-devops/build-harbor-aarch64/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239606262,"owners_count":19667203,"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-11-07T15:13:48.534Z","updated_at":"2025-11-15T03:30:15.111Z","avatar_url":"https://github.com/wise2c-devops.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# build-harbor-aarch64\nBuild an offline-deployable Harbor version for ARM64 architecture.\n\nHow to get the harbor-offline-installer-aarch64 package?\n\n### Option1 （方法一）\n直接从该项目的Release页面下载完整的离线包文件harbor-offline-installer-aarch64-v2.12.2.tgz\n\n### Option2 （方法二）\n下载离线镜像包\n```\ndocker pull alanpeng/harbor_images_aarch64:v2.12.2\n```\n\n创建一个新的容器实例\n```\nTEMP_CONTAINER_ID=$(docker create alanpeng/harbor_images_aarch64:v2.12.2 /bin/true)\n```\n\n从容器中拷贝文件\n```\ndocker cp $TEMP_CONTAINER_ID:/harbor-offline-installer-aarch64.tgz ./harbor-offline-installer-aarch64.tgz\n```\n\n删除容器实例\n```\ndocker rm $TEMP_CONTAINER_ID\n```\n### 接下来便是正常安装过程了\n\n以正常方式安装Harbor ARM64 Version\n```\ntar zxf harbor-offline-installer-aarch64.tgz\ncd harbor\ncp harbor.yml.tmpl harbor.yml\n```\n\n适当修改harbor.yml文件内容\n\nvi harbor.yml\n\n```\ninstall.sh\n```\n\n![Harbor-v2.12.2-Aarch64](https://github.com/wise2c-devops/build-harbor-aarch64/assets/3273357/49ce7cc3-918e-421c-86d9-2c06e9b42bb3)\n\n### 该项目工作原理（如何解决官方项目无法直接用于构建ARM64架构镜像?）\n\n在我们手头没有ARM设备的时候，如何构建完全基于官方代码的ARM64架构发现包？\n\n在众多免费的SaaS化的CI服务中，对ARM64架构支持体验最好的平台，我曾经用过TravisCI、GitlabCI、CircleCI，前两者已经不完全免费，因此一直都在用CircleCI构建我的工作相关镜像\n\n对于如何使用CircleCI，其实是和TravisCI这样的平台极其类似的，具体可参考这篇文章内容：https://mp.weixin.qq.com/s/PlBvzDlPQbnYTmyQoSLD5Q\n\n如果你希望自己及时构建自己的Harbor ARM64镜像，最简单的方法是fork本项目到你自己github账号，然后修改代码里的镜像名称前缀 alanpeng/ 为你自己的即可。\n\n涉及变更的文件有：\n\n![image](https://github.com/user-attachments/assets/b4a07cbb-5d7f-4c36-9d6c-e175cfa427cc)\n\n然后注册并登录你的CircleCI账号，同步你的github项目后对项目进行设置：\n\n![image](https://github.com/user-attachments/assets/cfbac344-5bd8-42d5-a245-be0b7c03237d)\n\n先注册docker hub账号，也可以是国内比如阿里云镜像仓库账号，然后做好设定：\n\n![image](https://github.com/user-attachments/assets/5d8e91ee-f111-4f93-9fa2-5eec17155965)\n\n后面你只需要针对整个项目里的Harbor的版本变化做更新即可自动获得最新版本的镜像了。\n\n![image](https://github.com/user-attachments/assets/7e7a6b6a-6b8b-40ac-97f2-f1c7a55efb98)\n\n每次提交代码变更，CircleCI会自动开始构建，如果失败可查看日志调整脚本或相关代码即可：\n\n![image](https://github.com/user-attachments/assets/8afb596c-8695-49d0-a4cd-07dc46f86b3d)\n\n![image](https://github.com/user-attachments/assets/d8b4064b-aa42-40eb-84c7-8d7420f46780)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwise2c-devops%2Fbuild-harbor-aarch64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwise2c-devops%2Fbuild-harbor-aarch64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwise2c-devops%2Fbuild-harbor-aarch64/lists"}