forked from HewlettPackard/LinuxKI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (51 loc) · 1.78 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Licensed under GPL v2 or later
#
# See https://docs.docker.com/install/ for information on how to install Docker.
#
# After installing LinuxKI, build the container image:
# docker build \
# --tag linuxki \
# --build-arg http_proxy=$http_proxy \
# --build-arg https_proxy=$https_proxy \
# --build-arg HTTP_PROXY=$HTTP_PROXY \
# --build-arg HTTPS_PROXY=$HTTPS_PROXY \
# /opt/linuxki
#
# When generating the LinuxKI reports with kiall, add the -V option to enable
# visualisations in the reports when possible.
#
# After the LinuxKI reports have been generated, to see the results with the
# visualizations, from the directory with the analysis results, run:
# docker run \
# --detach \
# --name linuxki \
# --publish-all \
# --rm \
# --volume $PWD:/var/www/html/linuxki \
# linuxki
#
# port=$(docker inspect \
# --format='{{(index (index .NetworkSettings.Ports "80/tcp") 0).HostPort}}' \
# linuxki)
# echo Server running on port $port
#
# html_file=$(find . -iname 'kp.*.html')
# [[ $(echo $html_file | wc --words) -ne 1 ]] && unset html_file
# xdg-open http://localhost:$port/linuxki/$html_file
#
# When finished looking at the results, run:
# docker stop linuxki
FROM centos:7
LABEL maintainer="Christopher Voltz <[email protected]>"
RUN yum update -y
RUN yum install -y yum-utils
RUN yum install -y httpd mod_ssl
RUN yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm && \
yum-config-manager --enable remi-php72 && \
yum install -y php php-opcache
RUN yum install -y https://raw.githubusercontent.com/HewlettPackard/LinuxKI/master/rpms/linuxki-5.5-1.noarch.rpm
RUN yum clean all -y && rm -rf /var/cache/yum
RUN echo '<?php phpinfo(); ?>' > /var/www/html/info.php
EXPOSE 80
EXPOSE 443
CMD /usr/sbin/httpd -DFOREGROUND