mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-18 07:46:33 +00:00
[wip] testground/hello_codex/
This commit is contained in:
parent
75af9ee41f
commit
2a76583c57
14
testground/hello_codex/Dockerfile
Normal file
14
testground/hello_codex/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
FROM nimlang/nim as builder
|
||||||
|
|
||||||
|
RUN apt update -qq && \
|
||||||
|
DEBIAN_FRONTEND="noninteractive" apt install -yq cmake curl make
|
||||||
|
|
||||||
|
FROM builder
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN cd /extra/scratch/nim-codex && make USE_SYSTEM_NIM=1 V=1 update
|
||||||
|
|
||||||
|
RUN cd /extra/scratch/nim-codex && make USE_SYSTEM_NIM=1 V=1 hello_codex
|
||||||
|
|
||||||
|
ENTRYPOINT ["/extra/scratch/nim-codex/build/hello_codex"]
|
3
testground/hello_codex/hello_codex.nim
Normal file
3
testground/hello_codex/hello_codex.nim
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
echo "HELLO FROM CODEX"
|
||||||
|
echo "HELLO FROM CODEX"
|
||||||
|
echo "HELLO FROM CODEX"
|
24
testground/hello_codex/manifest.toml
Normal file
24
testground/hello_codex/manifest.toml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name = "hello_codex"
|
||||||
|
[defaults]
|
||||||
|
builder = "docker:generic"
|
||||||
|
runner = "local:docker"
|
||||||
|
|
||||||
|
[builders."docker:generic"]
|
||||||
|
enabled = true
|
||||||
|
|
||||||
|
[runners."local:docker"]
|
||||||
|
enabled = true
|
||||||
|
|
||||||
|
[[testcases]]
|
||||||
|
name= "hello_codex"
|
||||||
|
instances = { min = 2, default = 2, max = 2 }
|
||||||
|
|
||||||
|
# [testcases.params]
|
||||||
|
# payload = { type = "string", default = "Hello!" }
|
||||||
|
# count = { type = "int", default = 2 }
|
||||||
|
# printResult = { type = "bool", default = true }
|
||||||
|
|
||||||
|
[extra_sources]
|
||||||
|
docker_generic = [
|
||||||
|
"../../scratch"
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user