https://github.com/adrianliechti/devkit
Local Developer Tools & Service Catalog
https://github.com/adrianliechti/devkit
devops docker
Last synced: about 1 month ago
JSON representation
Local Developer Tools & Service Catalog
- Host: GitHub
- URL: https://github.com/adrianliechti/devkit
- Owner: adrianliechti
- License: apache-2.0
- Created: 2022-05-22T11:41:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-01T18:36:30.000Z (4 months ago)
- Last Synced: 2025-04-09T08:51:16.684Z (2 months ago)
- Topics: devops, docker
- Language: Go
- Homepage:
- Size: 343 KB
- Stars: 13
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DevKit
## Application Template
Go, Python, Spring, ASP.NET, Angular, React, NGINX, ...
```shell
$ devkit template golang
> App Name: demo$ ls demo
Dockerfile chart go.mod main.go public skaffold.yaml```
## Local Service Catalog
- Databases: PostgreSQL, MariaDB, Redis, Elasticsearch, ...
- Messaging: ActiveMQ, RabbitMQ, Kafka, ...
- Tools: Jenkins, SonarQube, Mailpit, ...
- Storage: MinIO, Vault, Artifactory, Nexus, ...### Create instance
```shell
$ devkit postgres createHAPPY_MAHAVIRA (f046e1237937)
ENDPOINT TARGET
localhost:55095 tcp://172.17.0.5:5432DESCRIPTION VALUE
Database db
Username postgres
Password r02ZxXR1E5
URI postgresql://postgres:r02ZxXR1E5@localhost:55095/db?sslmode=disable
```### List instances
```shell
$ devkit postgres listhappy_mahavira
```### Display info
```shell
$ devkit postgres info
> happy_mahaviraHAPPY_MAHAVIRA (f046e1237937)
ENDPOINT TARGET
localhost:55095 tcp://172.17.0.5:5432DESCRIPTION VALUE
Database db
Username postgres
Password r02ZxXR1E5
URI postgresql://postgres:r02ZxXR1E5@localhost:55095/db?sslmode=disable
```### Follow logs
```shell
$ devkit postgres logs
> happy_mahavira2024-07-14 12:09:29.661 UTC [1] LOG: database system is ready to accept connections
```### Start connected client
```shell
$ devkit postgres cli
> happy_mahavirapsql (16.3 (Debian 16.3-1.pgdg120+1))
Type "help" for help.db=#
```### Open shell
```shell
$ devkit postgres shell
> happy_mahaviraroot@f046e1237937:/#
```### Delete instance
```shell
$ devkit postgres delete
> happy_mahavira
```## Analze Repository
### Static Analysis (using [Semgrep](https://semgrep.dev))
```shell
$ devkit sast
```### Vulnerability Scanning (using [Trivy](https://github.com/aquasecurity/trivy))
```shell
$ devkit scan
```### Lines of Code (using [cloc](https://github.com/AlDanial/cloc))
```shell
$ devkit cloc
```### List big blobs
```shell
$ devkit git blobs
```### Find leaks (using [Gitleaks](https://github.com/gitleaks/gitleaks))
```shell
$ devkit git leaks
```### Delete file in history
```shell
$ devkit git purge /path/to/file1 /path/to/file2
```## Analyze Images
### Inspect (using [Whaler](https://github.com/P3GLEG/Whaler))
```shell
$ devkit image inspect --image ubuntu
```### Dockerfile Linting (using [Dockle](https://github.com/goodwithtech/dockle))
```shell
$ devkit image lint --image ubuntu
```### Vulnerability Scanning (using [Trivy](https://github.com/aquasecurity/trivy))
```shell
$ devkit image scan --image ubuntu
```### Show Bill of Material (using [Syft](https://github.com/anchore/syft))
```shell
$ devkit image bom --image ubuntu
```### TUI Browser (using [Dive](https://github.com/wagoodman/dive))
```shell
$ devkit image browse --image ubuntu
```## Utilities
### Local Web IDE
```shell
$ devkit code
> defaultNAME VALUE
URL http://localhost:3000Forward /Users/User/Projects to /workspace
```### Local Web Server
Simple File Server with CORS and optional SPA support
```shell
$ devkit server [--port 3000] [--spa] [--index index.html]
```### Local Proxy
Test your application for proxy support
```shell
$ devkit proxy [--port 3128] [--user username] [--password password]
```## Install
### Requirements
- 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/)
#### MacOS / Linux
[Homebrew](https://brew.sh)
```
brew install adrianliechti/tap/devkit
```#### Windows
[Scoop](https://scoop.sh)
```shell
scoop bucket add adrianliechti https://github.com/adrianliechti/scoop-bucket
scoop install adrianliechti/devkit
```