Skip to content

Commit

Permalink
Adding docker images for compilation with Ubuntu Jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
marigostra committed Apr 10, 2024
1 parent 4ad4c39 commit 63d8af7
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 1 deletion.
24 changes: 24 additions & 0 deletions docker/jammy-iso/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

FROM ubuntu:jammy

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -q -y \
squashfs-tools \
openjdk-17-jdk openjfx ant maven \
dpkg-dev debhelper make \
sox timidity midicsv \
git curl wget locales iputils-ping file && \
rm -rf /var/lib/apt/lists/* && \
sed -i '/ru_RU.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen

ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64

ENV LC_ALL ru_RU.UTF-8
ENV LANG ru_RU.UTF-8
ENV LANGUAGE ru_RU.UTF-8

WORKDIR /wrk
COPY lwr-build-iso /wrk/lwr-build-iso
CMD [ "./lwr-build-iso" ]
17 changes: 17 additions & 0 deletions docker/jammy-iso/lwr-build-iso
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash -e

THIS="${0##*/}"
UBUNTU_VERSION=22.04.3
SQUASHFSSRC=/iso/casper/filesystem.squashfs
LWRISO_ROOT=/wrk/tmpfs/image

git clone https://github.com/luwrain/linux/
mkdir tmpfs
mount -t tmpfs -o size=20g .tmpfs /wrk/tmpfs
echo Unpacking the ISO image
unsquashfs -d tmpfs/image "$SQUASHFSSRC" > /dev/null
cp -r /wrk/linux/ubuntu/$UBUNTU_VERSION/{dist,scripts/.} /wrk/tmpfs
mount --bind /proc /wrk/tmpfs/image/proc
cd /wrk/tmpfs
export LWRISO_ROOT
./image-prepare
6 changes: 6 additions & 0 deletions docker/jammy-iso/make
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -e

UBUNTU_ISO_IMAGE=/mnt/ub-22.04

docker build -t lwr-iso .
docker run --privileged --rm -v "$UBUNTU_ISO_IMAGE:/iso" lwr-iso
5 changes: 4 additions & 1 deletion docker/Dockerfile → docker/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ RUN apt-get update && \
apt-get install -q -y \
openjdk-17-jdk openjfx ant maven \
dpkg-dev debhelper make \
git sox timidity curl locales iputils-ping file && \
sox timidity midicsv \
git curl wget locales iputils-ping file && \
rm -rf /var/lib/apt/lists/* && \
sed -i '/ru_RU.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen

ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64

ENV LC_ALL ru_RU.UTF-8
ENV LANG ru_RU.UTF-8
ENV LANGUAGE ru_RU.UTF-8
Expand Down
File renamed without changes.

0 comments on commit 63d8af7

Please sign in to comment.