Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rumpl/ctrun
https://github.com/rumpl/ctrun
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rumpl/ctrun
- Owner: rumpl
- Created: 2020-08-13T13:13:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-07T13:44:10.000Z (over 4 years ago)
- Last Synced: 2024-11-24T20:32:28.436Z (3 months ago)
- Language: Go
- Size: 194 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ctrun
## Building
You need to have Docker installed and running
```shell
$ make
```This will create `bin/ctrun`
## Running
`ctrun` uses an S3 bucket as storage, you will need to define and pass auth info about the S3:
- `--endpoint` (`$S3_ENPOINT`)
- `--access-key` (`$ACCESS_KEY_ID`)
- `--secret-key-id` (`$SECRET_KEY_ID`)
- `--bucket` (`$S3_BUCKET`)Once you define these environment variables you can simply run:
```shell
$ ./bin/ctrun
🚀 Server started
```Or
```shell
$ ./bin/ctrun --endpoint s3.amazon.com --bucket ctrun --access-key ACCESS_KEY --secret-key-id SECRET_KEY_ID
🚀 Server started
```## Running with minio
Start the minio server:
```shell
minio server PATH
```**for mac**: add `127.0.0.1 host.docker.internal` to your `/etc/hosts` file.
Launch the server:
```shell
$ ctrun --endpoint host.docker.internal:9000 --access-key "minio" --secret-key-id "miniostorage"
```