https://github.com/syncano/codebox
Codebox (script runner) for user provided scripts.
https://github.com/syncano/codebox
container docker go kubernetes serverless
Last synced: 10 months ago
JSON representation
Codebox (script runner) for user provided scripts.
- Host: GitHub
- URL: https://github.com/syncano/codebox
- Owner: Syncano
- Created: 2018-11-06T22:01:02.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-18T16:10:58.000Z (almost 5 years ago)
- Last Synced: 2023-08-12T18:08:38.505Z (over 2 years ago)
- Topics: container, docker, go, kubernetes, serverless
- Language: Go
- Homepage: https://syncano.io
- Size: 841 KB
- Stars: 4
- Watchers: 5
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Codebox (Script Runner)
[](https://circleci.com/gh/codebox)
## Dependencies
- Golang version 1.15.
- docker 17.03+ and docker-compose (`pip install docker-compose`).
## Testing
- Run `make test` to run code checks and all tests with coverage. This will require Go installed on host.
- During development it is very useful to run dashboard for tests through `goconvey`. Install and run through `make goconvey`.
- To run tests in container run: `make test-in-docker`.
## Starting locally
- Build executable binary by `make build build-wrapper` or `make build-in-docker`. They both do the same but the first one requires dependencies to installed on local machine. Second command will automatically fetch all dependencies in docker container.
- Rebuild the image by `make docker`.
- Run `make start` to spin up 1 load balancer and 1 worker instance.
## Deployment
- You need to first build a static version and a docker image. See first two steps of **Starting locally** section.
- Make sure you have a working `kubectl` installed and configured. During deployment you may also require `gpg` (gnupg) and `jinja2-cli` (`pip install jinja2-cli[yaml]`).
- Run `make deploy-staging` to deploy on staging or `make deploy-production` to deploy on production.