Skip to content

Commit 5421c30

Browse files
committed
v0.1.6 - odtp.yml fix
1 parent cd5cfcf commit 5421c30

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,12 @@ COPY ./odtp-component-client /odtp/odtp-component-client
6767
COPY ./app /odtp/odtp-app
6868
WORKDIR /odtp
6969

70+
# Avoid error when building on windows
71+
RUN sed -i 's/\r$//' /odtp/odtp-component-client/src/shell/log.sh
72+
RUN sed -i 's/\r$//' /odtp/odtp-component-client/src/shell/traceback.sh
73+
RUN sed -i 's/\r$//' /odtp/odtp-component-client/scripts/component-update.sh
74+
RUN sed -i 's/\r$//' /odtp/odtp-component-client/odtp-app.sh
75+
RUN sed -i 's/\r$//' /odtp/odtp-component-client/startup.sh
76+
RUN sed -i 's/\r$//' /odtp/odtp-app/app.sh
77+
7078
ENTRYPOINT ["bash", "/odtp/odtp-component-client/startup.sh"]

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is a component used to test ODTP components. It uses Hugging face datasets,
1111
```
1212
odtp new odtp-component-entry \
1313
--name odtp-example \
14-
--component-version v0.1.5 \
14+
--component-version v0.1.6 \
1515
--repository https://github.com/odtp-org/odtp-component-example
1616
```
1717

@@ -56,6 +56,9 @@ docker run -it --rm \
5656

5757
## Changelog
5858

59+
- v0.1.6
60+
- Corrected `odtp.yml` to ensure parsing
61+
- Updated Dockerfile with fix for windows-based buildings
5962

6063
- v0.1.5
6164
- Updated ODTP Client

odtp.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file should contain basic component information for your component.
22
component-name: odtp-eqasim-matsim
33
component-author: Carlos Vivar Rios
4-
component-version: v0.1.5
4+
component-version: v0.1.6
55
component-repository: https://github.com/odtp-org/odtp-component-example
66
component-license: AGPL-3.0
77
component-type: ephemeral
@@ -48,15 +48,15 @@ data-inputs: null
4848
data-output:
4949
- name: test.csv
5050
type: csv
51-
path: {{HF_DATASET}}/test.csv
51+
path: "{{HF_DATASET}}/test.csv"
5252
description: Output from dataset
5353
- name: train.csv
5454
type: csv
55-
path: {{HF_DATASET}}/train.csv
55+
path: "{{HF_DATASET}}/train.csv"
5656
description: Output from dataset
5757
- name: validation.csv
5858
type: csv
59-
path: {{HF_DATASET}}/validation.csv
59+
path: "{{HF_DATASET}}/validation.csv"
6060
description: Output from dataset
6161

6262

0 commit comments

Comments
 (0)