File tree 4 files changed +11
-6
lines changed
4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ RUN apt-get install -y cmake g++ flex bison doxygen patch python3
9
9
10
10
ADD build-security-analyzer.sh /build-security-analyzer.sh
11
11
12
- ENTRYPOINT bash /build-security-analyzer.sh
12
+ ENTRYPOINT [ " /build-security-analyzer.sh" ]
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ expected by Diffblue's platform and export a tarball suitable for building the
3
3
security scanner platform image.
4
4
5
5
Pre-requisite: the deeptest-base Docker image must be available to build
6
- against. If it isn't already present (try
7
- `docker image inspect eu.gcr.io/diffblue-cr/deeptest-base`),
8
- build it by:
6
+ against. If it isn't already present, i.e.
7
+ `docker image inspect eu.gcr.io/diffblue-cr/deeptest-base` does not give any
8
+ output, build it by:
9
9
10
10
$ git clone https://github.com/diffblue/platform
11
11
$ cd platform/docker/docker-jobs
@@ -17,6 +17,8 @@ $ cd $REPO_ROOT/platform-image-builder
17
17
$ mkdir -p /tmp/output-dir # for example
18
18
$ ./make-security-release.sh /tmp/output-dir [branch-or-commit]
19
19
20
+ 'branch-or-commit' refers to the github repository, not your local repository.
21
+
20
22
If 'branch-or-commit' is not specified we'll build a release tarball from the
21
23
tip of 'develop'.
22
24
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
1
3
# Runs inside the security-analyzer-builder container.
2
4
3
5
set -e
9
11
10
12
cd /
11
13
git clone
[email protected] :diffblue/security-scanner
12
- if [ $# -eq 1 ]; then git checkout $1 ; fi
13
14
14
15
cd security-scanner
16
+ if [ $# -eq 1 ]; then git checkout $1 ; fi
15
17
git submodule update --init
16
18
17
19
mkdir build
@@ -28,6 +30,7 @@ mkdir /tmp/release/lib
28
30
cp dist/lib/libboost* /tmp/release/lib/
29
31
cp -r dist/lib/driver/* .py /tmp/release
30
32
cp src/java-class-info/default_config.json /tmp/release
33
+ cp benchmarks/LIBRARIES/models/model/target/models.jar /tmp/release
31
34
32
35
cd /tmp/release
33
36
tar cvzf /output/release.tar.gz .
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ if [ $# -lt 1 ]; then
10
10
exit 1
11
11
fi
12
12
13
- docker image inspect security-analyzer-builder:latest > /dev/null 2>&1 || ./create-builder-image.sh
13
+ ./create-builder-image.sh
14
14
15
15
mkdir -p $1
16
16
You can’t perform that action at this time.
0 commit comments