-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile-ubuntu
74 lines (69 loc) · 3.13 KB
/
Dockerfile-ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM ubuntu:18.04
MAINTAINER Mathieu Tarral <[email protected]>
# FRAMEWORKS | BUILD DEPENDENCY
#-----------------------|---------------------------------
# kcodecs | gperf
# kservice | flex bison
# ki18n | qtscript5-dev
# kwindowsystem | libqt5x11extras5-dev
# kwidgetsaddons | qttools5-dev
# kiconthemes | libqt5svg5-dev
# kwallet | libgcrypt20-dev
# kdeclarative | qtdeclarative5-dev libepoxy-dev
# kactivities | libboost-all-dev
# kdewebkit | libqt5webkit5-dev
# kdelib4support | libsm-dev
# khtml | libgif-dev libjpeg-dev libpng-dev
# frameworkintegration | libxcursor-dev
# ktexteditor | libqt5xmlpatterns5-dev
# polkit-qt-1 | libpolkit-agent-1-dev
# phonon-vlc | libvlc-dev libvlccore-dev
# phonon-gstreamer | libgstreamer-plugins-base1.0-dev
# akonadi | xsltproc
# networkmanager-qt | libnm-glib-dev modemmanager-dev
#-----------------------|---------------------------------
# Install dependencies
#---------------------------
# set noninteractive frontend only during build
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y git bzr vim g++ cmake tar doxygen gnupg && \
apt-get install -y libwww-perl libxml-parser-perl libjson-perl libyaml-libyaml-perl dialog gettext libxrender-dev pkg-config libxcb-keysyms1-dev docbook-xsl libxslt1-dev libxml2-utils libudev-dev libqt4-dev && \
apt-get install -y \
gperf \
flex bison \
qtscript5-dev \
libqt5x11extras5-dev \
qttools5-dev \
libqt5svg5-dev \
libgcrypt20-dev \
qtdeclarative5-dev libepoxy-dev \
libboost-all-dev \
libqt5webkit5-dev \
libsm-dev \
libgif-dev libjpeg-dev libpng-dev \
libxcursor-dev \
libqt5xmlpatterns5-dev \
libpolkit-agent-1-dev \
libvlc-dev libvlccore-dev \
libgstreamer-plugins-base1.0-dev \
xsltproc \
libnm-glib-dev modemmanager-dev && \
useradd -d /home/kdedev -m kdedev && \
mkdir /work /qt && \
chown kdedev /work /qt
# some symlinks in /root to handle sudo ./kdesrc-build
RUN ln -s /home/kdedev/.kdesrc-buildrc /root/.kdesrc-buildrc && \
ln -s /home/kdedev/kdesrc-build /root/kdesrc-build
# setup kdedev account
RUN apt-get install -y sudo && echo 'kdedev ALL=NOPASSWD: ALL' >> /etc/sudoers
USER kdedev
ENV HOME /home/kdedev
WORKDIR /home/kdedev/
# kde anongit url alias
RUN git config --global user.name "Your Name" && \
git config --global user.email "[email protected]" && \
git clone https://invent.kde.org/sdk/kdesrc-build.git
VOLUME /work
VOLUME /qt
CMD ["bash"]