Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DonMartin76 committed Jun 3, 2019
1 parent fc970ff commit d9b6996
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 24 deletions.
7 changes: 5 additions & 2 deletions impl/box-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ box.start = async (
'3000/tcp': [{ 'HostPort': uiPort.toString() }],
'8000/tcp': [{ 'HostPort': gatewayPort.toString() }]
},
AutoRemove: true,
Binds: [
`${configDir}:/var/portal-api`
]
],
RestartConfig: {
Name: 'unless-stopped'
}
}
};

Expand Down Expand Up @@ -156,6 +158,7 @@ box.stop = async (callback) => {
try {
const boxContainer = docker.getContainer(boxContainerInfo.Id);
await boxContainer.stop();
await boxContainer.remove();
console.log(`Container ${BOX_CONTAINER_NAME} was stopped.`);
return callback(null);
} catch (err) {
Expand Down
53 changes: 33 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wicked-cli",
"version": "1.0.0-rc.4",
"version": "1.0.0-rc.5",
"description": "wicked.haufe.io Command Line Tool",
"main": "commands/wicked.js",
"scripts": {
Expand All @@ -25,7 +25,7 @@
"wicked": "commands/wicked.js"
},
"dependencies": {
"axios": "0.18.0",
"axios": "0.19.0",
"commander": "2.19.0",
"dockerode": "2.5.8",
"opn": "5.4.0"
Expand Down

0 comments on commit d9b6996

Please sign in to comment.