{"id":30202974,"url":"https://github.com/vimkim/cubrid-dev2-server","last_synced_at":"2025-08-13T11:13:56.465Z","repository":{"id":299056968,"uuid":"1001477784","full_name":"vimkim/cubrid-dev2-server","owner":"vimkim","description":"Dev Server Environment Setup","archived":false,"fork":false,"pushed_at":"2025-07-14T06:50:25.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-14T09:40:42.790Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vimkim.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,"zenodo":null}},"created_at":"2025-06-13T12:56:35.000Z","updated_at":"2025-07-14T06:50:28.000Z","dependencies_parsed_at":"2025-06-14T12:24:11.442Z","dependency_job_id":"7106a412-761d-46be-b72a-19ab19cbb53d","html_url":"https://github.com/vimkim/cubrid-dev2-server","commit_stats":null,"previous_names":["vimkim/cubrid-dev2-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vimkim/cubrid-dev2-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2Fcubrid-dev2-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2Fcubrid-dev2-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2Fcubrid-dev2-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2Fcubrid-dev2-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vimkim","download_url":"https://codeload.github.com/vimkim/cubrid-dev2-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2Fcubrid-dev2-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270228625,"owners_count":24548872,"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-08-13T02:00:09.904Z","response_time":66,"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":"2025-08-13T11:13:46.276Z","updated_at":"2025-08-13T11:13:56.419Z","avatar_url":"https://github.com/vimkim.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How To Configure?\n\n## Configure podman network (ipvlan)\n\nYou might want to change the IP_RANGE.\n\n```bash\n./podman-network.sh\n```\n\nIt is known that such network drivers like ipvlan requires rootful podman,\ntherefore you might need `sudo podman`.\n\n## Build Docker image (r8 with systemd)\n\n```bash\njust build\n```\n\nor,\n\n```bash\nsudo docker build -t local/r8-systemd .\n```\n\nBoth are equivalent.\n\n## Run containers\n\nEdit containers.yaml file, and run\n\n```bash\npython run_dev_containers.py\n```\n\n## Utility Scripts\n\n### podman-multiexec.sh\n\nIn order to execute a script in multiple containers that match a specific filter, you can use the `podman-multiexec.sh` utility script.\n\n```bash\nUsage: ./utils/podman-multiexec.sh -f \u003cfilter\u003e -s \u003cscript\u003e [options]\n\nOptions:\n  -f, --filter \u003cfilter\u003e    Filter containers by name pattern\n  -s, --script \u003cscript\u003e    Shell script to execute\n  -v, --verbose           Enable verbose output\n  -x, --execute           Actually execute the script (default is dry-run)\n  -h, --help              Show this help message\n\nExamples:\n  ./utils/podman-multiexec.sh -f vimkim -s abc.sh                    # Dry run (default)\n  ./utils/podman-multiexec.sh -f vimkim -s abc.sh --execute          # Actually execute\n  ./utils/podman-multiexec.sh -f nginx -s abc.sh -x                  # Actually execute\n```\n\n#### ⚠️ Important Warnings\n\n- **Always include your username in the filter** to avoid affecting other users' containers\n- The filter supports regular expressions and wildcards due to podman's filtering capabilities\n- **DO NOT use broad patterns** like `'.*'` or `'*'` with destructive commands (e.g., `/bin/rm -rf`) as this can damage all matching containers\n- Always test with dry-run mode first (default behavior) before using the `-x` flag to execute\n- Use caution when executing system-level commands across multiple containers\n\n## Q \u0026 A\n\n### ❓ Why is the Docker image so large and why are there so many layers? 2 GB?\n\n**💬 Answer:**\n\nThe Dockerfile is intentionally structured with many layers and a larger final image size **not to optimize for the minimal image size**, but to **optimize for faster iterative development and rebuild times**.\n\nDuring development, we prioritize **build efficiency** over the final image size. By keeping more layers and structuring the Dockerfile to maximize the use of Docker's layer cache, we can:\n\n- Avoid redoing expensive steps when only a small part of the code or configuration changes\n- Reuse previous build artifacts as much as possible\n- Speed up feedback cycles and local testing\n- Improve CI performance when caching is available\n\nThis trade-off is intentional and helps improve developer productivity and iteration speed.\n\nIf a smaller image is desired for production deployment, a separate, more optimized Dockerfile (e.g., using multi-stage builds or distroless images) can be used.\n\n### IP address already in use\n\nOnce I recraeted the ipvlan network, and create a container with the previously used IP address, I got the following error:\n\n```\nIP address already in use ...\n```\n\nSolution is the following. Caution: this will stop all podman processes and clear the network cache. Know what you are doing.\n\n```bash\n# Restart network namespace\nsudo ip netns list  # check for any leftover namespaces\nsudo ip netns delete \u003cnamespace_name\u003e  # if any exist\n\n# Reload netowrk modules\nsudo systemctl restart NetworkManager\nsudo systemctl restart systemd-networkd\n```\n\n```bash\n# Stop all podman processes\nsudo pkill -f podman\nsudo pkill -f conmon\n```\n\nClear any remaining network cache.\n\n```bash\n# Flush route cache\nsudo ip route flush cache\n\n# Clear ARP/neighbor cache\nsudo ip neigh flush all\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimkim%2Fcubrid-dev2-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvimkim%2Fcubrid-dev2-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimkim%2Fcubrid-dev2-server/lists"}