Skip to content

Commit e383e99

Browse files
committed
Integrate gotap and update to current spec
1 parent 66fda39 commit e383e99

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
FROM node:18.12.1-buster
1+
FROM node:latest
2+
3+
# Install spec binary
4+
RUN apt-get update && apt-get install -y curl && \
5+
curl -L -o /usr/local/bin/spec https://github.com/hydrocode-de/gotap/releases/download/v0.2.1/spec && \
6+
chmod +x /usr/local/bin/spec && \
7+
apt-get remove -y curl && apt-get autoremove -y && apt-get clean
28

39
# create the tool input structure
410
RUN mkdir /in
@@ -10,7 +16,7 @@ COPY ./src /src
1016
WORKDIR /src
1117

1218
# install dependencies: js2args
13-
RUN npm install js2args@v0.3.0
19+
RUN npm install js2args
1420

1521
# run command
16-
CMD ["node", "run.js"]
22+
CMD ["spec", "run", "foobar", "--input-file", "/in/parameters.json"]

src/tool.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ tools:
22
foobar:
33
title: Foo Bar
44
description: A dummy tool to exemplify the YAML file
5-
# deleted this field - version: 0.1
5+
command: "node run.js"
66
parameters:
7-
foo_int:
7+
foo_int:
88
type: integer
99
foo_float:
1010
type: float
@@ -19,14 +19,10 @@ tools:
1919
foo_array:
2020
type: integer
2121
array: true
22-
foo_matrix:
23-
type: asset # changed from file
24-
foo_csv:
25-
type: asset # changed from file
26-
data: # added section to descrive files more explicitly
22+
data:
2723
foo_matrix:
2824
extension: dat
29-
description: A matrix file that can be read by numpy
25+
description: A matrix file
3026
foo_csv:
3127
extension: csv
32-
description: A standard formatted CSV file, for autoloading using pandas
28+
description: A CSV file

0 commit comments

Comments
 (0)