Dockerfile 1.3 KB
Newer Older
Your Name's avatar
-  
Your Name committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ubuntu:16.04
RUN rm /etc/apt/sources.list
ADD sources.list /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
    ubuntu-server \
    bash-completion \
    vim \
    git \
    sudo \
    rsync \    
    cron \
    byobu \
    openssh-server \
Martin Mai's avatar
kix17    
Martin Mai committed
17
18
    curl \
    mysql-workbench
Your Name's avatar
-  
Your Name committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32

RUN curl http://packages.kixdesk.com/repository/debian/PublicKey > kixkey 
RUN cat kixkey | apt-key add -
RUN apt-get update

RUN locale-gen de_DE.utf8 && locale -a      


RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
    --allow-unauthenticated \
    kix-mysql\
    kix
        
  
Martin Mai's avatar
kix17    
Martin Mai committed
33
RUN a2ensite default-ssl && a2enmod ssl && a2enmod rewrite
Your Name's avatar
-  
Your Name committed
34
35
RUN make-ssl-cert generate-default-snakeoil --force-overwrite

Martin Mai's avatar
kix17    
Martin Mai committed
36
# das brauchen wir später im normalen Dateisystem, wird aber beim mounten von Volumes verdeckt
Your Name's avatar
-  
Your Name committed
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
RUN mkdir -p /root/uniba.de/initial/var/lib/mysql/
RUN rsync -a /var/lib/mysql/ /root/uniba.de/initial/var/lib/mysql/

RUN mkdir -p /root/uniba.de/initial/opt/
RUN rsync -a /opt/ /root/uniba.de/initial/opt/

# 
ADD start.sh /start
RUN chmod +x /start
# 
RUN mkdir -p /root/uniba.de/initial/remove-after-run
ADD setup.sh /root/uniba.de/initial/remove-after-run/setup.sh
# 
RUN mkdir -p /root/.ssh/
ADD authorized_keys2 /root/.ssh/authorized_keys2



CMD ["/start", "-D"]