Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
stebo85 committed Sep 9, 2024
1 parent 39a30e1 commit 7461455
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
8 changes: 3 additions & 5 deletions recipes/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
import os

# Validate JSON file against OpenRecon schema and write Dockerfile
toolName = os.getenv('toolName')

jsonFilePath = toolName + '/OpenReconLabel.json'
schemaFilePath = 'OpenReconSchema_1.1.0.json'
dockerfilePath = toolName + '/OpenRecon.dockerfile'
jsonFilePath = 'OpenReconLabel.json'
schemaFilePath = '../OpenReconSchema_1.1.0.json'
dockerfilePath = '/OpenRecon.dockerfile'
baseDockerImage = os.getenv('baseDockerImage')

def validateJson(jsonFilePath, schemaFilePath):
Expand Down
7 changes: 0 additions & 7 deletions recipes/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,5 @@ source params.sh

echo "baseDockerImage: $baseDockerImage"

current_dir=$(pwd)
export toolName=$(basename "$current_dir")

echo "toolName: $toolName"


# build zip file
cd ..
python3 build.py

0 comments on commit 7461455

Please sign in to comment.