-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
making it possible to build the software inside a container
- Loading branch information
1 parent
b9d49d4
commit d718574
Showing
3 changed files
with
87 additions
and
5 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,28 @@ | ||
.gitignore | ||
future-config | ||
euphonium/.DS_Store | ||
euphonium/*.d | ||
euphonium/.idea | ||
euphonium/.cache | ||
euphonium/.cache/ | ||
euphonium/authBlob.json | ||
euphonium/cmake-build-debug | ||
euphonium/scripts-version | ||
euphonium/wifi.config.json | ||
euphonium/build/ | ||
euphonium/euphonium/protos | ||
euphonium/euphonium/scripts/*.json | ||
euphonium/euphonium/scripts/configuration/*.json | ||
euphonium/targets/cli/build/* | ||
euphonium/targets/esp32/*.gz | ||
euphonium/targets/esp32/ota-checksum.txt | ||
euphonium/targets/esp32/ota.bin | ||
euphonium/targets/esp32/scripts_checksum.txt | ||
euphonium/targets/esp32/scripts.tar | ||
euphonium/targets/esp32/recovery/dependencies.lock | ||
euphonium/targets/esp32/app/dependencies.lock | ||
euphonium/targets/esp32/app/spiffs/* | ||
euphonium/web/package-lock.json | ||
euphonium/web/yarn.lock | ||
euphonium/py/ | ||
euphonium/targets/esp32/recovery/build |
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,38 @@ | ||
FROM espressif/idf:release-v4.4 AS base | ||
|
||
ADD https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0.tar.gz /tmp | ||
WORKDIR /tmp | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN apt-get update \ | ||
&& apt-get install -y build-essential libssl-dev \ | ||
libasound-dev libavahi-compat-libdnssd-dev | ||
RUN tar -zxvf cmake-3.20.0.tar.gz \ | ||
&& cd cmake-3.20.0 \ | ||
&& ./bootstrap \ | ||
&& make -j$(nproc) \ | ||
&& make install \ | ||
&& rm -fr /tmp/cmake-3.20.0 /tmp/cmake-3.20.0.tar.gz | ||
|
||
## Install PortAudio | ||
ADD http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz /tmp | ||
RUN tar -zxvf /tmp/pa_stable_v190700_20210406.tgz \ | ||
&& cd /tmp/portaudio/build \ | ||
&& cmake .. \ | ||
&& make -j$(nproc) \ | ||
&& make install \ | ||
&& rm -fr /tmp/portaudio /tmp/pa_stable_v190700_20210406.tgz | ||
|
||
FROM base AS build | ||
|
||
WORKDIR /workspace | ||
|
||
## Install Python dependencies | ||
COPY euphonium/requirements.txt euphonium/requirements.txt | ||
RUN pip install -r euphonium/requirements.txt | ||
|
||
COPY . . | ||
RUN mkdir -p euphonium/targets/cli/build \ | ||
&& make -j$(nproc) cli | ||
RUN . /opt/esp/idf/export.sh \ | ||
&& pip install -r euphonium/requirements.txt \ | ||
&& make esp32 |
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