{"id":23290863,"url":"https://github.com/imega/imega-docker-base-builder","last_synced_at":"2025-07-30T23:36:29.284Z","repository":{"id":145388014,"uuid":"470621694","full_name":"iMega/imega-docker-base-builder","owner":"iMega","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-19T19:39:27.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-24T20:02:07.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iMega.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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-03-16T14:36:01.000Z","updated_at":"2023-06-19T19:44:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9ca4ce7-7b66-4cf0-a22e-c501ea51ee49","html_url":"https://github.com/iMega/imega-docker-base-builder","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/iMega/imega-docker-base-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMega%2Fimega-docker-base-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMega%2Fimega-docker-base-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMega%2Fimega-docker-base-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMega%2Fimega-docker-base-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iMega","download_url":"https://codeload.github.com/iMega/imega-docker-base-builder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMega%2Fimega-docker-base-builder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267960921,"owners_count":24172513,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-20T05:13:11.657Z","updated_at":"2025-07-30T23:36:29.276Z","avatar_url":"https://github.com/iMega.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Builder\n\nCreate rootfs for docker\n\n[![CircleCI](https://circleci.com/gh/imega-docker/base-builder.svg?style=svg)](https://circleci.com/gh/imega-docker/base-builder) [![Build Status](https://travis-ci.org/imega-docker/base-builder.svg?branch=master)](https://travis-ci.org/imega-docker/base-builder)\n\n## Usage\n\nIn your new project add folder `runner`. This dir for shell scripts(bash). Put `entrypoint.sh` script in `runner` this script will run first.\nNext step. Put in project `Makefile`.\n\n```\n# Build rootfs for php\n\nbuild:\n\t@docker run --rm \\\n\t\t-v $(CURDIR)/runner:/runner \\\n\t\t-v $(CURDIR)/build:/build \\\n\t\t-v $(CURDIR)/src:/src \\\n\t\timega/base-builder \\\n# this packages installed for your image\n\t\t--packages=\" \\\n\t\t\tgit \\\n\t\t\tphp7@edge-testing \\\n\t\t\t\" \\\n# this packages installed for auxiliary tools\n\t\t-d=\"curl\"\n\n.PHONY: build\n```\n\n-   -p --packages - this packages installed for your image\n-   -d --dev-packages - this packages installed for auxiliary tools\n\n## Start build\n\n`make build`\n\nYou will receive a rootfs.tar.gz in a folder build.\n\n## Build your image\n\nPut Docker file in project. e.g.\n\n```\nFROM scratch\n\nADD build/rootfs.tar.gz /\n\nENTRYPOINT [\"php\"]\n```\n\nrun `$docker run build -t test-image .`\n\n## Runner scripts\n\nYou are allowed to use variables:\n\n-   \\$ROOTFS - This directory is the root of the file system.\n-   \\$SRC - This directory will be mounted in builder.\n\ne.g.\n\nYou need to transfer configs in their way. Configs you place in `SRC` directory. Put command in `entrypoint.sh`\n\n```\ncp $SRC/daemon.sh $ROOTFS/app/daemon.sh\ncp $SRC/rsyncd.conf $ROOTFS/etc/rsyncd.conf\n```\n\n## Packages\n\nAll packages can be found at http://pkgs.alpinelinux.org/packages. Specifying only the package name it will be taken from the main repository.\nAfter adding a prefix to the package you will be able to determine the Eje repository.\n\nThe available prefixes is\n\n-   `stable-main`\n-   `stable-community`\n-   `edge-main`\n-   `edge-testing`\n-   `edge-community`\n-   `v318`\n-   `v318community`\n-   `v317`\n-   `v317community`\n-   `v316`\n-   `v316community`\n-   `v315`\n-   `v315community`\n-   `v314`\n-   `v314community`\n-   `v313`\n-   `v313community`\n-   `v312`\n-   `v312community`\n-   `v311`\n-   `v311community`\n-   `v310`\n-   `v310community`\n-   `v39`\n-   `v39community`\n-   `v38`\n-   `v38community`\n-   `v37`\n-   `v37community`\n-   `v36`\n-   `v36community`\n-   `v35`\n-   `v35community`\n-   `v34`\n-   `v34community`\n-   `v33`\n-   `v33community`\n-   `v32`\n-   `v31`\n-   `v30`\n-   `v30testing`\n\ne.g.: `php7@edge-community` from http://dl-cdn.alpinelinux.org/alpine/edge/community\n\n## The MIT License (MIT)\n\nCopyright © 2020 iMega \u003cinfo@imega.ru\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimega%2Fimega-docker-base-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimega%2Fimega-docker-base-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimega%2Fimega-docker-base-builder/lists"}