forked from thehajime/lkl-docker
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Akira Moroo <[email protected]>
- Loading branch information
Showing
3 changed files
with
59 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
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,33 @@ | ||
FROM i386/ubuntu:18.04 | ||
LABEL authors="Hajime Tazaki <[email protected]>, Octavian Purdila <[email protected]>" | ||
|
||
ENV LLVM_VERSION=8 | ||
RUN apt-get update && \ | ||
apt-get install -y software-properties-common && \ | ||
add-apt-repository ppa:git-core/ppa && \ | ||
apt-get update && \ | ||
apt-get install -y sudo build-essential bc git xfsprogs ccache \ | ||
btrfs-tools iputils-ping dosfstools \ | ||
python python-pip bison flex iproute2 \ | ||
libfuse-dev libarchive-dev \ | ||
linux-headers-`uname -r` \ | ||
valgrind libnuma-dev \ | ||
clang-$LLVM_VERSION lld-$LLVM_VERSION && \ | ||
ln -sf `which clang-$LLVM_VERSION` /usr/bin/clang && \ | ||
ln -sf `which ld.lld-$LLVM_VERSION` /usr/bin/ld.lld && \ | ||
pip install yamlish junit_xml && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN useradd -ms /bin/bash ubuntu && \ | ||
adduser ubuntu sudo && \ | ||
echo -n 'ubuntu:ubuntu' | chpasswd | ||
|
||
# Enable passwordless sudo for users under the "sudo" group | ||
RUN sed -i.bkp -e \ | ||
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \ | ||
/etc/sudoers | ||
|
||
USER ubuntu | ||
WORKDIR /home/ubuntu/ | ||
|
||
ENV PATH /usr/lib/ccache:${PATH} |
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,16 @@ | ||
FROM lkldocker/circleci:0.5 | ||
LABEL authors="Hajime Tazaki <[email protected]>, Octavian Purdila <[email protected]>" | ||
|
||
ENV LLVM_VERSION=8 | ||
RUN sudo apt-get update && \ | ||
sudo apt-get install -y wget && \ | ||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - && \ | ||
sudo add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-$LLVM_VERSION main" && \ | ||
sudo apt-get update && \ | ||
sudo apt-get install -y libfuse-dev libarchive-dev \ | ||
linux-headers-4.4.0-97-generic \ | ||
valgrind libnuma-dev \ | ||
clang-$LLVM_VERSION lld-$LLVM_VERSION && \ | ||
sudo ln -sf `which clang-$LLVM_VERSION` /usr/bin/clang && \ | ||
sudo ln -sf `which ld.lld-$LLVM_VERSION` /usr/bin/ld.lld && \ | ||
sudo rm -rf /var/lib/apt/lists/* |