Skip to content
A command-line client for Fastly Terrarium. https://wasm.fastlylabs.com
Go
Branch: master
Clone or download
jedisct1 Add freebsd/armv7 builds
On FreeBSD, generic ARM builds don't work on ARMv7+.
Latest commit 68d3419 Apr 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
terrctl Merge pull request #2 from fastly/fdenis/handle-malformed-json Mar 12, 2019
vendor Switch from Go dep to Go modules Mar 11, 2019
.gitignore Initial import Jan 19, 2019
.travis.yml Add freebsd/armv7 builds Apr 15, 2019
LICENSE-APACHE Initial import Jan 19, 2019
LICENSE-MIT Initial import Jan 19, 2019
README.md Initial import Jan 19, 2019
go.mod Switch from Go dep to Go modules Mar 11, 2019
go.sum Switch from Go dep to Go modules Mar 11, 2019
logo.png Initial import Jan 19, 2019

README.md

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

You can’t perform that action at this time.