Docker for python pelican blog with nginx

Posted on 29 May, 2019 in Products

TL;DR

Dockerised pelican blog with deployment of static pages to nginx.

dockerfile:

FROM python:3.7-alpine as base

# container setup.
FROM base as builder

RUN mkdir /install
WORKDIR /install
COPY . ./

# Install language pack.
RUN apk --no-cache add ca-certificates wget && \
    wget -q -O /etc/apk/keys/sgerrand.rsa.pub https …

Continue reading

Replace webapp2 usage for self.response.write in python script

Posted on 07 May, 2016 in Products

I recently began to learn python and started by creating a simple app on google app engine, but then I decided to deploy it somewhere else.

(Although I know I can install webapp2 in a non-appengine python environment I would rather not because I prefer vanilla environments whenever possible.)

It's …


Continue reading

Pelican on GitLab Pages!

Posted on 25 March, 2016 in Products

This is a pelican blog hosted on GitLab Pages! The source code of this site is at https://gitlab.com/pages/pelican. Learn about GitLab Pages at https://pages.gitlab.io.