-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve prepare application and PDS solution
- Added storage variables as non-spring parameter - Added additional tags to skopeo wrapper - Make git-clone into repository name
- Loading branch information
1 parent
f604e8b
commit e0bb007
Showing
61 changed files
with
286 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ src-gen/ | |
.idea/ | ||
*.ipr | ||
*.iws | ||
out/ | ||
|
||
# vscode parts | ||
.vscode/ | ||
|
1 change: 1 addition & 0 deletions
1
...rchive/src/main/java/com/mercedesbenz/sechub/commons/archive/DirectoryAndFileSupport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// SPDX-License-Identifier: MIT | ||
package com.mercedesbenz.sechub.commons.archive; | ||
|
||
import java.io.File; | ||
|
1 change: 1 addition & 0 deletions
1
...ve/src/test/java/com/mercedesbenz/sechub/commons/archive/DirectoryAndFileSupportTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...rcedesbenz/sechub/commons/core/environment/SecureEnvironmentVariableKeyValueRegistry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...s/src/test/java/com/mercedesbenz/sechub/commons/pds/DefaultProcessBuilderFactoryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...-commons-core/src/main/java/com/mercedesbenz/sechub/pds/commons/core/PDSLogSanitizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...re/src/main/java/com/mercedesbenz/sechub/pds/commons/core/config/PDSStorageConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
// SPDX-License-Identifier: MIT | ||
. Place a single PDS Jar into this folder. | ||
. Name it `sechub-pds-0.0.0.jar` | ||
. Run `10-create-image.sh` to build the image | ||
. Build PDS jar local with gradle command | ||
. Copy the pds jar into the copy folder sechub-pds-0.0.0.jar | ||
+ | ||
---- | ||
cp sechub-pds/build/libs/sechub-pds-0.0.0.jar . | ||
---- | ||
. Run `10-create-image.sh` with the copy parameter to build the image | ||
+ | ||
---- | ||
./10-create-image.sh pds-base-pds latest 0.0.0 debian:12-slim copy | ||
---- | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...s/src/main/java/com/mercedesbenz/sechub/pds/PDSStartupAssertEnvironmentVariablesUsed.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// SPDX-License-Identifier: MIT | ||
package com.mercedesbenz.sechub.pds; | ||
|
||
import org.slf4j.Logger; | ||
|
1 change: 1 addition & 0 deletions
1
...a/com/mercedesbenz/sechub/pds/PDSStartupAssertEnvironmentVariablesUsedSpringBootTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// SPDX-License-Identifier: MIT | ||
package com.mercedesbenz.sechub.pds; | ||
|
||
import static org.mockito.Mockito.*; | ||
|
2 changes: 1 addition & 1 deletion
2
...c/test/java/com/mercedesbenz/sechub/pds/PDSStartupAssertEnvironmentVariablesUsedTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: MIT | ||
|
||
ENVIRONMENT_FILE=".env-single" | ||
|
||
resource_limits_enabled="$1" | ||
compose_file="docker-compose_sechub-debian-prepare" | ||
|
||
mkdir /tmp/sechub-shared-volume | ||
chmod -R 777 /tmp/sechub-shared-volume | ||
|
||
cd $(dirname "$0") | ||
source ../sechub-solutions-shared/scripts/9999-env-file-helper.sh | ||
|
||
# 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 "$ENVIRONMENT_FILE" "env-sechub" | ||
|
||
echo "Copying install-java scripts into the docker directory" | ||
cp --recursive --force ../sechub-solutions-shared/install-java/ docker/ | ||
|
||
# Use Docker BuildKit | ||
export BUILDKIT_PROGRESS=plain | ||
export DOCKER_BUILDKIT=1 | ||
|
||
if [[ "$resource_limits_enabled" == "yes" ]] | ||
then | ||
compose_file="docker-compose_sechub_resource_limits-debian" | ||
fi | ||
|
||
echo "Compose file: $compose_file" | ||
|
||
docker compose --file "$compose_file.yaml" up --build --remove-orphans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
version: "3" | ||
services: | ||
sechub: | ||
build: | ||
args: | ||
- BASE_IMAGE=debian:12-slim | ||
- BUILD_TYPE=${BUILD_TYPE} | ||
- JAVA_DISTRIBUTION=${JAVA_DISTRIBUTION} | ||
- JAVA_VERSION=${JAVA_VERSION} | ||
- SECHUB_VERSION=${SECHUB_VERSION} | ||
- GO=${GO} | ||
- TAG=${TAG} | ||
- BRANCH=${BRANCH} | ||
context: docker/ | ||
dockerfile: SecHub-Debian.dockerfile | ||
container_name: sechub | ||
hostname: sechub | ||
env_file: | ||
- .env | ||
- .env-single | ||
ports: | ||
- "127.0.0.1:${PORT}:8443" | ||
- "127.0.0.1:${JAVA_DEBUG_PORT}:15023" | ||
networks: | ||
- sechub | ||
volumes: | ||
- /tmp/sechub-shared-volume:/shared_volumes/uploads | ||
networks: | ||
sechub: | ||
name: sechub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...r-prepare/src/main/java/com/mercedesbenz/sechub/wrapper/prepare/LogSanitizerProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...er-prepare/src/main/java/com/mercedesbenz/sechub/wrapper/prepare/PrepareAcceptFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
.../src/main/java/com/mercedesbenz/sechub/wrapper/prepare/PrepareInputValidationSupport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...e/src/main/java/com/mercedesbenz/sechub/wrapper/prepare/PrepareWrapperUsageException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...in/java/com/mercedesbenz/sechub/wrapper/prepare/modules/AbstractPrepareWrapperModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...are/src/main/java/com/mercedesbenz/sechub/wrapper/prepare/modules/PrepareToolContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...src/main/java/com/mercedesbenz/sechub/wrapper/prepare/modules/UsageExceptionExitCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
.../mercedesbenz/sechub/wrapper/prepare/modules/git/AutoCleanupAdditionalGitFilesFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...java/com/mercedesbenz/sechub/wrapper/prepare/modules/git/AutoCleanupGitFoldersFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.