|
1 | 1 | FROM opensuse:tumbleweed |
2 | 2 | LABEL maintainer Sergio Lindo Mansilla <slindomansilla@suse.com> |
3 | | -LABEL version="2017-11-25" |
| 3 | +LABEL version="2017-12-11" |
4 | 4 |
|
5 | 5 | RUN zypper --gpg-auto-import-keys ref |
6 | | -RUN zypper --non-interactive in --force-resolution apache2 |
7 | | -RUN zypper --non-interactive in --force-resolution w3m |
8 | | -RUN zypper --non-interactive in --force-resolution which |
9 | | -RUN zypper --non-interactive in --force-resolution openQA |
| 6 | +RUN zypper --non-interactive install --force-resolution apache2 |
| 7 | +RUN zypper --non-interactive install --force-resolution perl-DateTime-Format-Pg |
| 8 | +RUN zypper --non-interactive install --force-resolution perl-DBD-Pg |
| 9 | +RUN zypper --non-interactive install --force-resolution postgresql |
| 10 | +RUN zypper --non-interactive install --force-resolution postgresql-server |
| 11 | +RUN zypper --non-interactive install --force-resolution w3m |
| 12 | +RUN zypper --non-interactive install --force-resolution which |
| 13 | +RUN zypper --non-interactive install --force-resolution openQA |
10 | 14 |
|
11 | 15 | RUN a2enmod headers |
12 | 16 | RUN a2enmod proxy |
13 | 17 | RUN a2enmod proxy_http |
14 | 18 | RUN a2enmod proxy_wstunnel |
15 | 19 |
|
16 | 20 | # Config |
17 | | -RUN mkdir -p /run/dbus |
| 21 | +RUN mkdir --parents /run/dbus |
18 | 22 | RUN echo ServerName localhost >> /etc/apache2/httpd.conf |
19 | 23 | RUN cp /etc/apache2/vhosts.d/openqa.conf.template /etc/apache2/vhosts.d/openqa.conf |
| 24 | +USER postgres |
| 25 | +RUN /usr/share/postgresql/postgresql-script start && \ |
| 26 | + createuser geekotest && \ |
| 27 | + createdb openqa && \ |
| 28 | + psql --command='GRANT ALL PRIVILEGES ON DATABASE openqa TO geekotest;' && \ |
| 29 | + /usr/share/postgresql/postgresql-script stop |
| 30 | +USER root |
20 | 31 | ADD client.conf /etc/openqa/ |
| 32 | +ADD database.ini /etc/openqa |
21 | 33 | ADD openqa.ini /etc/openqa/ |
22 | 34 | ADD rsyncd.conf /etc/ |
23 | 35 |
|
|
0 commit comments