pidgin/mailing-list-archives

Initial revision

16 months ago, Gary Kramlich
5f628e3a96ab
Parents
Children 37748bdc42ab
Initial revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Dockerfile.imfreedom Wed Dec 21 01:00:05 2022 -0600
@@ -0,0 +1,16 @@
+FROM docker.io/alpine:edge AS build
+
+RUN mkdir /archive && \
+ cd /archive && \
+ apk add --no-cache bzip2 ca-certificates pv tar wget && \
+ wget --output-document=archive.tar.bz2 https://data.imfreedom.org/public/list-archives/list-archives-imf.tar.bz2 && \
+ pv --numeric archive.tar.bz2 | tar jxf -
+
+FROM docker.io/nginx:alpine
+
+RUN rm /usr/share/nginx/html/*
+
+COPY default.conf /etc/nginx/conf.d/default.conf
+
+COPY --from=build /archive /usr/share/nginx/html
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Dockerfile.pidgin Wed Dec 21 01:00:05 2022 -0600
@@ -0,0 +1,16 @@
+FROM docker.io/alpine:edge AS build
+
+RUN mkdir /archive && \
+ cd /archive && \
+ apk add --no-cache bzip2 ca-certificates pv tar wget && \
+ wget -O archive.tar.bz2 https://data.imfreedom.org/public/list-archives/list-archives-pidgin.tar.bz2 && \
+ pv --numeric archive.tar.bz2 | tar jxf -
+
+FROM docker.io/nginx:alpine
+
+RUN rm /usr/share/nginx/html/*
+
+COPY default.conf /etc/nginx/conf.d/default.conf
+
+COPY --from=build /archive /usr/share/nginx/html
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/README.md Wed Dec 21 01:00:05 2022 -0600
@@ -0,0 +1,8 @@
+# Pidgin Mailing List Archives
+
+These images download and expose the static HTML from pipermail that is the
+historical archives of both lists.pidgin.im and lists.imfreedom.org.
+
+The archives with the messages are build manually and hosted at
+data.imfreedom.org.
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convey.yml Wed Dec 21 01:00:05 2022 -0600
@@ -0,0 +1,57 @@
+environment:
+ - TAG=latest
+ - REGISTRY=docker.io
+ - REGISTRY_USERNAME
+ - REGISTRY_PASSWORD
+
+tasks:
+ import:
+ type: docker/import
+ files: .:.
+
+ build-imfreedom:
+ type: docker/build
+ dockerfile: Dockerfile.imfreedom
+ tag: ${REGISTRY}/imfreedom/list-archives:${TAG}
+ files: .:.
+
+ build-pidgin:
+ type: docker/build
+ dockerfile: Dockerfile.pidgin
+ tag: ${REGISTRY}/pidgin/list-archives:${TAG}
+ files: .:.
+
+ login:
+ type: docker/login
+ username: ${REGISTRY_USERNAME}
+ password: ${REGISTRY_PASSWORD}
+ server: ${REGISTRY}
+
+ logout:
+ type: docker/logout
+ server: ${REGISTRY}
+
+ push-imfreedom:
+ type: docker/push
+ images: ${REGISTRY}/imfreedom/list-archives:${TAG}
+
+ push-pidgin:
+ type: docker/push
+ images: ${REGISTRY}/pidgin/list-archives:${TAG}
+
+plans:
+ default:
+ stages:
+ - tasks: import
+ - tasks: [build-imfreedom, build-pidgin]
+ concurrent: true
+
+ ci:
+ stages:
+ - tasks: [import]
+ - tasks: [build-imfreedom, build-pidgin]
+ concurrent: true
+ - tasks: [login, push]
+ - tasks: [logout]
+ run: always
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/default.conf Wed Dec 21 01:00:05 2022 -0600
@@ -0,0 +1,46 @@
+server {
+ listen 80;
+ listen [::]:80;
+ server_name localhost;
+
+ #access_log /var/log/nginx/host.access.log main;
+
+ location / {
+ root /usr/share/nginx/html;
+ index index.html index.htm;
+ autoindex on;
+ }
+
+ #error_page 404 /404.html;
+
+ # redirect server error pages to the static page /50x.html
+ #
+ error_page 500 502 503 504 /50x.html;
+ location = /50x.html {
+ root /usr/share/nginx/html;
+ }
+
+ # proxy the PHP scripts to Apache listening on 127.0.0.1:80
+ #
+ #location ~ \.php$ {
+ # proxy_pass http://127.0.0.1;
+ #}
+
+ # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
+ #
+ #location ~ \.php$ {
+ # root html;
+ # fastcgi_pass 127.0.0.1:9000;
+ # fastcgi_index index.php;
+ # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
+ # include fastcgi_params;
+ #}
+
+ # deny access to .htaccess files, if Apache's document root
+ # concurs with nginx's one
+ #
+ #location ~ /\.ht {
+ # deny all;
+ #}
+}
+