Skip to content

Commit

Permalink
Allow to set entrypoint and command for container (#90)
Browse files Browse the repository at this point in the history
* Allow to set entrypoint and command for container
* ⬆️ dockerise
* 🚀  0.3.1
  • Loading branch information
alantrrs authored Sep 28, 2016
1 parent e2c9652 commit dd0fdb1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v0.3.1 (27 Sep 2016)
- Allows to pass entrypoint from protocol envrionment

## v0.3.0 (21 Sep 2016)
- Saves log files to experiment directory
- Uploads the logs to the server when using ``--save owner/project``
Expand Down
2 changes: 1 addition & 1 deletion bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

VERSION="v0.3.0"
VERSION="v0.3.1"
IMAGE="empiricalci/emp:$VERSION"

# Functions
Expand Down
6 changes: 6 additions & 0 deletions lib/run-experiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ function runStandalone (experiment, logHandler) {
image: experiment.environment.tag,
binds: experiment.volumes
}
if (experiment.environment.entrypoint) {
standalone.entrypoint = experiment.environment.entrypoint
}
if (experiment.environment.command) {
standalone.command = experiment.environment.command
}
return docker.run(standalone, logHandler).then(function (res) {
return docker.remove(res.container)
})
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "empirical-cli",
"version": "0.3.0",
"version": "0.3.1",
"description": "Empirical Package Manager",
"bin": {
"emp": "./index.js"
Expand All @@ -26,7 +26,7 @@
"colors": "^1.1.2",
"dataset-cache": "^1.2.0",
"debug": "^2.2.0",
"dockerise": "^2.1.2",
"dockerise": "^2.1.3",
"dockerode": "^2.3.0",
"empirical-client": "^0.3.0",
"minimist": "^1.2.0",
Expand Down

0 comments on commit dd0fdb1

Please sign in to comment.