Dockerfile 1.5 KB
Newer Older
Martin Mai's avatar
-  
Martin Mai committed
1
2
3
4
5
6
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

Your Name's avatar
-    
Your Name committed
7
8
9
10
11
12
13
14
15
RUN apt-get install -y \
     bash-completion \
     vim \
     git \
     sudo \
     rsync \    
     cron \
     imagemagick \
     byobu
Martin Mai's avatar
-  
Martin Mai committed
16
17
# 
# #DEBIAN_FRONTEND=noninteractive
Your Name's avatar
-    
Your Name committed
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
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
   apache2 \
   openssh-server \
   rsync \
   mysql-server

#typo3
RUN apt-get install -y \
  libapache2-mod-php \
  php-common \
  php-curl \
  php-gd \
  php-ldap \
  php-mbstring \
  php-soap \
  php-xml \
  php-xmlrpc \
  php-zip \
  php-mysql \
  graphicsmagick \
  curl \
  tree
  
#  composer \  
  
RUN git config --global user.email "rz@uni-bamberg.de"; \
  git config --global user.name "Docker INTERN"; \
  git config --global push.default simple

 
RUN locale-gen de_DE.utf8 && locale -a      
   
RUN a2ensite default-ssl && a2enmod ssl rewrite
RUN make-ssl-cert generate-default-snakeoil --force-overwrite
Martin Mai's avatar
-  
Martin Mai committed
52
# 
Your Name's avatar
-    
Your Name committed
53
RUN a2dismod mpm_event && a2enmod mpm_prefork && a2enmod headers
Martin Mai's avatar
-  
Martin Mai committed
54
55
# 
# 
Your Name's avatar
-    
Your Name committed
56
57
58
RUN mkdir -p /root/uniba.de/initial
RUN mkdir -p /root/uniba.de/initial/var/lib/mysql/
RUN rsync -a /var/lib/mysql/ /root/uniba.de/initial/var/lib/mysql/
Martin Mai's avatar
-  
Martin Mai committed
59
60
61
62
# 
ADD start.sh /start
RUN chmod +x /start
# 
Your Name's avatar
-    
Your Name committed
63
64
65
RUN mkdir -p /root/uniba.de/initial/remove-after-run
ADD setup.sh /root/uniba.de/initial/remove-after-run/setup.sh
ADD init.sql /root/uniba.de/initial/remove-after-run/init.sql
Martin Mai's avatar
-  
Martin Mai committed
66
# 
Your Name's avatar
-    
Your Name committed
67
68
RUN mkdir -p /root/.ssh/
ADD authorized_keys2 /root/.ssh/authorized_keys2
Martin Mai's avatar
-  
Martin Mai committed
69
70
71
72
73
74



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