upd
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
*.md
|
||||
.cache
|
||||
node_modules/
|
||||
docker-compose.yml
|
||||
Dockerfile
|
||||
.git*
|
||||
#source
|
||||
#.npmrc
|
||||
.eslintrc.json
|
||||
#./package*.json
|
||||
yarn.lock
|
||||
config/
|
||||
Jenkinsfile*
|
||||
ecosystem.config.js
|
||||
.env*
|
||||
@@ -1,23 +0,0 @@
|
||||
# .readthedocs.yaml
|
||||
# Read the Docs configuration file
|
||||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
||||
|
||||
# Required
|
||||
version: 2
|
||||
build:
|
||||
os: "ubuntu-22.04"
|
||||
tools:
|
||||
python: "3.8"
|
||||
|
||||
python:
|
||||
install:
|
||||
- requirements: mkdocs/requirements.txt
|
||||
|
||||
mkdocs:
|
||||
configuration: mkdocs.yml
|
||||
|
||||
# Optionally set the version of Python and requirements required to build your docs
|
||||
# python:
|
||||
# version: "3.8"
|
||||
# install:
|
||||
# - requirements: mkdocs/requirements.txt
|
||||
Vendored
+10
-8
@@ -3,7 +3,7 @@ node {
|
||||
checkout scm
|
||||
|
||||
docker_tag = 'latest'
|
||||
projectname ='app'
|
||||
projectname ='doc'
|
||||
|
||||
packagejson = readJSON file: 'package.json'
|
||||
docker_tag = packagejson['version']
|
||||
@@ -14,7 +14,9 @@ node {
|
||||
image_doc_latest = image_name + ':latest';
|
||||
}
|
||||
pipeline {
|
||||
agent any
|
||||
agent {
|
||||
label 'jenkins-node-01'
|
||||
}
|
||||
options {
|
||||
timestamps()
|
||||
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
|
||||
@@ -53,11 +55,11 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('docker cleanup'){
|
||||
steps {
|
||||
sh label: '', script: 'docker rmi ' + image_doc
|
||||
sh label: '', script: 'docker rmi ' + image_doc_latest
|
||||
}
|
||||
}
|
||||
// stage('docker cleanup'){
|
||||
// steps {
|
||||
// sh label: '', script: 'docker rmi ' + image_doc
|
||||
// sh label: '', script: 'docker rmi ' + image_doc_latest
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
FROM alpine:3.16 AS builder
|
||||
|
||||
ENV MKDOCS_VERSION=1.1.0 \
|
||||
DOCS_DIRECTORY='/mkdocs' \
|
||||
LIVE_RELOAD_SUPPORT='false' \
|
||||
ADD_MODULES='false' \
|
||||
FAST_MODE='false' \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
GIT_REPO='false' \
|
||||
GIT_BRANCH='master' \
|
||||
AUTO_UPDATE='false' \
|
||||
UPDATE_INTERVAL=15
|
||||
|
||||
RUN \
|
||||
apk add --update \
|
||||
ca-certificates \
|
||||
bash \
|
||||
git \
|
||||
openssh \
|
||||
python3 \
|
||||
python3-dev \
|
||||
py3-setuptools \
|
||||
py-pip \
|
||||
build-base
|
||||
|
||||
ADD docker/container-files/ /
|
||||
|
||||
RUN python -m venv /src/env
|
||||
# Enable venv
|
||||
ENV PATH="/src/env/bin:$PATH"
|
||||
|
||||
ADD requirements.txt /src/
|
||||
|
||||
RUN \
|
||||
pip install --upgrade pip && \
|
||||
pip install --ignore-installed -r /src/requirements.txt && \
|
||||
cd /bootstrap && pip install -e /bootstrap && \
|
||||
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/* && \
|
||||
chmod 600 /root/.ssh/config
|
||||
|
||||
CMD ["/usr/bin/bootstrap", "start"]
|
||||
|
||||
FROM builder as makestatic
|
||||
ADD docs /src/docs/
|
||||
#ADD overrides /src/overrides/
|
||||
ADD mkdocs.yml /src/
|
||||
ENV PATH="/src/env/bin:$PATH"
|
||||
|
||||
RUN cd /src && properdocs build
|
||||
#RUN cd /src && mkdocs build
|
||||
|
||||
FROM nginx
|
||||
# RUN rm /etc/nginx/sites-enabled/default
|
||||
COPY docker/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=makestatic /src/site /sites/app.lexema.ru/docs
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB |
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "ecm-administrator-manuals",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"description": "ecm-administrator-manuals doc"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
#mkdocs==1.4.0
|
||||
properdocs==1.6.7
|
||||
mkdocs-literate-nav
|
||||
mkdocs-section-index
|
||||
mkdocs-include-markdown-plugin
|
||||
|
||||
mkdocs-video
|
||||
#mkdocs-material==8.5.8
|
||||
mkdocs-material>=9.7.5
|
||||
mike
|
||||
|
||||
weasyprint==52.5
|
||||
mkdocs-with-pdf
|
||||
|
||||
mkdocs-bootswatch
|
||||
|
||||
pymdown-extensions
|
||||
|
||||
mkdocs-glightbox==0.4.0
|
||||
Reference in New Issue
Block a user