diff --git a/ci/lint.dockerfile b/ci/lint.dockerfile deleted file mode 100644 index abcb3f5..0000000 --- a/ci/lint.dockerfile +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2021-2022 Cargill Incorporated -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -FROM markdownlint/markdownlint:0.11.0 - -USER root - -RUN echo 'rules "MD013"' > ~/.mdlrc -RUN echo 'rule "MD013", :code_blocks => false' > ~/mdlstyle.rb -RUN echo 'rule "MD013", :tables => false' >> ~/mdlstyle.rb - -WORKDIR /project - -ENTRYPOINT [] diff --git a/ci/publish-docker b/ci/publish-docker deleted file mode 100755 index 9ac6d0f..0000000 --- a/ci/publish-docker +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# Copyright 2021-2022 Cargill Incorporated -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -e - -cp _userconfig.yml.example _userconfig.yml - -sed -i "s#%GA_TOKEN%#$GOOGLE_ANALYTICS#g" _userconfig.yml -sed -i "s#%GPSE_ID%#$GOOGLE_PSE#g" _userconfig.yml - -docker build \ - --build-arg jekyll_env=production \ - -t augrim/augrim-docs \ - -f ci/website.dockerfile \ - . - -docker push augrim/augrim-docs diff --git a/ci/website.dockerfile b/ci/website.dockerfile deleted file mode 100644 index bddde94..0000000 --- a/ci/website.dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2021-2022 Cargill Incorporated -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -------------=== jekyll build ===------------- - -FROM jekyll/jekyll:3.8 as jekyll - -RUN gem install \ - bundler \ - jekyll-default-layout \ - jekyll-optional-front-matter \ - jekyll-readme-index \ - jekyll-redirect-from \ - jekyll-seo-tag \ - jekyll-target-blank \ - jekyll-titles-from-headings - -ARG jekyll_env=development -ENV JEKYLL_ENV=$jekyll_env - -COPY . /srv/jekyll - -RUN rm -rf /srv/jekyll/_site \ - && if [ -f _userconfig.yml ] ; then \ - jekyll build --config _config.yml,_userconfig.yml --verbose --destination /tmp ; \ - else \ - jekyll build --config _config.yml --verbose --destination /tmp ;\ - fi - -# -------------=== log commit hash ===------------- - -FROM alpine as git - -RUN apk update \ - && apk add \ - git - -COPY .git/ /tmp/.git/ -WORKDIR /tmp -RUN git rev-parse HEAD > /commit-hash - -# -------------=== apache docker build ===------------- - -FROM httpd:2.4 - -COPY --from=jekyll /tmp/ /usr/local/apache2/htdocs/ -COPY --from=git /commit-hash /commit-hash -COPY apache/rewrite.conf /usr/local/apache2/conf/rewrite.conf - -RUN echo "\ -\n\ -ServerName augrim.org\n\ -Include /usr/local/apache2/conf/rewrite.conf\n\ -AddDefaultCharset utf-8\n\ -\n\ -" >>/usr/local/apache2/conf/httpd.conf - -EXPOSE 80/tcp diff --git a/docker-compose.yaml b/docker-compose.yaml deleted file mode 100644 index ea6abea..0000000 --- a/docker-compose.yaml +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 2021-2022 Cargill Incorporated -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -version: "3.7" - -services: - augrim-docs: - container_name: augrim-docs - image: augrim-docs-jekyll - build: - dockerfile: docker/augrim-docs-jekyll - context: . - ports: - - 4000:4000 - volumes: - - ./:/srv/jekyll - entrypoint: | - bash -c " - rm -rf _site .jekyll-cache - if [ -f _userconfig.yml ]; then - jekyll serve -H 0.0.0.0 --watch --config _config.yml,_userconfig.yml - else - jekyll serve -H 0.0.0.0 --watch - fi - " - - augrim-docs-apache: - container_name: augrim-docs-apache - image: augrim-docs-apache - build: - dockerfile: docker/augrim-docs-apache - context: . - ports: - - 8080:80 - volumes: - - .:/project diff --git a/docker/augrim-docs-apache b/docker/augrim-docs-apache deleted file mode 100644 index 562af33..0000000 --- a/docker/augrim-docs-apache +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2021-2022 Cargill Incorporated -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -FROM httpd:2.4 - -COPY apache/rewrite.conf /usr/local/apache2/conf/rewrite.conf - -RUN echo "\ -\n\ -ServerName augrim-docs-apache\n\ -Include /usr/local/apache2/conf/rewrite.conf\n\ -AddDefaultCharset utf-8\n\ -LoadModule proxy_module modules/mod_proxy.so\n\ -LoadModule proxy_http_module modules/mod_proxy_http.so\n\ -LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so\n\ -ProxyPass / http://augrim-docs:4000/\n\ -ProxyPassReverse / http://augrim-docs:4000/\n\ -\n\ -" >>/usr/local/apache2/conf/httpd.conf - -EXPOSE 80/tcp diff --git a/docker/augrim-docs-jekyll b/docker/augrim-docs-jekyll deleted file mode 100644 index dd61237..0000000 --- a/docker/augrim-docs-jekyll +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2021-2022 Cargill Incorporated -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -FROM ruby - -RUN gem install jekyll -- --use-system-libaries - -RUN gem install \ - bundler \ - jekyll-default-layout \ - jekyll-optional-front-matter \ - jekyll-readme-index \ - jekyll-redirect-from \ - jekyll-seo-tag \ - jekyll-target-blank \ - jekyll-titles-from-headings - -RUN gem install webrick - -ENV JEKYLL_ENV=development - -CMD ["jekyll", "--help"] -WORKDIR /srv/jekyll -VOLUME /srv/jekyll -EXPOSE 35729 -EXPOSE 4000 diff --git a/docker/augrim-docs-redoc b/docker/augrim-docs-redoc deleted file mode 100644 index 111268c..0000000 --- a/docker/augrim-docs-redoc +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright 2021-2022 Cargill Incorporated -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -FROM node:lts-stretch - -RUN npm install -g redoc -RUN npm install -g redoc-cli diff --git a/docker/compose/run-lint.yaml b/docker/compose/run-lint.yaml deleted file mode 100644 index 30e488d..0000000 --- a/docker/compose/run-lint.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2021-2022 Cargill Incorporated -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -version: "3.7" - -services: - - lint-augrim-docs: - build: - context: ../../ - dockerfile: ci/lint.dockerfile - image: markdownlint - volumes: - - ../../:/project/ - command: mdl . -s /root/mdlstyle.rb