Docker container with the shebang.run site
1.0K
A platform for hosting and sharing shell scripts and code snippets with built-in versioning, encryption, and signing.
bash
docker run -d
-p 8080:8080
-e JWT_SECRET="your-secret-key"
-e DATABASE_URL="root:password@tcp(mariadb:3306)/shebang?parseTime=true"
dingbatter/shebangrun:latest
yaml version: '3.8' services: app: image: dingbatter/shebangrun:latest ports: - "8080:8080" environment: - JWT_SECRET=your-secret-key - DATABASE_URL=root:password@tcp(mariadb:3306)/shebang?parseTime=true - STORAGE_TYPE=s3 depends_on: - mariadb - minio
Full docker-compose.yml: https://github.com/skibare87/shebangrun/blob/main/docker-compose.yml
bash
curl https://your-domain.com/username/scriptname | sh
curl https://your-domain.com/username/scriptname@v5 | sh
curl https://your-domain.com/username/scriptname@dev | sh
bash pip install shebangrun
python from shebangrun import run
run(username="user", script="deploy", eval=True)
run(username="user", script="private", key=open("private.pem").read())
| Variable | Description | Default |
|---|---|---|
SERVER_PORT | Server port | 8080 |
DATABASE_URL | MariaDB connection string | Required |
JWT_SECRET | Secret for JWT tokens | Required |
STORAGE_TYPE | s3 or local | s3 |
S3_ENDPOINT | S3 endpoint URL | minio:9000 |
S3_ACCESS_KEY | S3 access key | minioadmin |
S3_SECRET_KEY | S3 secret key | minioadmin |
S3_BUCKET | S3 bucket name | scripts |
DEFAULT_RATE_LIMIT | Requests per minute | 50 |
DEFAULT_MAX_SCRIPTS | Max scripts per user | 25 |
DEFAULT_MAX_SCRIPT_SIZE | Max script size (bytes) | 1048576 |
GITHUB_CLIENT_ID | GitHub OAuth client ID | Optional |
GITHUB_CLIENT_SECRET | GitHub OAuth secret | Optional |
GOOGLE_CLIENT_ID | Google OAuth client ID | Optional |
GOOGLE_CLIENT_SECRET | Google OAuth secret | Optional |
MIT License
Content type
Image
Digest
sha256:61845f539…
Size
13 MB
Last updated
8 months ago
docker pull dingbatter/shebangrun