-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
39 lines (32 loc) · 1.43 KB
/
Dockerfile
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
FROM debian:jessie
RUN echo "deb http://httpredir.debian.org/debian/ sid main" > /etc/apt/sources.list
RUN echo "deb-src http://httpredir.debian.org/debian/ sid main" >> /etc/apt/sources.list
RUN apt-get update && apt-get -y install \
bash sudo devscripts \
vim git \
ipython3 python3 python3-debian python3-git \
osc
RUN useradd -d /home/developer -m developer
RUN mkdir /work
RUN chown developer /work
# setup developer account
RUN echo 'developer ALL=NOPASSWD: ALL' >> /etc/sudoers
USER developer
ENV HOME /home/developer
WORKDIR /home/developer/
# kde anongit url alias
RUN git config --global url."git://anongit.kde.org/".insteadOf kde: && \
git config --global url."ssh://[email protected]/".pushInsteadOf kde: && \
git config --global url."https://git.kolab.org/diffusion/".insteadOf kolab: && \
git config --global url."ssh://[email protected]/diffusion/".pushInsteadOf kolab: && \
git config --global url."https://github.com/".insteadOf github: && \
git config --global url."[email protected]:".pushInsteadOf github: && \
git config --global user.email "[email protected]" && \
git config --global user.name "Developer"
VOLUME /work
ENV DISPLAY :0
ENV LANG "de_DE.UTF-8"
RUN mkdir -p /home/developer/.local/lib/python3.5/dist-packages
RUN chown developer /home/developer/.local/lib/python3.5/dist-packages
RUN ln -s /home/developer/release /home/developer/.local/lib/python3.5/dist-packages/
ENTRYPOINT ["/bin/bash"]