From ceed1b509fc18ce3aa573e46fc9d7c537088c6e5 Mon Sep 17 00:00:00 2001 From: Dan Stark Date: Wed, 9 Jun 2021 21:13:15 -0400 Subject: [PATCH] [4] Adds version.py to /usr/local/bin task.py references version.py and since we typically are using cirrus - if you try to execute this template from batch without specifying the path for task.py will bomb out, because version.py is not also copied to /Users/dstark/.pyenv/shims:/Users/dstark/.nvm/versions/node/v10.18.1/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/npm/bin. This change adds version.py to the Dockerfile path. --- CHANGELOG.md | 3 +++ Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a71914..83dd5a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added +- `version.py` added to `/usr/local/bin` to allow task to successfully run in AWS Batch + ## [v0.2.0] - 2021-03-17 ### Added diff --git a/Dockerfile b/Dockerfile index c3bca1f..d72d801 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,4 @@ RUN \ ADD . ${HOME} # Add task to $PATH so AWS Batch can run -COPY task.py /usr/local/bin +COPY [ "task.py", "version.py", "/usr/local/bin" ]