Skip to content

Commit 60533b7

Browse files
authored
Merge pull request #4 from tool-spec/integrate-gotap
Integrate gotap binary and use command field
2 parents b1f1d5c + 1293a2d commit 60533b7

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ RUN pip install "json2args[data]>=0.6.2"
99
# with less dependencies
1010
# RUN pip install json2args>=0.6.2
1111

12+
# Build spec binary from source
13+
RUN apt-get update && apt-get install -y golang-go git && \
14+
git clone https://github.com/hydrocode-de/gotap.git /tmp/gotap && \
15+
cd /tmp/gotap && go build -o /usr/local/bin/spec ./main.go && \
16+
rm -rf /tmp/gotap && \
17+
apt-get remove -y golang-go git && apt-get autoremove -y && apt-get clean
18+
1219
# Do anything you need to install tool dependencies here
1320
RUN echo "Replace this line with a tool"
1421

@@ -23,4 +30,4 @@ COPY ./src /src
2330
COPY ./CITATION.cf[f] /src/CITATION.cff
2431

2532
WORKDIR /src
26-
CMD ["python", "run.py"]
33+
CMD ["spec", "run", "foobar", "--input-file", "/in/input.json"]

src/tool.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ tools:
22
foobar:
33
title: Foo Bar
44
description: A dummy tool to exemplify the YAML file
5+
command: "python run.py"
56
parameters:
67
foo_int:
78
type: integer

0 commit comments

Comments
 (0)