Skip to content

Commit f19de7f

Browse files
committed
feature(Docker): Add Dockerfile, adjust docs for Docker support
1 parent 8e9af30 commit f19de7f

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# syntax=docker/dockerfile:1
2+
3+
FROM debian
4+
5+
# Labels
6+
LABEL maintainer="gyptazy@gyptazy.ch"
7+
LABEL org.label-schema.schema-version="1.0"
8+
LABEL org.label-schema.description="Manpageblog on nginx."
9+
LABEL org.label-schema.url="https://manpageblog.org/"
10+
11+
RUN apt update && \
12+
apt install -y git nginx python3 && \
13+
mkdir /opt/manpageblog/ && \
14+
cd /opt/manpageblog && \
15+
git clone https://github.com/gyptazy/manpageblog.git && \
16+
cd /opt/manpageblog/manpageblog && \
17+
/opt/manpageblog/manpageblog/manpageblog && \
18+
cp -r /opt/manpageblog/manpageblog/docroot/* /var/www/html/
19+
20+
EXPOSE 8080
21+
CMD ["nginx", "-g", "daemon off;"]

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@ python3 -m http.server
126126
```
127127
Afterwards, just open your browser and visit `http://localhost:8000`. That's it!
128128

129+
## Docker
130+
Another possibility to test manpageblog is given by container images. Where you can just rebuild the image by the given `Dockerfile` or by using a ready to use image.
131+
132+
The fastest way results in using the ready to use image with the following commands:
133+
```
134+
docker pull cnt-reg.gyptazy.ch/gyptazy/manpageblog:1.2
135+
docker run -d --name manpageblog12 -p 8080:80 cnt-reg.gyptazy.ch/gyptazy/manpageblog:1.2
136+
137+
# Use service on port tcp/8080
138+
curl localhost:8080
139+
```
140+
129141
## Screenshots
130142
### Light Theme
131143
<img align="left" src="https://cdn.gyptazy.ch/images/manpageblog_light.png"/>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- title: manpageblog Container Image for Docker and Podman -->
2+
<!-- meta_description: manpageblog can now also be tested in a Container (Docker/Podman) image. -->
3+
<!-- image_url: https://cdn.gyptazy.ch/images/manpageblog.jpg -->
4+
5+
<a href="https://github.com/gyptazy/manpageblog">manpageblog</a> can now also be tested in a Container image which is supported by Docker, Podman, etc.
6+
This allows people do test manpageblog without any other dependencies before switching. The Dockerfile can also be found within the GitHub project.
7+
<br><br>
8+
<b>Resources:</b><br>
9+
<table>
10+
<tr>
11+
<td><b>Name</b></td>
12+
<td><b>&nbsp;Version</b></td>
13+
<td><b>&nbsp;&nbsp;Container Image</b></td>
14+
<td><b>&nbsp;Preview</b></td>
15+
<td><b>&nbsp;Source</b></td>
16+
</tr>
17+
<tr>
18+
<td><a href="https://manpageblog.org">manpageblog</a></td>
19+
<td>&nbsp;<a href="https://github.com/gyptazy/manpageblog/releases/tag/v1.2">1.2</a></td>
20+
<td>&nbsp;&nbsp;cnt-reg.gyptazy.ch/gyptazy/manpageblog:1.2</td>
21+
<td>&nbsp;<a href="https://manpageblog.org">manpageblog</a></td>
22+
<td>&nbsp;<a href="https://github.com/gyptazy/manpageblog">GitHub</a></td>
23+
</tr>
24+
</table>

0 commit comments

Comments
 (0)