Build & Deployment
Build Your Container
Option 1: Snarkify command (recommended)
Simply run:
To build from a sub-directory, simply use the
--base_dir={path_to_sub_dir}
option.
Heads up! The first build is like brewing a fine cup of coffee—it takes a bit longer, but it's worth the wait. Patience is a virtue, and great things are brewing!
Option 2: Docker command
Alternatively, it's also possible to use native docker
command to build your image by following these steps:
Have a Dockerfile ready to build your code. Here is a template Dockerfile to invoke the snarkify binary.
Use docker command to build an image
Deploy Your Container
Once your Docker image has been successfully built, you're just one step away from launching your service. To proceed, simply execute the following command:
You can assign a unique tag to each deployment for easy reference by using the
--tag
option.Should you need to set environment variables, you can conveniently update them using the
--env
flag. For example,snarkify deploy --env foo=bar --env hello=aloha
.If you use the second option (Docker command) to build your image, you need to specify the image using
--image
option.
Last updated