Add Dockerfile for alpine Linux with lighttpd

plus some configuration to make it available at 127.20.0.10 and
fd10:5741:8e20:0000::10, where a sample index.html file can be
downloaded for testing.  Also, make container start in "pdn" network,
the external PDN behind the GGSN
This commit is contained in:
Harald Welte 2017-10-15 14:37:41 +00:00
parent a899ae3688
commit f81dfad75f
5 changed files with 175 additions and 0 deletions

2
alpine-lighttpd/.release Normal file
View File

@ -0,0 +1,2 @@
release=0.0.0
tag=alpine-lighttpd-0.0.0

View File

@ -0,0 +1,19 @@
FROM alpine:latest
MAINTAINER Harald Welte <laforge@gnumonks.org>
EXPOSE 80
RUN apk --update add lighttpd && \
rm -rf /var/cache/apk/* && \
mkdir -p /etc/lighttpd/lighttpd.conf.d && \
touch /etc/lighttpd/lighttpd.conf.d/empty && \
echo 'include_shell "cat /etc/lighttpd/lighttpd.conf.d/*"' >> /etc/lighttpd/lighttpd.conf
VOLUME /etc/lighttpd/lighttpd.conf.d
COPY ipv6.conf /etc/lighttpd/lighttpd.conf.d/
VOLUME /var/www/localhost/htdocs
COPY index.html /var/www/localhost/htdocs/
CMD ["/usr/sbin/lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]

3
alpine-lighttpd/Makefile Normal file
View File

@ -0,0 +1,3 @@
RUN_ARGS?=--sysctl net.ipv6.conf.all.disable_ipv6=0 --rm --network pdn --ip 172.20.0.10 --ip6 fd10:5741:8e20:0000::10 -v httpd-vol:/etc/lighttpd/lighttpd.conf.d --stop-signal SIGINT
include ../make/Makefile

150
alpine-lighttpd/index.html Normal file
View File

@ -0,0 +1,150 @@
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en">
<head>
<meta charset="utf-8">
<base href="http://laforge.gnumonks.org/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to LaForge's personal homepage | LaForge's home page</title>
<link href="assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
<meta content="#5670d4" name="theme-color">
<link rel="alternate" type="application/rss+xml" title="RSS" href="blog/rss.xml">
<link rel="alternate" type="application/atom+xml" title="Atom" href="blog/index.atom">
<link rel="canonical" href="http://laforge.gnumonks.org/">
<!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]--><meta name="author" content="Harald Welte">
<meta property="og:site_name" content="LaForge's home page">
<meta property="og:title" content="Welcome to LaForge's personal homepage">
<meta property="og:url" content="http://laforge.gnumonks.org/">
<meta property="og:description" content="This is the personal home page of Harald 'LaForge' Welte, a Free and
Open Source Software developer, hacktivist, nerd and motorbike enthusiast.
Next to some general information about me, my projects a">
<meta property="og:type" content="article">
<meta property="article:published_time" content="2016-05-23T13:33:38+02:00">
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
<!-- Menubar -->
<nav class="navbar navbar-inverse navbar-static-top"><div class="container">
<!-- This keeps the margins nice -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar" aria-controls="bs-navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://laforge.gnumonks.org/">
<span id="blog-title">LaForge's home page</span>
</a>
</div>
<!-- /.navbar-header -->
<div class="collapse navbar-collapse" id="bs-navbar" aria-expanded="false">
<ul class="nav navbar-nav">
<li>
<a href="about">About</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Projects <b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="projects/free-software">Free Software: General</a>
</li>
<li>
<a href="projects/osmocom">Free Software: Osmocom</a>
</li>
<li>
<a href="projects/open-hardware">Open Hardware</a>
</li>
<li>
<a href="projects/license-compliance">License Compliance</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Blog <b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="blog">Main Page</a>
</li>
<li>
<a href="blog/categories">Categories</a>
</li>
<li>
<a href="blog/tags">Tags</a>
</li>
<li>
<a href="blog/archive">Archive</a>
</li>
<li>
<a href="blog/rss.xml">RSS feed</a>
</li>
</ul>
</li>
<li>
<a href="blog/categories/talks">Publications</a>
</li>
<li>
<a href="contact">Contact</a>
</li>
<li>
<a href="work">Work</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right"></ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav><!-- End of Menubar --><div class="container" id="content" role="main">
<div class="body-content">
<!--Body content-->
<div class="row">
<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="." class="u-url">Welcome to LaForge's personal homepage</a></h1>
</header><div class="e-content entry-content" itemprop="articleBody text">
<div>
<p>This is the personal home page of Harald 'LaForge' Welte, a Free and
Open Source Software developer, hacktivist, nerd and motorbike enthusiast.</p>
<p>Next to some general information about me, my projects and work,
this page also hosts my <a class="reference external" href="blog">blog</a>, which I've been maintaining
intermittently since 2002.</p>
<p>Some links to help navigating the site:</p>
<ul class="simple">
<li>
<a class="reference external" href="about/">About</a> Harald Welte</li>
<li><a class="reference external" href="affiliations/">Affiliations</a></li>
<li><a class="reference external" href="work/">Work related information</a></li>
<li><a class="reference external" href="projects/free-software/">Free Software projects</a></li>
<li><a class="reference external" href="projects/license-compliance/">My work on Licence Compliance</a></li>
<li><a class="reference external" href="http://laforge.gnumonks.org/blog/categories/talks">Slides + Videos of Presentations/talks</a></li>
</ul>
</div>
</div>
</article>
</div>
<!--End of body content-->
<footer id="footer">
Contents © 2002-2017 <a href="mailto:laforge@gnumonks.org">Harald Welte</a> - Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a>
</footer>
</div>
</div>
<script src="assets/js/all-nocdn.js"></script><script>$('a.image-reference:not(.islink) img:not(.islink)').parent().colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script><!-- fancy dates --><script>
moment.locale("en");
fancydates(0, "YYYY-MM-DD");
</script><!-- end fancy dates -->
</body>
</html>

View File

@ -0,0 +1 @@
server.bind = "[::]"