lambda

command module
v0.0.0-...-3c10da9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2017 License: MIT Imports: 10 Imported by: 0

README

Lambda

CircleCI Codacy Badge

Run anything in container on Eru

NOTE: Image should have a user named lambda for running command, if there was no lambda user inside, please use raw mode.

We build a run-lambda image named projecteru2/footstone:run-lambda. This is the Dockerfile.

Params

Must

  • config
  • name
  • command

Optional

  • env
  • volumes
  • raw

Get from config (can override)

  • pod
  • network
  • image
  • cpu
  • mem
  • timeout
  • stdin

Default

  • count
  • admin
  • debug
  • help
  • version
Admin mode

if admin is True

pod and volumes will be rewrited.

their values get from config file.

Developing
Test

make test

Build

make build

RPM

./make-rpm

To make rpm, you should install fpm first.

Dockerized Lambda

Image: projecteru2/lambda

docker run -it --rm \
  --net host \
  --name eru-lambda \
  -v <HOST_CONFIG_DIR_PATH>:/etc/eru \
  projecteru2/lambda \
  /usr/bin/eru-lambda <PARAMS>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
rpc
mock_grpc
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL