-
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.
Implement Docker best practices (#6373)
* Pin versions for connectedhomeip/chip-build image Signed-off-by: Victor Morales <[email protected]> * Pin versions for connectedhomeip/chip-build-efr32 image Signed-off-by: Victor Morales <[email protected]> * Pin versions for connectedhomeip/chip-build-android image Signed-off-by: Victor Morales <[email protected]> * Pin versions for connectedhomeip/chip-build-cirque image Signed-off-by: Victor Morales <[email protected]> * Pin versions for connectedhomeip/chip-build-esp32 image Signed-off-by: Victor Morales <[email protected]> * Pin versions for connectedhomeip/chip-build-esp32-qemu image Signed-off-by: Victor Morales <[email protected]> * Pin versions for connectedhomeip/chip-build-k32w image Signed-off-by: Victor Morales <[email protected]> * Pin versions for connectedhomeip/chip-build-nrf-platform image Signed-off-by: Victor Morales <[email protected]>
- Loading branch information
1 parent
9aca681
commit 4456659
Showing
8 changed files
with
134 additions
and
124 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,47 @@ | ||
ARG VERSION=latest | ||
FROM connectedhomeip/chip-build:${VERSION} | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
# Bazel | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy \ | ||
curl gnupg \ | ||
&& curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg \ | ||
&& mv bazel.gpg /etc/apt/trusted.gpg.d/ \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ | ||
curl=7.68.0-1ubuntu2.5 gnupg=2.2.19-3ubuntu2.1 \ | ||
&& curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > /etc/apt/trusted.gpg.d/bazel.gpg \ | ||
&& echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy \ | ||
bazel \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ | ||
bazel=4.0.0 \ | ||
&& rm -rf /var/lib/apt/lists/ \ | ||
&& : # aids diffs | ||
|
||
# Docker | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy \ | ||
curl gnupg-agent apt-transport-https ca-certificates \ | ||
software-properties-common \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ | ||
curl=7.68.0-1ubuntu2.5 gnupg-agent=2.2.19-3ubuntu2.1 apt-transport-https=2.0.5 ca-certificates=20210119~20.04.1 \ | ||
software-properties-common=0.98.9.4 \ | ||
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \ | ||
&& add-apt-repository \ | ||
"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy \ | ||
docker-ce docker-ce-cli containerd.io \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ | ||
docker-ce=5:20.10.6~3-0~ubuntu-focal docker-ce-cli=5:20.10.6~3-0~ubuntu-focal containerd.io=1.4.4-1 \ | ||
&& rm -rf /var/lib/apt/lists/ \ | ||
&& : # aids diffs | ||
|
||
# Other Cirque prereqs | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy \ | ||
sudo socat psmisc tigervnc-standalone-server tigervnc-viewer \ | ||
python3-pip python3-venv python3-setuptools libdbus-glib-1-dev \ | ||
uuid-runtime libgirepository1.0-dev \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ | ||
sudo=1.8.31-1ubuntu1.2 socat=1.7.3.3-2 psmisc=23.3-1 tigervnc-standalone-server=1.10.1+dfsg-3 tigervnc-viewer=1.10.1+dfsg-3 \ | ||
python3-pip=20.0.2-5ubuntu1.3 python3-venv=3.8.2-0ubuntu2 python3-setuptools=45.2.0-1 libdbus-glib-1-dev=0.110-5fakssync1 \ | ||
uuid-runtime=2.34-0.1ubuntu9.1 libgirepository1.0-dev=1.64.1-1~ubuntu20.04.1 \ | ||
&& rm -rf /var/lib/apt/lists/ \ | ||
&& : # aids diffs | ||
|
||
COPY requirements_nogrpc.txt /requirements.txt | ||
|
||
RUN set -x \ | ||
&& pip3 install -r requirements.txt \ | ||
&& pip3 install --no-cache-dir -r requirements.txt \ | ||
&& : # aids diffs |
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,13 +1,12 @@ | ||
ARG VERSION=latest | ||
FROM connectedhomeip/chip-build:${VERSION} | ||
|
||
|
||
|
||
|
||
# GNU ARM Embedded toolchain, cross compiler for various platform builds | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy \ | ||
gcc-arm-none-eabi \ | ||
binutils-arm-none-eabi \ | ||
ccache | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ | ||
gcc-arm-none-eabi=15:9-2019-q4-0ubuntu1 \ | ||
binutils-arm-none-eabi=2.34-4ubuntu1+13ubuntu1 \ | ||
ccache=3.7.7-1 \ | ||
&& rm -rf /var/lib/apt/lists/ \ | ||
&& : # last line |
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,19 +1,19 @@ | ||
ARG VERSION=latest | ||
FROM connectedhomeip/chip-build:${VERSION} | ||
|
||
WORKDIR /opt/sdk | ||
|
||
# Setup the K32W SDK | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y wget unzip \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
wget=1.20.3-1ubuntu1 unzip=6.0-25ubuntu1 \ | ||
&& rm -rf /var/lib/apt/lists/ \ | ||
&& mkdir -p /opt/sdk \ | ||
&& cd /opt/sdk \ | ||
&& wget https://mcuxpresso.nxp.com/eclipse/sdk/2.6.3/plugins/com.nxp.mcuxpresso.sdk.sdk_2.x_k32w061dk6_2.6.3.201911251446.jar \ | ||
&& unzip com.nxp.mcuxpresso.sdk.sdk_2.x_k32w061dk6_2.6.3.201911251446.jar \ | ||
&& rm -rf com.nxp.mcuxpresso.sdk.sdk_2.x_k32w061dk6_2.6.3.201911251446.jar \ | ||
&& cd sdks \ | ||
&& unzip 5faab205f2663647c5c7ce05c382d2a8.zip \ | ||
&& rm -rf 5faab205f2663647c5c7ce05c382d2a8.zip \ | ||
&& unzip sdks/5faab205f2663647c5c7ce05c382d2a8.zip -d sdks/ \ | ||
&& rm -f com.nxp.mcuxpresso.sdk.sdk_2.x_k32w061dk6_2.6.3.201911251446.jar \ | ||
&& rm -f sdk/5faab205f2663647c5c7ce05c382d2a8.zip \ | ||
&& : # last line | ||
|
||
ENV K32W061_SDK_ROOT=/opt/sdk/sdks |
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.