-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZAP in Docker with reproducible builds (#17434)
* Squashed commit of the following: commit bd52637 Author: Austin Bozowski <[email protected]> Date: Fri Apr 15 18:37:47 2022 -0700 Final clean commit db33367 Author: Austin Bozowski <[email protected]> Date: Fri Apr 15 18:00:57 2022 -0700 README and style commit f3e81c9 Author: Austin Bozowski <[email protected]> Date: Fri Apr 15 17:19:36 2022 -0700 Style commit febdef6 Author: Austin Bozowski <[email protected]> Date: Fri Apr 15 16:51:08 2022 -0700 Fix small err commit a77fbe1 Author: Austin Bozowski <[email protected]> Date: Fri Apr 15 16:45:00 2022 -0700 Commit to go back from test; add helper messages commit 4947867 Author: Austin Bozowski <[email protected]> Date: Fri Apr 15 16:31:01 2022 -0700 Clean; create commit for test: commit 21eff2e Author: Austin Bozowski <[email protected]> Date: Fri Apr 15 15:18:12 2022 -0700 Clean commit 95866de Author: Austin Bozowski <[email protected]> Date: Fri Apr 15 13:58:21 2022 -0700 Place zap hash in dockerfile and verify origin Remove logic around zap from build.sh Create generic method to set up build context in build.sh Add script to create build context Add logic in dockerfile to ensure origin stays in sync commit 0bfc8a1 Author: Austin Bozowski <[email protected]> Date: Thu Apr 14 16:24:08 2022 -0700 Adding a readme just so this branch is clear commit 10818f6 Author: Austin Bozowski <[email protected]> Date: Thu Apr 14 08:36:28 2022 -0700 Fix error from replace text, remove zapinfo clean which can fail commit f7a5435 Author: Austin Bozowski <[email protected]> Date: Thu Apr 14 08:00:37 2022 -0700 Zap in docker e2e commit 6ba3306 Author: Austin Bozowski <[email protected]> Date: Wed Apr 13 18:44:59 2022 -0700 Build from hashes instead of dirs commit c2f5f4f Author: Austin Bozowski <[email protected]> Date: Wed Apr 13 15:43:02 2022 -0700 Build zap in images from local sources; log SHAs * Remove test artifacts for PR * Spelling and a space * Remove checks around remote. Update README. * Remove missed delete zapverify.sh * Restyle README.md Co-authored-by: Andrei Litvin <[email protected]>
- Loading branch information
Showing
7 changed files
with
29 additions
and
30 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,12 @@ | ||
FROM alpine:3.14 | ||
ARG VERSION=latest | ||
FROM connectedhomeip/chip-build:${VERSION} | ||
|
||
RUN apk add --no-cache \ | ||
nodejs=14.19.0-r0 \ | ||
openjdk11=11.0.14_p9-r0 \ | ||
npm=7.17.0-r0 \ | ||
python3=3.9.5-r2 \ | ||
pixman-dev=0.40.0-r2 \ | ||
cairo-dev=1.16.0-r3 \ | ||
pango-dev=1.48.5-r0 \ | ||
make=4.3-r0 \ | ||
g++=10.3.1_git20210424-r2 \ | ||
libjpeg-turbo-dev=2.1.0-r0 \ | ||
giflib-dev=5.2.1-r0 \ | ||
git=2.32.0-r0 \ | ||
clang-dev=11.1.0-r1 \ | ||
py3-pip=20.3.4-r1 | ||
ENV ZAP_COMMIT=7ab717d08dfe9b0ba9de907fc7c6eb6549c86bf7 | ||
|
||
# Generator dependencies | ||
RUN pip3 install --no-cache-dir \ | ||
click==8.0.3 \ | ||
coloredlogs==15.0.1 \ | ||
jinja2==3.0.3 \ | ||
lark==1.0.0 \ | ||
stringcase==1.2.0 | ||
ENV ZAP_ORIGIN=https://github.com/project-chip/zap.git | ||
|
||
WORKDIR /opt | ||
RUN git clone $ZAP_ORIGIN | ||
WORKDIR ./zap | ||
RUN git checkout $ZAP_COMMIT | ||
RUN npm ci |
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,8 @@ | ||
# ZAP | ||
|
||
- This Dockerfile builds https://github.com/project-chip/zap.git, which gets | ||
copied into `chip-build-vscode` | ||
- ZAP is also a submodule in `third_party/zap/repo`. You can check the commit | ||
of ZAP used in the submodule by running | ||
`git ls-tree master third_party/zap/repo | awk '{print $3}'` from the | ||
repository root. |
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