Skip to content

Commit

Permalink
Make Tern + Scancode work together #1827
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeeppler committed Jul 18, 2023
1 parent b421a56 commit 9a7c833
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENVIRONMENT_FILE=".env-single"

# Only variables from .env can be used in the Docker-Compose file
# all other variables are only available in the container
setup_environment_file ".env" "env"
setup_environment_file ".env" "env" "$ENVIRONMENT_FILES_FOLDER/env-base-image"
setup_environment_file "$ENVIRONMENT_FILE" "$ENVIRONMENT_FILES_FOLDER/env-base"

# Use Docker BuildKit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENVIRONMENT_FILE=".env-single"

# Only variables from .env can be used in the Docker-Compose file
# all other variables are only available in the container
setup_environment_file ".env" "env"
setup_environment_file ".env" "env" "$ENVIRONMENT_FILES_FOLDER/env-base-image"
setup_environment_file "$ENVIRONMENT_FILE" "$ENVIRONMENT_FILES_FOLDER/env-base"

# Use Docker BuildKit
Expand Down
2 changes: 1 addition & 1 deletion sechub-pds-solutions/tern/docker/Tern-Debian.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL org.opencontainers.image.title="SecHub Tern+PDS Image"
LABEL org.opencontainers.image.description="A container which combines Tern with the SecHub Product Delegation Server (PDS)"
LABEL maintainer="SecHub FOSS Team"

ARG TERN_VERSION="2.12.0"
ARG TERN_VERSION="2.12.1"
ARG SCANCODE_VERSION="32.0.4"

# execute commands as root
Expand Down
81 changes: 0 additions & 81 deletions sechub-pds-solutions/tern/docker/requirements.txt

This file was deleted.

10 changes: 4 additions & 6 deletions sechub-pds-solutions/tern/env
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# The base image to use
# uncomment to use local image
# BASE_IMAGE="pds-base_pds"
BASE_IMAGE="ghcr.io/mercedes-benz/sechub/pds-base"

# See: https://github.com/tern-tools/tern/releases
TERN_VERSION="2.12.0"
TERN_VERSION="2.12.1"

# See: https://github.com/nexB/scancode-toolkit/releases
SCANCODE_VERSION="32.0.4"
2 changes: 1 addition & 1 deletion sechub-pds-solutions/tern/tests/run-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ then
do
create_build_folder
run_test "sechub-test-$test_case" "${test_cases[$test_case]}"
remove_build_folder
#remove_build_folder
done
else
log_error "Unable to connect to PDS Tern."
Expand Down
2 changes: 1 addition & 1 deletion sechub-pds-solutions/tern/tests/test-tern.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MIT

BUILD_FOLDER="build/"
BUILD_FOLDER="build"
TOOLS="tools/"
PDS_TOOLS_CLI_VERSION="0.1.0"
PDS_API='../../../sechub-developertools/scripts/pds-api.sh'
Expand Down

0 comments on commit 9a7c833

Please sign in to comment.