-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move analysis Dockerfile into analysis/ dir. (#78)
This simplifies things so that we don't have to copy the analysis dir anymore. Also modify the build_docker script to build the server image as well.
- Loading branch information
1 parent
299485c
commit a869cd8
Showing
4 changed files
with
16 additions
and
25 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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,18 +1,25 @@ | ||
#!/bin/bash | ||
#!/bin/bash -ex | ||
|
||
REGISTRY=gcr.io/ossf-malware-analysis | ||
IMAGES=( | ||
ANALYSIS_IMAGES=( | ||
node | ||
python | ||
ruby | ||
) | ||
|
||
for image in "${IMAGES[@]}"; do | ||
for image in "${ANALYSIS_IMAGES[@]}"; do | ||
docker build --squash -t $REGISTRY/$image $image | ||
docker push $REGISTRY/$image | ||
done | ||
|
||
rm -rf analysis/analysis | ||
cp -r ../analysis analysis/ | ||
docker build --squash -t $REGISTRY/analysis analysis | ||
docker push $REGISTRY/analysis | ||
OTHER_IMAGES=( | ||
analysis | ||
server | ||
) | ||
|
||
for image in "${OTHER_IMAGES[@]}"; do | ||
pushd ../$image | ||
docker build --squash -t $REGISTRY/$image . | ||
docker push $REGISTRY/$image | ||
popd | ||
done |