Skip to content

Commit

Permalink
Merge pull request #37 from ZupIT/hotfix/remove-container-docker
Browse files Browse the repository at this point in the history
change version and repair command to rm container
  • Loading branch information
nathanmartinszup authored May 21, 2021
2 parents c066623 + d2eb376 commit 6044766
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .semver.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
alpha: 0
beta: 0
rc: 0
release: v1.9.0
release: v2.0.0
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "horusec",
"displayName": "Horusec",
"description": "Horusec is an open source tool that improves identification of vulnerabilities in your project with just one command.",
"version": "1.9.0",
"version": "2.0.0",
"publisher": "ZupInnovation",
"repository": "https://github.com/ZupIT/horusec-extensions/tree/master/horusec-vscode",
"icon": "resources/horus_icon.png",
Expand Down Expand Up @@ -165,4 +165,4 @@
"fs": "0.0.1-security",
"uuid": "^8.3.1"
}
}
}
4 changes: 2 additions & 2 deletions src/util/docker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { platform } from 'os';
import * as vscode from 'vscode';

const cliImage = 'horuszup/horusec-cli:v1.10.3';
const cliImage = 'horuszup/horusec-cli:v2.0.0';
const containerName = 'horusec-cli';

export function getStartCommand(): string {
Expand All @@ -15,7 +15,7 @@ export function getStartCommand(): string {
}

export function getRemoveContainerCommand(): string {
return `docker rm $(docker ps -a | awk '{ print $1,$2 }' | grep horuszup | awk '{print $1 }') -f`;
return `docker rm ${containerName} -f`;
}

function getStartCommandWindows() {
Expand Down

0 comments on commit 6044766

Please sign in to comment.