-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding docker images for compilation with Ubuntu Jammy
- Loading branch information
1 parent
4ad4c39
commit 63d8af7
Showing
5 changed files
with
51 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,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" ] |
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 @@ | ||
#!/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 |
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 @@ | ||
#!/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 |
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
File renamed without changes.