This repository contains example code that shows you how to do common things in sandbox environments using Jumppad.
Generate a CA and leaf certificate and use them in a webserver to server traffic over https.
jumppad up certificates
curl --cacert ~/.jumppad/data/certs/root.cert https://webserver.container.jumppad.dev
The container folder contains multiple examples that use containers.
The first example is a minimal one that only spins up a single Nginx container and exposes the http port on the host.
jumppad up container/minimal
curl localhost
The second example is more advanced and creates an Ubuntu container and mounts a MOTD (message of the day) file into the container. It then executes a change password command in the ubuntu container, so that you can then log in to the container and see the motd.
jumppad up container/expanded
docker exec -ti ubuntu.container.jumppad.dev login -f root
Create multiple containers with a dependency between them.
jumppad up containers
Create a postgres database and populate it with data. Then query that data using a remote exec.
jumppad up database
Warning
The following examples are still being worked on, or work has not yet started.
Create a Kubernetes cluster, then install a helm chart on it. Then create a Kubernetes deployment through YAML config, that depends on the helm chart being available, and expose a Kubernets service using an ingress resource.
Create and use a module from disk and from github.
Create a Nomad cluster, then deploy a Nomad job on it and expose the service using an ingress resource.
Generate random values and use them in a container.
Show template resource, file function, template_file function, then show how to use the generated template.
Use Terraform to provision a container and then use the Terraform output to configure another container.
Make an HTTP request and use the response to configure a container.