{"id":20096381,"url":"https://github.com/adrianliechti/devkit","last_synced_at":"2025-05-06T05:31:39.628Z","repository":{"id":37875138,"uuid":"495043209","full_name":"adrianliechti/devkit","owner":"adrianliechti","description":"Local Developer Tools \u0026 Service Catalog","archived":false,"fork":false,"pushed_at":"2025-02-01T18:36:30.000Z","size":351,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T08:51:16.684Z","etag":null,"topics":["devops","docker"],"latest_commit_sha":null,"homepage":"","language":"Go","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/adrianliechti.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":"2022-05-22T11:41:46.000Z","updated_at":"2025-01-25T23:20:32.000Z","dependencies_parsed_at":"2024-06-20T00:12:33.914Z","dependency_job_id":"af5633c8-6b86-4fae-b8ce-e96108ff7085","html_url":"https://github.com/adrianliechti/devkit","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianliechti%2Fdevkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianliechti%2Fdevkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianliechti%2Fdevkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianliechti%2Fdevkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianliechti","download_url":"https://codeload.github.com/adrianliechti/devkit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252629050,"owners_count":21779133,"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":["devops","docker"],"created_at":"2024-11-13T16:58:41.083Z","updated_at":"2025-05-06T05:31:38.613Z","avatar_url":"https://github.com/adrianliechti.png","language":"Go","readme":"# DevKit\n\n\n## Application Template\n\nGo, Python, Spring, ASP.NET, Angular, React,  NGINX, ...\n\n```shell\n$ devkit template golang\n\u003e App Name: demo\n\n$ ls demo           \nDockerfile    chart         go.mod        main.go       public        skaffold.yaml\n\n```\n\n\n## Local Service Catalog\n\n- Databases: PostgreSQL, MariaDB, Redis, Elasticsearch, ...\n- Messaging: ActiveMQ, RabbitMQ, Kafka, ...\n- Tools: Jenkins, SonarQube, Mailpit, ...\n- Storage: MinIO, Vault, Artifactory, Nexus, ...\n\n### Create instance\n\n```shell\n$ devkit postgres create\n\nHAPPY_MAHAVIRA (f046e1237937)\n\nENDPOINT        TARGET                \nlocalhost:55095 tcp://172.17.0.5:5432\n\nDESCRIPTION     VALUE                                                               \nDatabase        db                                                                 \nUsername        postgres                                                           \nPassword        r02ZxXR1E5                                                         \nURI             postgresql://postgres:r02ZxXR1E5@localhost:55095/db?sslmode=disable\n```\n\n### List instances\n\n```shell\n$ devkit postgres list\n\nhappy_mahavira\n```\n\n### Display info\n\n```shell\n$ devkit postgres info\n\u003e happy_mahavira\n\nHAPPY_MAHAVIRA (f046e1237937)\n\nENDPOINT        TARGET                \nlocalhost:55095 tcp://172.17.0.5:5432\n\nDESCRIPTION     VALUE                                                               \nDatabase        db                                                                 \nUsername        postgres                                                           \nPassword        r02ZxXR1E5                                                         \nURI             postgresql://postgres:r02ZxXR1E5@localhost:55095/db?sslmode=disable\n```\n\n### Follow logs\n\n```shell\n$ devkit postgres logs\n\u003e happy_mahavira\n\n2024-07-14 12:09:29.661 UTC [1] LOG:  database system is ready to accept connections\n```\n\n### Start connected client\n\n```shell\n$ devkit postgres cli\n\u003e happy_mahavira\n\npsql (16.3 (Debian 16.3-1.pgdg120+1))\nType \"help\" for help.\n\ndb=#\n```\n\n### Open shell\n\n```shell\n$ devkit postgres shell\n\u003e happy_mahavira\n\nroot@f046e1237937:/#\n```\n\n### Delete instance\n\n```shell\n$ devkit postgres delete\n\u003e happy_mahavira\n```\n\n\n## Analze Repository\n\n### Static Analysis (using [Semgrep](https://semgrep.dev))\n\n```shell\n$ devkit sast\n```\n\n### Vulnerability Scanning (using [Trivy](https://github.com/aquasecurity/trivy))\n\n```shell\n$ devkit scan\n```\n\n### Lines of Code (using [cloc](https://github.com/AlDanial/cloc))\n\n```shell\n$ devkit cloc\n```\n\n### List big blobs\n\n```shell\n$ devkit git blobs\n```\n\n### Find leaks (using [Gitleaks](https://github.com/gitleaks/gitleaks))\n\n```shell\n$ devkit git leaks\n```\n\n### Delete file in history\n\n```shell\n$ devkit git purge /path/to/file1 /path/to/file2\n```\n\n\n## Analyze Images\n\n### Inspect (using [Whaler](https://github.com/P3GLEG/Whaler))\n\n```shell\n$ devkit image inspect --image ubuntu\n```\n\n### Dockerfile Linting (using [Dockle](https://github.com/goodwithtech/dockle))\n\n```shell\n$ devkit image lint --image ubuntu\n```\n\n### Vulnerability Scanning (using [Trivy](https://github.com/aquasecurity/trivy))\n\n```shell\n$ devkit image scan --image ubuntu\n```\n\n### Show Bill of Material (using [Syft](https://github.com/anchore/syft))\n\n```shell\n$ devkit image bom --image ubuntu\n```\n\n### TUI Browser (using [Dive](https://github.com/wagoodman/dive))\n\n```shell\n$ devkit image browse --image ubuntu\n```\n\n## Utilities\n\n### Local Web IDE\n\n```shell\n$ devkit code\n\u003e default\n\nNAME    VALUE                 \nURL     http://localhost:3000\n\nForward /Users/User/Projects to /workspace\n```\n\n### Local Web Server\n\nSimple File Server with CORS and optional SPA support\n\n```shell\n$ devkit server [--port 3000] [--spa] [--index index.html]\n```\n\n### Local Proxy\n\nTest your application for proxy support\n\n```shell\n$ devkit proxy [--port 3128] [--user username] [--password password]\n```\n\n\n## Install\n\n### Requirements\n\n- Running [Docker](https://docs.docker.com/get-docker/), [Podman](https://podman-desktop.io), [Rancher](https://rancherdesktop.io) or [Lima VM](https://lima-vm.io/docs/examples/)\n\n#### MacOS / Linux\n\n[Homebrew](https://brew.sh)\n\n```\nbrew install adrianliechti/tap/devkit\n```\n\n#### Windows\n\n[Scoop](https://scoop.sh)\n\n```shell\nscoop bucket add adrianliechti https://github.com/adrianliechti/scoop-bucket\nscoop install adrianliechti/devkit\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianliechti%2Fdevkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianliechti%2Fdevkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianliechti%2Fdevkit/lists"}