-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added missing script for mainline aarch64
Signed-off-by: Roberto Scolaro <[email protected]>
- Loading branch information
1 parent
61411d3
commit 3b0d57a
Showing
3 changed files
with
40 additions
and
6 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 |
---|---|---|
@@ -1,20 +1,29 @@ | ||
FROM mainline-src as mainline-src | ||
FROM ubuntu:bionic | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /home/ubuntu | ||
|
||
COPY /*.deb /home/ubuntu/ | ||
COPY /version /home/ubuntu/ | ||
COPY --from=mainline-src /mainline-src/ /home/ubuntu/mainline-src/ | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
bc \ | ||
bison \ | ||
build-essential \ | ||
clang \ | ||
curl \ | ||
dbus \ | ||
flex \ | ||
git \ | ||
iproute2 \ | ||
iputils-ping \ | ||
kmod \ | ||
libcap-dev \ | ||
libelf-dev \ | ||
libssl-dev \ | ||
llvm \ | ||
net-tools \ | ||
openssh-server \ | ||
|
@@ -24,20 +33,29 @@ RUN apt-get update && apt-get install -y \ | |
systemd \ | ||
udev \ | ||
wget && \ | ||
apt-get install -s '^gcc-[0-9]*$' && \ | ||
curl -LO https://cmake.org/files/v3.19/cmake-3.19.8-Linux-$(uname -m).tar.gz && \ | ||
tar -xaf cmake-3.19.8-Linux-$(uname -m).tar.gz && \ | ||
rm -vf cmake-3.19.8-Linux-$(uname -m).tar.gz && \ | ||
mv cmake-3.19.8-Linux-$(uname -m) /opt/cmake-3.19.8 && \ | ||
ln -sf /opt/cmake-3.19.8/bin/* /usr/bin/ | ||
|
||
COPY /* /home/ubuntu/ | ||
|
||
RUN apt install -y --fix-broken ./*.deb || exit 1 && \ | ||
ln -sf /opt/cmake-3.19.8/bin/* /usr/bin/ && \ | ||
apt install -y --fix-broken ./*.deb || exit 1 && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -v ./*.deb && \ | ||
rm -v ./*.deb Dockerfile* && \ | ||
find /lib/modules -name '*.ko' -delete ; \ | ||
cd mainline-src && \ | ||
git config --global user.name "user" && \ | ||
git config --global user.email "[email protected]" && \ | ||
git checkout cod/mainline/$(cat /home/ubuntu/version) && \ | ||
cp /lib/modules/$(ls /lib/modules/ | head -1)/build/.config . \ | ||
make prepare0 && \ | ||
rm -rf /lib/modules/$(ls /lib/modules/ | head -1)/build/scripts && \ | ||
cp -rf scripts /lib/modules/$(ls /lib/modules/ | head -1)/build/ && \ | ||
cd .. && \ | ||
rm -rf mainline-src && \ | ||
echo "" > /etc/machine-id && echo "" > /var/lib/dbus/machine-id && \ | ||
sed -ie '/^ConditionVirtualization.*/d' /lib/systemd/system/systemd-timesyncd.service ; \ | ||
sed -i -e 's/^AcceptEnv LANG LC_\*$/#AcceptEnv LANG LC_*/' /etc/ssh/sshd_config && \ | ||
echo 'UseDNS no' >> /etc/ssh/sshd_config && \ | ||
echo "root:root" | chpasswd |
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 @@ | ||
FROM scratch | ||
|
||
COPY /mainline-src/ /mainline-src/ |
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