-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from bots-garden/gardening-before-040
Gardening before `0.0.4`
- Loading branch information
Showing
40 changed files
with
933 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
CapsCtl v0.3.9 🥒 [cucumber] | ||
CapsCtl v0.4.0 🌶️ [chili pepper] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[CLI] v0.3.9 🥒 [cucumber] | ||
[CLI] v0.4.0 🌶️ [chili pepper] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
tmp/*.wasm | ||
*.wasm | ||
capsctl | ||
capsule-http | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
version: '3' | ||
|
||
tasks: | ||
|
||
hello-functions: | ||
cmds: | ||
- | # hello-default | ||
cd functions/hello-default | ||
tinygo build -o hello-default.wasm \ | ||
-scheduler=none \ | ||
--no-debug \ | ||
-target wasi ./main.go | ||
ls -lh *.wasm | ||
mv hello-default.wasm ../.. | ||
- | # hello-blue | ||
cd functions/hello-blue | ||
tinygo build -o hello-blue.wasm \ | ||
-scheduler=none \ | ||
--no-debug \ | ||
-target wasi ./main.go | ||
ls -lh *.wasm | ||
mv hello-blue.wasm ../.. | ||
- | # hello-green | ||
cd functions/hello-green | ||
tinygo build -o hello-green.wasm \ | ||
-scheduler=none \ | ||
--no-debug \ | ||
-target wasi ./main.go | ||
ls -lh *.wasm | ||
mv hello-green.wasm ../.. | ||
- | # hello-orange | ||
cd functions/hello-orange | ||
tinygo build -o hello-orange.wasm \ | ||
-scheduler=none \ | ||
--no-debug \ | ||
-target wasi ./main.go | ||
ls -lh *.wasm | ||
mv hello-orange.wasm ../.. | ||
capsctl: | ||
description: > | ||
Build capsctl, and copy the binary to the current directory | ||
`/capsule/capsule-http/tests/faas` | ||
cmds: | ||
- | | ||
echo "📦 Building capsctl..." | ||
cd ../../../capsctl | ||
pwd | ||
go build -ldflags="-s -w" -o capsctl | ||
ls -lh capsctl | ||
mv capsctl ../capsule-http/tests/faas | ||
cd ../capsule-http/tests/faas | ||
./capsctl --version | ||
capsule-http: | ||
description: > | ||
Build capsule-http, and copy the binary to the current directory | ||
`/capsule/capsule-http/tests/faas` | ||
cmds: | ||
- | | ||
echo "📦 Building capsule-http..." | ||
cd ../.. | ||
pwd | ||
go build -ldflags="-s -w" -o capsule-http | ||
ls -lh capsule-http | ||
mv capsule-http ./tests/faas | ||
cd ./tests/faas | ||
./capsule-http --version | ||
# Build of capsule-http | ||
install-capsule-http: | ||
cmds: | ||
- | | ||
echo "📦 Building capsule-http..." | ||
cd ../.. | ||
pwd | ||
go build -ldflags="-s -w" -o capsule-http | ||
ls -lh capsule-http | ||
sudo cp capsule-http /usr/local/bin/capsule-http | ||
capsule-http --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version: '3' | ||
|
||
env: | ||
CAPSULE_FAAS_TOKEN: "ILOVEPANDAS" | ||
CAPSULE_MAIN_PROCESS_URL: "http://capsule-ide.local:8080" | ||
|
||
tasks: | ||
|
||
orange: | ||
cmds: | ||
- | | ||
curl -X POST ${CAPSULE_MAIN_PROCESS_URL}/functions/hello/orange \ | ||
-H 'Content-Type: text/plain; charset=utf-8' \ | ||
-d 'Bob Morane' | ||
orange_two: | ||
cmds: | ||
- | | ||
curl -X POST ${CAPSULE_MAIN_PROCESS_URL}/functions/hello/orange_two \ | ||
-H 'Content-Type: text/plain; charset=utf-8' \ | ||
-d 'Bob Morane' | ||
green: | ||
cmds: | ||
- | | ||
curl -X POST ${CAPSULE_MAIN_PROCESS_URL}/functions/hello/green \ | ||
-H 'Content-Type: text/plain; charset=utf-8' \ | ||
-d 'Bob Morane' | ||
blue: | ||
cmds: | ||
- | | ||
curl -X POST ${CAPSULE_MAIN_PROCESS_URL}/functions/hello/blue \ | ||
-H 'Content-Type: text/plain; charset=utf-8' \ | ||
-d 'Bob Morane' | ||
default: | ||
description: > | ||
The `default` revision can be call without specifying `default` into the route | ||
cmds: | ||
- | | ||
curl -X POST ${CAPSULE_MAIN_PROCESS_URL}/functions/hello \ | ||
-H 'Content-Type: text/plain; charset=utf-8' \ | ||
-d 'Bob Morane' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
version: '3' | ||
|
||
description: > | ||
`CAPSULE_FAAS_TOKEN` and `CAPSULE_MAIN_PROCESS_URL` are required | ||
to run `capsctl` | ||
env: | ||
CAPSULE_FAAS_TOKEN: "ILOVEPANDAS" | ||
CAPSULE_MAIN_PROCESS_URL: "http://capsule-ide.local:8080" | ||
|
||
tasks: | ||
|
||
orange: | ||
cmds: | ||
- | | ||
./capsctl \ | ||
--cmd=drop \ | ||
--name=hello \ | ||
--revision=orange | ||
orange_two: | ||
cmds: | ||
- | | ||
./capsctl \ | ||
--cmd=drop \ | ||
--name=hello \ | ||
--revision=orange_two | ||
green: | ||
cmds: | ||
- | | ||
./capsctl \ | ||
--cmd=drop \ | ||
--name=hello \ | ||
--revision=green | ||
blue: | ||
cmds: | ||
- | | ||
./capsctl \ | ||
--cmd=drop \ | ||
--name=hello \ | ||
--revision=blue | ||
default: | ||
cmds: | ||
- | | ||
./capsctl \ | ||
--cmd=drop \ | ||
--name=hello \ | ||
--revision=default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: '3' | ||
|
||
description: > | ||
`CAPSULE_FAAS_TOKEN` and `CAPSULE_MAIN_PROCESS_URL` are required | ||
to run `capsctl` | ||
env: | ||
CAPSULE_FAAS_TOKEN: "ILOVEPANDAS" | ||
CAPSULE_MAIN_PROCESS_URL: "http://capsule-ide.local:8080" | ||
|
||
tasks: | ||
|
||
orange: | ||
cmds: | ||
- | | ||
./capsctl \ | ||
--cmd=duplicate \ | ||
--name=hello \ | ||
--revision=orange \ | ||
--newRevision=orange_two | ||
orange_two: | ||
cmds: | ||
- | | ||
./capsctl \ | ||
--cmd=duplicate \ | ||
--name=hello \ | ||
--revision=orange_two \ | ||
--newRevision=orange |
Oops, something went wrong.