Skip to content

Instantly share code, notes, and snippets.

@pcantalupo
Created April 21, 2020 15:18
Show Gist options
  • Save pcantalupo/39f122d1c9a8f3a6933eee91003fbc0f to your computer and use it in GitHub Desktop.
Save pcantalupo/39f122d1c9a8f3a6933eee91003fbc0f to your computer and use it in GitHub Desktop.
dockerfile = 'https://raw.githubusercontent.com/pcantalupo/ViraVate/master/Dockerfile'
println dockerfile // print variable
file_dockerfile = file(dockerfile)
println file_dockerfile.text // print contents of file (pulled from remote location)
df_ch = Channel.fromPath(dockerfile)
process foo {
echo true
input:
file(dockerfile) from df_ch
script:
"""
head $dockerfile
"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment