forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/labs: Add docker for building and running qemu infrastructure
Signed-off-by: Sergiu Weisz <[email protected]>
- Loading branch information
Showing
5 changed files
with
77 additions
and
15 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
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,23 @@ | ||
version: '3' | ||
services: | ||
docs-build: | ||
build: | ||
context: . | ||
dockerfile: ./docs/Dockerfile | ||
volumes: | ||
- ../../../:/linux | ||
environment: | ||
# workaround for binfmt_misc support in containers | ||
- SPHINX_DITAA_CMD=jexec | ||
- SPHINX_DITAA_ARG=/usr/bin/ditaa | ||
kernel-build: | ||
privileged: true | ||
tty: true | ||
build: | ||
context: . | ||
dockerfile: ./kernel/Dockerfile | ||
args: | ||
UID: ${UID} | ||
GID: ${GID} | ||
volumes: | ||
- ../../../:/linux |
File renamed without changes.
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,43 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y software-properties-common | ||
RUN apt-get install -y gcc-multilib | ||
RUN apt-get install -y libncurses5-dev | ||
RUN apt-get install -y bc | ||
RUN apt-get install -y qemu-system-x86 | ||
RUN apt-get install -y qemu-system-arm | ||
RUN apt-get install -y python3 | ||
RUN apt-get install -y minicom | ||
RUN apt-get install -y git | ||
RUN apt-get install -y wget | ||
RUN apt-get install -y curl | ||
RUN apt-get install -y sudo | ||
|
||
RUN apt-get install -y iproute2 | ||
RUN apt-get install -y netcat-openbsd | ||
RUN apt-get install -y vim | ||
RUN apt-get install -y dnsmasq | ||
RUN apt-get install -y iputils-ping | ||
RUN apt-get install -y bash-completion | ||
RUN apt-get install -y build-essential | ||
RUN apt-get install -y bison | ||
RUN apt-get install -y flex | ||
|
||
RUN apt-get -y clean | ||
|
||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
ARG UID | ||
ARG GID | ||
|
||
RUN groupadd -g $GID ubuntu | ||
RUN useradd -u $UID -g $GID -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/ |
This file was deleted.
Oops, something went wrong.