From 16c99ec5e4c34ac4494d70c4d7f7c02eb2ae269c Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Sun, 29 Jan 2023 14:29:36 +0100 Subject: [PATCH] containter --- .gitignore | 2 ++ build.sh | 12 ++++++++++++ 404.html => main_site/404.html | 0 Gemfile => main_site/Gemfile | 0 Gemfile.lock => main_site/Gemfile.lock | 0 _config.yml => main_site/_config.yml | 0 {_data => main_site/_data}/navigation.yml | 0 .../_posts}/2023-01-29-welcome-to-picc.md | 0 about.md => main_site/about.md | 0 index.html => main_site/index.html | 0 nginx_container_build/Dockerfile | 4 ++++ 11 files changed, 18 insertions(+) create mode 100644 build.sh rename 404.html => main_site/404.html (100%) rename Gemfile => main_site/Gemfile (100%) rename Gemfile.lock => main_site/Gemfile.lock (100%) rename _config.yml => main_site/_config.yml (100%) rename {_data => main_site/_data}/navigation.yml (100%) rename {_posts => main_site/_posts}/2023-01-29-welcome-to-picc.md (100%) rename about.md => main_site/about.md (100%) rename index.html => main_site/index.html (100%) create mode 100644 nginx_container_build/Dockerfile diff --git a/.gitignore b/.gitignore index f40fbd8..9596489 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ _site .jekyll-cache .jekyll-metadata vendor + +schemata \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..cfb4b06 --- /dev/null +++ b/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Copy schemata from docs +cp -r ../picc-docs/schemata . + +# Built Jakyl site +cd main_page +JEKYLL_ENV=production bundle exec jekyll build +cd .. + +# Build container +docker build --rm -t picc/picc-website -f nginx_container_build/Dockerfile . \ No newline at end of file diff --git a/404.html b/main_site/404.html similarity index 100% rename from 404.html rename to main_site/404.html diff --git a/Gemfile b/main_site/Gemfile similarity index 100% rename from Gemfile rename to main_site/Gemfile diff --git a/Gemfile.lock b/main_site/Gemfile.lock similarity index 100% rename from Gemfile.lock rename to main_site/Gemfile.lock diff --git a/_config.yml b/main_site/_config.yml similarity index 100% rename from _config.yml rename to main_site/_config.yml diff --git a/_data/navigation.yml b/main_site/_data/navigation.yml similarity index 100% rename from _data/navigation.yml rename to main_site/_data/navigation.yml diff --git a/_posts/2023-01-29-welcome-to-picc.md b/main_site/_posts/2023-01-29-welcome-to-picc.md similarity index 100% rename from _posts/2023-01-29-welcome-to-picc.md rename to main_site/_posts/2023-01-29-welcome-to-picc.md diff --git a/about.md b/main_site/about.md similarity index 100% rename from about.md rename to main_site/about.md diff --git a/index.html b/main_site/index.html similarity index 100% rename from index.html rename to main_site/index.html diff --git a/nginx_container_build/Dockerfile b/nginx_container_build/Dockerfile new file mode 100644 index 0000000..9241236 --- /dev/null +++ b/nginx_container_build/Dockerfile @@ -0,0 +1,4 @@ +FROM nginx:1.23 + +COPY main_site/_site /usr/share/nginx/html +COPY schemata /usr/share/nginx/html/schemata \ No newline at end of file