Author SHA1 Message Date
3wordchant 0a96ea3fa8 Add example docker-compose.yml 2023-01-30 21:29:49 -08:00
3wordchant 68d34a93ce Add Drone for image building 2023-01-30 21:29:39 -08:00
3wordchant 855c828960 Simplify image build? 2023-01-30 21:14:19 -08:00
Patrick Werner 686c3859cf update versions 2022-02-16 22:07:37 +01:00
Patrick Werner 0a2a567e35 update versions 2021-04-18 19:38:22 +02:00
Patrick Werner 5b1f38c0e6 add fontconfig download 2020-05-15 14:01:51 +02:00
Patrick Werner ab2e3cabff add unzip download 2020-05-15 12:50:28 +02:00
Patrick Werner 8f36110c0a add wget download 2020-05-15 12:06:36 +02:00
Patrick Werner e67e73089b switch to slim 2020-05-15 01:01:50 +02:00
Patrick Werner ba361a0a23 update python to 3.8.3 2020-05-15 00:08:59 +02:00
Patrick Werner e6c8286bc4 add matplotlib and source code pro font 2020-05-08 22:33:03 +02:00
5 changed files with 62 additions and 10 deletions
+14
View File
@@ -0,0 +1,14 @@
---
kind: pipeline
name: publish docker image
steps:
- name: build and publish
image: plugins/docker
settings:
auto_tag: true
username: 3wordchant
password:
from_secret: git_coopcloud_tech_token_3wc
repo: git.coopcloud.tech/coop-cloud-chaos-patchs/pelican
tags: latest
registry: git.coopcloud.tech
+15 -9
View File
@@ -1,11 +1,17 @@
FROM python:3.8.2-buster
RUN apt update && apt upgrade -y
RUN apt install -y \
texlive-base \
texlive-latex-extra \
texlive-fonts-extra \
texlive-fonts-recommended
RUN pip install pelican==4.2.0
FROM python:3.10.2-slim-bullseye
ARG PELICAN_VERSION=4.7.2
ARG SOURCE_SANS_VERSION=3.046R
ARG MATPLOTLIB_VERSION=3.5.1
RUN pip install --no-cache pelican==${PELICAN_VERSION}
RUN pip install --no-cache Markdown==3.2.1
RUN pip install --no-cache matplotlib==${MATPLOTLIB_VERSION}
WORKDIR /site
RUN mkdir -p /site-generated
RUN mkdir -p /site/content /site-generated
COPY pelicanconf.py /site/
ENTRYPOINT ["pelican", "-Dr", "-o", "/site-generated"]
+2 -1
View File
@@ -10,7 +10,7 @@ docker run --detach \
--name=pelican \
--volume <your-site-dir>:/site \
--volume pelican_files:/site-generated \
boonto/pelican:3.8.1-4.2.0
boonto/pelican:3.10.2-4.7.2
```
May be used in conjunction with the [nginx](https://hub.docker.com/_/nginx) container to serve the output.
```
@@ -19,3 +19,4 @@ docker run --detach \
--volume pelican_files:/usr/share/nginx/html:ro \
nginx
```
Also provides `matplotlib`, `latex` and the [Source Sans](https://github.com/adobe-fonts/source-sans) font for use with the [m.css](https://mcss.mosra.cz/themes/pelican/) Pelican theme.
+28
View File
@@ -0,0 +1,28 @@
---
version: '2'
services:
app:
container_name: pelican
image: 3wordchant/pelican:4.2.0
build: .
volumes:
- src:/site
- output:/site-generated
web:
image: httpd:2.4
ports:
- 80:80
volumes:
- output:/usr/local/apache2/htdocs/:ro
command: >
bash -c
"
sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf &&
sed -i 's#AllowOverride [Nn]one#AllowOverride All#' /usr/local/apache2/conf/httpd.conf &&
httpd -DFOREGROUND"
volumes:
src:
output:
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
PATH = '/site/content'