-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove old sandboxes and create example directory for building a cust…
…om sandbox (#743) Signed-off-by: Max Fisher <[email protected]>
- Loading branch information
1 parent
f39c650
commit 1ce3c40
Showing
15 changed files
with
24 additions
and
556 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
2 changes: 2 additions & 0 deletions
2
sandboxes/packagist/Dockerfile → examples/custom-sandbox/Dockerfile
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,16 @@ | ||
# This Makefile contains commands for building the example custom sandbox and syncing it to the local container cache | ||
|
||
# Registry for Docker images built and used by package analysis | ||
REGISTRY := gcr.io/ossf-malware-analysis | ||
IMAGE_NAME := dynamic-analysis-custom | ||
|
||
# Build the sandbox | ||
build_example_sandbox: DOCKERFILE=$(SANDBOX_DIR)/example/Dockerfile | ||
docker build -t ${REGISTRY}/$(IMAGE_NAME) | ||
|
||
# Update (sync) locally built sandbox images from Docker to podman. | ||
# This is needed for local analysis; in order to use the updated image, | ||
# pass '-nopull' to scripts/run_analysis.sh | ||
# | ||
sync_example_sandbox: | ||
sudo buildah pull docker-daemon:${REGISTRY}/${IMAGE_NAME} |
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,4 @@ | ||
This directory gives an example of how to build a custom sandbox for testing or development with a different analysis flow. | ||
In particular, this Docker image and analysis script can be used to analyse Packagist packages with a different version of PHP. | ||
|
||
|
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.