Skip to content

Commit 364f237

Browse files
author
Sean P. Kane
committed
Add themes
1 parent 228ec81 commit 364f237

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+23
-21
lines changed

Dockerfile

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
FROM fedora:22
22

33
RUN dnf install -y httpd
4-
RUN mkdir /var/www/html/res
4+
RUN mkdir /var/www/html/res && \
5+
mkdir /theme1 && \
6+
mkdir /theme2
57
ADD httpd.conf /etc/httpd/conf/httpd.conf
6-
ADD publish/html5/res/* /var/www/html/res/
8+
ADD publish/html5/theme1/* /theme1/
9+
ADD publish/html5/theme2/* /theme2/
710
ADD publish/html5/game.min.js /var/www/html/
811
ADD publish/html5/index.html /var/www/html/
912
ADD publish/html5/project.json /var/www/html/
10-
ADD boring_404.html /var/www/html/
11-
ENV 404_PATH /boring_404.html
13+
ADD start.sh /
14+
ENV THEME 1
1215

1316
EXPOSE 80
1417

15-
CMD ["/usr/sbin/httpd", "-D", "FOREGROUND"]
18+
CMD ["/start.sh"]
19+

add-ons/better_404.html

-12
This file was deleted.

add-ons/container.png

-35.7 KB
Binary file not shown.

docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ services:
55
context: "."
66
image: "myuser/dockergame:latest"
77
environment:
8-
404_PATH: "/boring_404.html"
8+
THEME: "1"
99
ports:
1010
- "8090:80"

httpd.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Include conf.modules.d/*.conf
55
User apache
66
Group apache
77
ServerAdmin root@localhost
8-
ErrorDocument 404 ${404_PATH}
8+
ErrorDocument 404 /404.html
99

1010
<Directory />
1111
AllowOverride none

boring_404.html publish/html5/404.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<html>
22
<head>
3-
<title>Boring 404</title>
3+
<title>404</title>
44
</head>
55
<body>
66
<center>
77
<a href="/">
8-
404...Page Not Found
8+
<img src="/res/404.png" width="100%">
99
</a>
1010
</center>
1111
</body>

publish/html5/res

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
theme1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

publish/html5/theme2/404.png

104 KB

publish/html5/theme2/CloseNormal.png

3.4 KB
2.67 KB

publish/html5/theme2/HelloWorld.png

353 KB

publish/html5/theme2/bg.png

13.6 KB

publish/html5/theme2/container.png

590 Bytes

publish/html5/theme2/docker_whale.png

23.1 KB
15.9 KB
26.1 KB
60.8 KB

publish/html5/theme2/favicon.ico

1 KB
Binary file not shown.
2.39 KB
2.29 KB

publish/html5/theme2/restart_n.png

16 KB

publish/html5/theme2/restart_s.png

19.4 KB
2.69 KB
2.6 KB

publish/html5/theme2/waves.png

2.25 KB

start.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
if [ ${THEME} == "2" ]; then
4+
cp -a /theme2/* /var/www/html/res/
5+
else
6+
cp -a /theme1/* /var/www/html/res/
7+
fi
8+
9+
exec /usr/sbin/httpd -D FOREGROUND

0 commit comments

Comments
 (0)