Compare commits
5 Commits
5b1f38c0e6
...
0a96ea3fa8
Author | SHA1 | Date |
---|---|---|
3wc | 0a96ea3fa8 | |
3wc | 68d34a93ce | |
3wc | 855c828960 | |
Patrick Werner | 686c3859cf | |
Patrick Werner | 0a2a567e35 |
|
@ -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
|
36
Dockerfile
36
Dockerfile
|
@ -1,23 +1,17 @@
|
||||||
FROM python:3.8.3-slim-buster
|
FROM python:3.10.2-slim-bullseye
|
||||||
ARG PELICAN_VERSION=4.2.0
|
|
||||||
ARG SOURCE_CODE_PRO_VERSION=3.006R
|
ARG PELICAN_VERSION=4.7.2
|
||||||
ARG MATPLOTLIB_VERSION=3.2.1
|
ARG SOURCE_SANS_VERSION=3.046R
|
||||||
RUN apt update && apt upgrade -y
|
ARG MATPLOTLIB_VERSION=3.5.1
|
||||||
RUN apt install wget unzip fontconfig -y
|
|
||||||
RUN wget https://github.com/adobe-fonts/source-sans-pro/releases/download/${SOURCE_CODE_PRO_VERSION}/source-sans-pro-${SOURCE_CODE_PRO_VERSION}.zip && \
|
RUN pip install --no-cache pelican==${PELICAN_VERSION}
|
||||||
unzip source-sans-pro-${SOURCE_CODE_PRO_VERSION}.zip && \
|
RUN pip install --no-cache Markdown==3.2.1
|
||||||
rm source-sans-pro-${SOURCE_CODE_PRO_VERSION}.zip && \
|
RUN pip install --no-cache matplotlib==${MATPLOTLIB_VERSION}
|
||||||
mkdir -p /usr/share/fonts/opentype/adobe/ && \
|
|
||||||
cp source-sans-pro-${SOURCE_CODE_PRO_VERSION}/OTF/*.otf /usr/share/fonts/opentype/adobe/ && \
|
|
||||||
rm -rf source-sans-pro-${SOURCE_CODE_PRO_VERSION} && \
|
|
||||||
fc-cache -f -v
|
|
||||||
RUN apt install -y \
|
|
||||||
texlive-base \
|
|
||||||
texlive-latex-extra \
|
|
||||||
texlive-fonts-extra \
|
|
||||||
texlive-fonts-recommended
|
|
||||||
RUN pip install pelican==${PELICAN_VERSION}
|
|
||||||
RUN pip install matplotlib==${MATPLOTLIB_VERSION}
|
|
||||||
WORKDIR /site
|
WORKDIR /site
|
||||||
RUN mkdir -p /site-generated
|
|
||||||
|
RUN mkdir -p /site/content /site-generated
|
||||||
|
|
||||||
|
COPY pelicanconf.py /site/
|
||||||
|
|
||||||
ENTRYPOINT ["pelican", "-Dr", "-o", "/site-generated"]
|
ENTRYPOINT ["pelican", "-Dr", "-o", "/site-generated"]
|
||||||
|
|
|
@ -10,7 +10,7 @@ docker run --detach \
|
||||||
--name=pelican \
|
--name=pelican \
|
||||||
--volume <your-site-dir>:/site \
|
--volume <your-site-dir>:/site \
|
||||||
--volume pelican_files:/site-generated \
|
--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.
|
May be used in conjunction with the [nginx](https://hub.docker.com/_/nginx) container to serve the output.
|
||||||
```
|
```
|
||||||
|
@ -19,4 +19,4 @@ docker run --detach \
|
||||||
--volume pelican_files:/usr/share/nginx/html:ro \
|
--volume pelican_files:/usr/share/nginx/html:ro \
|
||||||
nginx
|
nginx
|
||||||
```
|
```
|
||||||
Also provides `matplotlib`, `latex` and the [Source Code Pro](https://github.com/adobe-fonts/source-code-pro) font for use with the [m.css](https://mcss.mosra.cz/themes/pelican/) Pelican theme.
|
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.
|
|
@ -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:
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*- #
|
||||||
|
PATH = '/site/content'
|
Loading…
Reference in New Issue