Skip to content

michaeljs1990/jsonnet-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jsonnet Playground

This is largely inspired by the work done on golang playground and takes advantage of the go-jsonnet program to give you similar features. In memory and persistance via mysql are supported.

Dockerfile

docker run -p 8080:8080 michaeljs1990/jsonnet-playground:1.0.0

See all available tags at https://hub.docker.com/repository/docker/michaeljs1990/jsonnet-playground

Quick MySQL Testing

For quick mysql seting you can spin up a docker container with the following command.

$ docker run --net=host --name jsonnet --rm -e MYSQL_ROOT_PASSWORD=secret -e MYSQL_DATABASE=jsonnet -d mysql:5.7
$ JSONNET_MYSQL_CONN="root:secret@tcp(127.0.0.1:3306)/jsonnet" ./jsonnet-playground -sql

Local Testing

Build and run

./jsonnet-playground -in-memory