-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
983 additions
and
1 deletion.
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,68 @@ | ||
FROM ubuntu:18.04 | ||
ENV LANG C.UTF-8 | ||
|
||
ARG JOBS | ||
ARG CTNG_VERSION=1.26.0 | ||
#ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Non-interactive configuration of tzdata | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV DEBCONF_NONINTERACTIVE_SEEN true | ||
RUN { echo 'tzdata tzdata/Areas select Etc'; echo 'tzdata tzdata/Zones/Etc select UTC'; } | debconf-set-selections | ||
|
||
# Create unprivileged user to build toolchains and plugins | ||
RUN groupadd -g 1000 build | ||
RUN useradd --create-home --uid 1000 --gid 1000 --shell /bin/bash build | ||
|
||
# and install it | ||
RUN apt-get update | ||
RUN apt-get install -y software-properties-common | ||
RUN add-apt-repository ppa:ubuntu-toolchain-r/test | ||
RUN apt-get update | ||
RUN apt-get install -y gcc-11 g++-11 git ninja-build flex | ||
|
||
# Then install the prerequistes for a juce build | ||
RUN apt-get install -y git vim | ||
RUN apt-get install -y cmake ninja-build | ||
RUN apt-get install -y \ | ||
devscripts \ | ||
libx11-dev \ | ||
libxcb-cursor-dev \ | ||
libxcb-keysyms1-dev \ | ||
libxcb-util-dev \ | ||
libxkbcommon-dev \ | ||
libxkbcommon-x11-dev \ | ||
xcb \ | ||
libgtk-3-dev \ | ||
libwebkit2gtk-4.0 \ | ||
libwebkit2gtk-4.0-dev \ | ||
libcurl4-openssl-dev \ | ||
alsa \ | ||
alsa-tools \ | ||
libasound2-dev \ | ||
libjack-dev \ | ||
libfreetype6-dev \ | ||
libxinerama-dev \ | ||
libxcb-xinerama0 \ | ||
libxinerama1 \ | ||
x11proto-xinerama-dev \ | ||
libxrandr-dev \ | ||
libgl1-mesa-dev \ | ||
libxcursor-dev \ | ||
libxcursor1 \ | ||
libxcb-cursor-dev \ | ||
libxcb-cursor0 | ||
|
||
RUN mkdir /home/build/cmake-install | ||
WORKDIR /home/build/cmake-install | ||
RUN apt-get install -y wget | ||
RUN wget https://github.com/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-linux-x86_64.sh | ||
RUN chmod 755 ./cmake-3.28.1-linux-x86_64.sh | ||
RUN ./cmake-3.28.1-linux-x86_64.sh --skip-license --prefix=/usr | ||
|
||
RUN apt-get install -y rpm | ||
|
||
# Switch back go the user space user and build the toolchain | ||
USER build | ||
RUN mkdir /home/build/dev | ||
WORKDIR /home/build/dev |
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,17 @@ | ||
echo "Creating Image" | ||
docker create --name surge-build --interactive --tty \ | ||
--volume=/home/paul/dev/surge:/home/build/surge \ | ||
arm-surge:4 | ||
|
||
echo "Starting Image" | ||
docker start surge-build | ||
|
||
echo "Running build" | ||
docker exec -it surge-build /bin/bash -c "(cd /home/build/surge && cmake -B ignore/arm-cross -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER=/home/build/x-tools/aarch64-rpi4-linux-gnu/bin/aarch64-rpi4-linux-gnu-gcc -DCMAKE_CXX_COMPILER=/home/build/x-tools/aarch64-rpi4-linux-gnu/bin/aarch64-rpi4-linux-gnu-g++)" | ||
docker exec -it surge-build /bin/bash -c "(cd /home/build/surge && cmake --build ignore/arm-cross --parallel 4 --target surge-xt-distribution)" | ||
|
||
echo "Stopping Image" | ||
docker stop surge-build | ||
docker rm surge-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,6 @@ | ||
docker run --rm --interactive --tty \ | ||
--volume=/Users/paul/dev/music/arm-cross:/home/build/source-dir \ | ||
--volume=/Users/paul/dev/music/surge:/home/build/surge \ | ||
arm-surge:4 \ | ||
/bin/bash -c "(cd /home/build/surge && cmake --build ignore/arm-cross)" | ||
|
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 @@ | ||
docker build --tag sst-dockerimages-ubuntu18:2 . |
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,3 @@ | ||
docker run --rm --interactive --tty \ | ||
--volume=/home/paul/dev/sst-dockerimages:/home/build/sst-dockerimages \ | ||
x64-surge:1 bash |
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,10 @@ | ||
echo "Creating Image" | ||
docker create --name surge-build-u18 --interactive --tty \ | ||
--volume=/home/paul/dev/surge:/home/build/surge \ | ||
sst-dockerimages-ubuntu18:2 | ||
|
||
echo "Starting Image" | ||
docker start surge-build-u18 | ||
|
||
|
||
|
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,10 @@ | ||
echo "Creating Image" | ||
docker create --name surge-build-u18 --interactive --tty \ | ||
--volume=/home/paul/dev/surge:/home/build/surge \ | ||
sst-dockerimages-ubuntu18:1 | ||
|
||
echo "Starting Image" | ||
docker start surge-build-u18 | ||
|
||
|
||
|
Oops, something went wrong.