Skip to content

obitech/docker-jsonnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Alpine based Docker image to run jsonnet.

Needs about 328MB on disk.

Run it

Try it out with:

$ docker run obitech/docker-jsonnet -e '{ x: 1 , y: self.x + 1 } { x: 10 }'
{
   "x": 10,
   "y": 11
}

You can mount your directory into /workdir inside the container, then just evaluate the file:

$ docker run -v $(pwd)/examples:/workdir obitech/docker-jsonnet landingpage.jsonnet
{
   "person1": {
      "name": "Alice",
      "welcome": "Hello Alice!"
   },
   "person2": {
      "name": "Bob",
      "welcome": "Hello Bob!"
   }
}

About

Simple Docker container for Jsonnet

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published