Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rumpl/ctrun


https://github.com/rumpl/ctrun

Last synced: 15 days ago
JSON representation

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"
```