Skip to content
Snippets Groups Projects
Unverified Commit 67ab3b7e authored by Martin Weise's avatar Martin Weise
Browse files

Updated the certbot

parent b69e6ba5
No related branches found
No related tags found
No related merge requests found
## Generated ## Generated
site/ site/
tmp/
node_modules/ node_modules/
*.bkp *.bkp
swagger/**/docs/*.md swagger/**/docs/*.md
......
FROM debian:stable as build FROM nginx:latest
ENV PYTHONUNBUFFERED=1 COPY ./site /usr/share/nginx/html
\ No newline at end of file
RUN apt-get update && apt-get install -y python3 python3-pip git
COPY requirements.txt ./requirements.txt
RUN pip3 install -r ./requirements.txt
COPY ./docs/images ./docs/images
COPY ./docs/operation ./docs/operation
COPY ./docs/stylesheets ./docs/stylesheets
COPY ./docs/videos ./docs/videos
COPY ./docs/contact.md ./docs/contact.md
COPY ./docs/getting-started.md ./docs/getting-started.md
COPY ./docs/index.md ./docs/index.md
COPY ./docs/publications.md ./docs/publications.md
COPY ./docs/system.md ./docs/system.md
COPY ./mkdocs.yml ./mkdocs.yml
RUN git clone git@gitlab.phaidra.org:fair-data-austria-db-repository/fda-docs.git
WORKDIR ./fda-docs
# 1.2
RUN mike deploy 1.2
# 1.1
RUN git checkout beec500012949c1baa197c72d52e383276a8fd02
RUN mike deploy 1.1
ENTRYPOINT [ "mkdocs", "build" ]
\ No newline at end of file
...@@ -6,6 +6,8 @@ all: build ...@@ -6,6 +6,8 @@ all: build
clean: clean:
rm -rf ./site rm -rf ./site
docker container stop docs-server || true
docker container rm docs-server || true
release-deps: release-deps:
pip3 install -r ./dockerhub/requirements.txt pip3 install -r ./dockerhub/requirements.txt
...@@ -15,10 +17,7 @@ release: release-deps ...@@ -15,10 +17,7 @@ release: release-deps
build: build:
docker compose build docker compose build
docker compose up
version: install: build
mike list sudo certbot certonly --standalone --preferred-challenges http -d dbrepo-docs.ossdip.at --agree-tos --keep-until-expiring
docker compose up -d
install: build version \ No newline at end of file
sudo cp -r ./site/* /usr/share/nginx/html/
\ No newline at end of file
version: "3.6" version: "3.6"
networks:
fda-public:
name: fda-public
driver: bridge
ipam:
config:
- subnet: 172.29.0.0/16
services: services:
fda-docs-builder: docs-server:
build: . build: .
image: fda-docs-builder container_name: dbrepo-docs-server
hostname: dbrepo-docs-server
volumes: volumes:
- ./site:/site - /etc/letsencrypt/live/:/tmp:ro
networks: ports:
- fda-public - 80:80
environment: \ No newline at end of file
TZ: Europe/Vienna
logging:
driver: json-file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment