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

https://github.com/laisky/go-ramjet

easy cronjob
https://github.com/laisky/go-ramjet

Last synced: 3 months ago
JSON representation

easy cronjob

Awesome Lists containing this project

README

        

# Go-Ramjet

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Go Report Card](https://goreportcard.com/badge/github.com/Laisky/go-ramjet)](https://goreportcard.com/report/github.com/Laisky/go-ramjet)
[![GoDoc](https://godoc.org/github.com/Laisky/go-ramjet?status.svg)](https://godoc.org/github.com/Laisky/go-ramjet)

Event-driven & Time-scheduler framwork.

## Dockerlize

Make docker image

```sh
docker build . -t ppcelery/go-ramjet:latest
docker push ppcelery/go-ramjet:latest
```

Run

```sh
# test
docker run -it --rm \
-v /etc/go-ramjet/settings/settings.yml:/etc/go-ramjet/settings/settings.yml \
-v /data/fluentd/fluentd-conf/backups:/data/fluentd/fluentd-conf/backups \
-e TASKS=heartbeat \
ppcelery/go-ramjet:test \
/main --debug

# prod
docker run -it --rm
-v /etc/go-ramjet/settings/settings.yml:/etc/go-ramjet/settings/settings.yml \
-v /data/fluentd/fluentd-conf/backups:/data/fluentd/fluentd-conf/backups \
ppcelery/go-ramjet:latest
```