forked from openthread/ot-efr32
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! [actions] upload docker image tar to artifacts
- Loading branch information
Showing
5 changed files
with
187 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ARG BASE_IMAGE='ubuntu:22.04' | ||
FROM ${BASE_IMAGE} as base | ||
|
||
ENV TZ="America/New_York" | ||
ENV repo_dir="/ot-efr32" | ||
WORKDIR ${repo_dir} | ||
|
||
# Install packages | ||
RUN apt-get update && \ | ||
apt-get -y install --no-install-recommends \ | ||
sudo \ | ||
tzdata \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy scripts | ||
COPY ./script/bootstrap \ | ||
./script/ | ||
|
||
# Install system packages and ARM toolchain | ||
RUN ./script/bootstrap packages && rm -rf /var/lib/apt/lists/* | ||
RUN ./script/bootstrap arm_toolchain | ||
|
||
# Install Python packages | ||
COPY ./requirements.txt . | ||
RUN ./script/bootstrap python |
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,21 @@ | ||
ARG BASE_IMAGE='siliconlabsinc/ot-efr32-dev:base' | ||
|
||
FROM ${BASE_IMAGE} AS ot-efr32-dev | ||
|
||
COPY ./script/bootstrap_silabs \ | ||
./script/ | ||
ENV SLC_INSTALL_DIR=/opt/slc_cli | ||
RUN mkdir ${SLC_INSTALL_DIR} && \ | ||
./script/bootstrap silabs | ||
|
||
|
||
# Change workdir to root temporarily | ||
WORKDIR / | ||
|
||
# Clone repo for convenience | ||
ARG REPO_URL="https://github.com/openthread/ot-efr32" | ||
ENV repo_dir="/ot-efr32" | ||
RUN rm -rf ${repo_dir} && git clone ${REPO_URL} ${repo_dir} | ||
|
||
# Change workdir back to repo | ||
WORKDIR ${repo_dir} |