-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
impr(examples): remove binary artifacts
- Loading branch information
Showing
7 changed files
with
39 additions
and
0 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
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,11 @@ | ||
# No-SDK | ||
|
||
The No-SDK example provide you a Chall-Manager-SDK-free code for you to support the main features of a scenario. | ||
|
||
You may want to manipulate further your stack or do pre-flight checks, thus do this. | ||
In most cases, you should **not** do it, especially if you do not know what you are doing. | ||
|
||
## Demo | ||
|
||
To build the scenario archive you only need to run `./build.sh`. | ||
It will compile the Pulumi Go code and create the zip archive (`scenario.zip`). |
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,4 @@ | ||
#!/bin/bash | ||
|
||
CGO_ENABLED=0 go build -o main main.go | ||
zip -r scenario.zip main Pulumi.yaml |
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,13 @@ | ||
# Prebuilt | ||
|
||
The Prebuilt example shows how to make a pre-compiled binary as scenario. | ||
|
||
You may want to do it in case: | ||
- you want **high performances** on the challenge creation (avoid Chall-Manager to compile it on its own) | ||
- you want **traceability** on the binary thus provide it to Chall-Manager rather than expecting it to check | ||
- you use a **private dependency** the Chall-Manager has no access to, thus build it locally where it is possible | ||
|
||
## Demo | ||
|
||
To build the scenario archive you only need to run `./build.sh`. | ||
It will compile the Pulumi Go code and create the zip archive (`scenario.zip`). |
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,4 @@ | ||
#!/bin/bash | ||
|
||
CGO_ENABLED=0 go build -o main ../teeworlds/main.go | ||
zip -r scenario.zip main Pulumi.yaml |
Binary file not shown.
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