-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
175 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
# Using `./gradlew docker` to build image | ||
FROM openjdk:jre-alpine | ||
MAINTAINER Stefan Verhoeven <[email protected]> | ||
COPY bin /app/bin | ||
COPY lib /app/lib | ||
WORKDIR /app | ||
ENTRYPOINT ["/app/bin/xenon"] | ||
CMD ["--help"] | ||
COPY bin /usr/bin | ||
COPY lib /usr/lib | ||
CMD ["/usr/bin/xenon", "--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,81 @@ | ||
#!/usr/bin/env cwl-runner | ||
# Native: | ||
# xenon --format cwljson sftp --location localhost download $PWD/README.md copy-of-README.md | ||
# Using cwl-runnner: | ||
# ./xenon-download.cwl --certfile ~/.ssh/id_rsa --scheme sftp --location [email protected] --source $PWD/README.md --target copy-of-README.md | ||
cwlVersion: v1.0 | ||
class: CommandLineTool | ||
doc: Download file from remote storage | ||
requirements: | ||
hints: | ||
- class: DockerRequirement | ||
# xenon-cli Docker container needs to be manually build before | ||
dockerImageId: nlesc/xenon-cli | ||
baseCommand: xenon | ||
arguments: | ||
- --json | ||
- download | ||
- prefix: --format | ||
valueFrom: cwljson | ||
position: 0 | ||
- valueFrom: download | ||
position: 3 | ||
inputs: | ||
scheme: | ||
type: string | ||
inputBinding: | ||
prefix: --scheme | ||
position: -1 | ||
certfile: | ||
type: File? | ||
doc: Certificate file | ||
inputBinding: | ||
prefix: --certfile | ||
position: -1 | ||
location: | ||
position: 0 | ||
username: | ||
type: string? | ||
inputBinding: | ||
position: 1 | ||
path: | ||
prefix: --username | ||
position: 0 | ||
password: | ||
type: string? | ||
doc: Password, watch out do not use on systems with untrusted users | ||
inputBinding: | ||
prefix: --password | ||
position: 0 | ||
scheme: | ||
type: string | ||
doc: Scheme, eg. file, sftp, ftp | ||
inputBinding: | ||
position: 1 | ||
location: | ||
type: string? | ||
doc: List contents of path at location | ||
inputBinding: | ||
prefix: --location | ||
position: 2 | ||
# TODO prop should be optional, atm is must be set | ||
# prop: | ||
# doc: Xenon adaptor properties | ||
# type: | ||
# type: array | ||
# items: string | ||
# inputBinding: | ||
# prefix: --prop | ||
# inputBinding: | ||
# position: 2 | ||
overwrite: | ||
type: boolean | ||
inputBinding: | ||
prefix: --overwrite | ||
position: 4 | ||
ignore: | ||
type: boolean | ||
inputBinding: | ||
prefix: --ignore | ||
position: 4 | ||
source: | ||
type: string | ||
inputBinding: | ||
position: 5 | ||
target: | ||
type: string | ||
inputBinding: | ||
position: 3 | ||
position: 6 | ||
outputs: | ||
target: | ||
type: File | ||
outputBinding: | ||
glob: $(inputs.target) | ||
# stdout: cwl.output.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,72 @@ | ||
#!/usr/bin/env cwl-runner | ||
# Native: | ||
# xenon --format cwljson sftp --location localhost list $PWD/ | ||
# Using cwl-runnner: | ||
# ./xenon-ls.cwl --scheme sftp --location [email protected] --path $PWD --certfile ~/.ssh/id_rsa | ||
cwlVersion: v1.0 | ||
class: CommandLineTool | ||
doc: List objects on remote storage | ||
requirements: | ||
hints: | ||
- class: DockerRequirement | ||
# xenon-cli Docker container needs to be manually build before | ||
dockerImageId: nlesc/xenon-cli | ||
baseCommand: xenon | ||
arguments: | ||
- --json | ||
- list | ||
- prefix: --format | ||
valueFrom: cwljson | ||
position: 0 | ||
- valueFrom: list | ||
position: 3 | ||
inputs: | ||
scheme: | ||
type: string | ||
inputBinding: | ||
prefix: --scheme | ||
position: -1 | ||
certfile: | ||
type: File? | ||
doc: Certificate file | ||
inputBinding: | ||
prefix: --certfile | ||
position: -1 | ||
location: | ||
position: 0 | ||
username: | ||
type: string? | ||
inputBinding: | ||
prefix: --username | ||
position: 0 | ||
password: | ||
type: string? | ||
doc: Password, watch out do not use on systems with untrusted users | ||
inputBinding: | ||
prefix: --password | ||
position: 0 | ||
scheme: | ||
type: string | ||
doc: Scheme, eg. file, sftp, ftp | ||
inputBinding: | ||
position: 1 | ||
location: | ||
type: string? | ||
doc: List contents of path at location | ||
inputBinding: | ||
prefix: --location | ||
position: 2 | ||
# TODO prop should be optional, atm is must be set | ||
# prop: | ||
# doc: Xenon adaptor properties | ||
# type: | ||
# type: array | ||
# items: string | ||
# inputBinding: | ||
# prefix: --prop | ||
# inputBinding: | ||
# position: 2 | ||
recursive: | ||
doc: List directories recursively | ||
type: boolean? | ||
inputBinding: | ||
prefix: --recursive | ||
position: 4 | ||
path: | ||
type: string | ||
doc: List contents of path at location | ||
inputBinding: | ||
position: 2 | ||
position: 5 | ||
outputs: | ||
objects: | ||
type: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,78 @@ | ||
#!/usr/bin/env cwl-runner | ||
# Native: | ||
# xenon --format cwljson sftp --location localhost upload README.md $PWD/copy-of-README.md | ||
# Using cwl-runnner: | ||
# ./xenon-upload.cwl --certfile ~/.ssh/id_rsa --scheme sftp --location [email protected] --source README.md --target $PWD/copy-of-README.md | ||
cwlVersion: v1.0 | ||
class: CommandLineTool | ||
doc: Upload file to remote storage | ||
requirements: | ||
hints: | ||
- class: DockerRequirement | ||
# xenon-cli Docker container needs to be manually build before | ||
dockerImageId: nlesc/xenon-cli | ||
baseCommand: xenon | ||
arguments: | ||
- --json | ||
- upload | ||
- prefix: --format | ||
valueFrom: cwljson | ||
position: 0 | ||
- valueFrom: upload | ||
position: 3 | ||
inputs: | ||
scheme: | ||
type: string | ||
inputBinding: | ||
prefix: --scheme | ||
position: -1 | ||
certfile: | ||
type: File? | ||
doc: Certificate file | ||
inputBinding: | ||
prefix: --certfile | ||
position: -1 | ||
source: | ||
type: File | ||
position: 0 | ||
username: | ||
type: string? | ||
inputBinding: | ||
prefix: --username | ||
position: 0 | ||
password: | ||
type: string? | ||
doc: Password, watch out do not use on systems with untrusted users | ||
inputBinding: | ||
prefix: --password | ||
position: 0 | ||
scheme: | ||
type: string | ||
doc: Scheme, eg. file, sftp, ftp | ||
inputBinding: | ||
position: 1 | ||
location: | ||
type: string? | ||
doc: List contents of path at location | ||
inputBinding: | ||
prefix: --location | ||
position: 2 | ||
path: | ||
# TODO prop should be optional, atm is must be set | ||
# prop: | ||
# doc: Xenon adaptor properties | ||
# type: | ||
# type: array | ||
# items: string | ||
# inputBinding: | ||
# prefix: --prop | ||
# inputBinding: | ||
# position: 2 | ||
overwrite: | ||
type: boolean | ||
inputBinding: | ||
prefix: --overwrite | ||
position: 4 | ||
ignore: | ||
type: boolean | ||
inputBinding: | ||
prefix: --ignore | ||
position: 4 | ||
source: | ||
type: File | ||
inputBinding: | ||
position: 5 | ||
target: | ||
type: string | ||
inputBinding: | ||
position: 3 | ||
outputs: | ||
path: File | ||
position: 6 | ||
outputs: [] | ||
stdout: cwl.output.json |