-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-14: docker: Build into container using helper.mk
To ensure reproductibility on host or cloud Bug-SiliconLabs: UIC-3082 Bug-GitHub: rzr#3 Forwarded: #14 Signed-off-by: Philippe Coval <[email protected]>
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM debian:bullseye | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV LC_ALL en_US.UTF-8 | ||
ENV LANG ${LC_ALL} | ||
|
||
RUN echo "# log: Configuring locales" \ | ||
&& set -x \ | ||
&& apt-get update -y \ | ||
&& apt-get install -y locales \ | ||
&& echo "${LC_ALL} UTF-8" | tee /etc/locale.gen \ | ||
&& locale-gen ${LC_ALL} \ | ||
&& dpkg-reconfigure locales \ | ||
&& TZ=Etc/UTC apt-get -y install tzdata \ | ||
&& date -u | ||
|
||
ENV project unifysdk | ||
ENV workdir /usr/local/opt/${project} | ||
ADD . ${workdir} | ||
|
||
WORKDIR ${workdir} | ||
|
||
RUN echo "# log: Setup system" \ | ||
&& set -x \ | ||
&& apt-get install -y make sudo \ | ||
&& ./helper.mk help setup \ | ||
&& date -u | ||
|
||
RUN echo "# log: Build" \ | ||
&& set -x \ | ||
&& ./helper.mk \ | ||
&& date -u | ||
|
||
ENTRYPOINT [ "/usr/local/opt/unifysdk/helper.mk" ] | ||
CMD [ "help" ] |