-
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.
- Loading branch information
Showing
4 changed files
with
56 additions
and
16 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
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 |
---|---|---|
|
@@ -2,16 +2,17 @@ FROM alpine:3.13.0 | |
|
||
LABEL maintainer="Tomoya Tanjo <[email protected]>" | ||
|
||
ARG medal_ver=v0.4.0 | ||
ARG medal_hook_ver=v0.0.7 | ||
ARG medal_ver=v0.4.3 | ||
ARG medal_hook_ver=v0.1.1 | ||
|
||
RUN apk --no-cache add ruby ruby-json ruby-etc nodejs jq docker-cli \ | ||
ruby-irb ruby-webrick bash curl && \ | ||
RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \ | ||
apk --no-cache add ruby ruby-json ruby-etc nodejs jq docker-cli \ | ||
ruby-irb ruby-webrick bash curl \ | ||
telegraf util-linux fluent-bit@testing && \ | ||
curl -SL https://github.com/tom-tan/medal/releases/download/${medal_ver}/medal-linux-x86_64.tar.gz \ | ||
| tar xC /usr/bin && \ | ||
curl -SL https://github.com/tom-tan/medal-hook/releases/download/${medal_hook_ver}/medal-hook-linux-x86_64.tar.gz \ | ||
| tar xC /usr/bin && \ | ||
apk del --purge curl | ||
| tar xC /usr/bin | ||
|
||
COPY . /ep3 | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env ruby | ||
require 'optparse' | ||
require_relative "#{ENV['EP3_LIBPATH']}/runtime/inspector" | ||
|
||
if $0 == __FILE__ | ||
opt = OptionParser.new | ||
opt.banner = "#{$0} [options] <root.yml>" | ||
opt.parse!(ARGV) | ||
|
||
unless ARGV.length == 1 | ||
puts opt.help | ||
exit | ||
end | ||
|
||
dir = File.dirname(ARGV.first) | ||
cwl = File.join(dir, 'job.cwl') | ||
|
||
unless walk(cwl, '.class', '') == 'Workflow' | ||
puts 'It only supports a simple workflow' | ||
exit 1 | ||
end | ||
end |
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