Skip to content

Commit

Permalink
Inculde the surge ubuntu 18 image
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Jul 30, 2024
1 parent 35b4ae5 commit 39a4387
Show file tree
Hide file tree
Showing 9 changed files with 983 additions and 1 deletion.
68 changes: 68 additions & 0 deletions ubuntu-18-upgrade-cmake/Dockerfile
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
17 changes: 17 additions & 0 deletions ubuntu-18-upgrade-cmake/do-build-2.sh
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


6 changes: 6 additions & 0 deletions ubuntu-18-upgrade-cmake/do-build.sh
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)"

1 change: 1 addition & 0 deletions ubuntu-18-upgrade-cmake/make-image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build --tag sst-dockerimages-ubuntu18:2 .
3 changes: 3 additions & 0 deletions ubuntu-18-upgrade-cmake/run-in-image.sh
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
10 changes: 10 additions & 0 deletions ubuntu-18-upgrade-cmake/start-vm.sh
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



10 changes: 10 additions & 0 deletions ubuntu-18-upgrade-cmake/start.sh
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



Loading

0 comments on commit 39a4387

Please sign in to comment.