Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
/ terrctl Public archive

A command-line client for Fastly Terrarium. https://wasm.fastlylabs.com

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

fastly/terrctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Build Status

terrctl

terrctl uploads source code leveraging the Fastly Labs Terrarium API directly to the Terrarium sandbox.

Download

Pre-built binaries for most platforms are available in the release section.

Usage

Usage: terrctl [options] <source code path>

  -deploy-timeout uint
    	Timeout for deployment (seconds) (default 90)
  -health-timeout uint
    	Timeout for health checks (seconds) (default 30)
  -http-timeout uint
    	Timeout for HTTP client queries (seconds) (default 30)
  -language string
    	language (auto|c|rust|assemblyscript|wasm) (default "auto")
  -logfile string
    	Write logs to file
  -loglevel value
    	Log level (0-6) (default 1)
  -max-deploy-attempts uint
    	Maximum number of attempts for deployment (default 10)
  -syslog
    	Send logs to the local system logger (Eventlog on Windows, syslog on Unix)

Demo

./terrctl /tmp/src/image_example

[2019-01-19 00:30:36] [INFO] Preparing upload of directory [/tmp/src/image_example]
[2019-01-19 00:30:36] [INFO] Guessed programming language: c
[2019-01-19 00:30:36] [NOTICE] Upload in progress...
[2019-01-19 00:30:42] [NOTICE] Upload done, compilation in progress...
[2019-01-19 00:30:43] [INFO] Upload complete, waiting for build...
[2019-01-19 00:30:44] [INFO] Building...
[2019-01-19 00:30:51] [INFO] Generating machine code...
[2019-01-19 00:31:00] [INFO] Deploying...
[2019-01-19 00:31:02] [INFO] Deploy complete: https://capital-telephone-electricity-since.fastly-terrarium.com/
[2019-01-19 00:31:02] [INFO] Instance is deployed
[2019-01-19 00:31:23] [NOTICE] Instance is running and reachable over HTTPS
[2019-01-19 00:31:23] [NOTICE] New instance deployed at [https://capital-telephone-electricity-since.fastly-terrarium.com]

Contact

labs@fastly.com