[wip] testground/hello_codex/
This commit is contained in:
parent
75af9ee41f
commit
2a76583c57
|
@ -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"]
|
|
@ -0,0 +1,3 @@
|
|||
echo "HELLO FROM CODEX"
|
||||
echo "HELLO FROM CODEX"
|
||||
echo "HELLO FROM CODEX"
|
|
@ -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…
Reference in New Issue