From 406bd990dc2205fdd9ed58b646412d0f48a94719 Mon Sep 17 00:00:00 2001 From: Albert Hornos Date: Tue, 31 Oct 2023 09:45:26 +0100 Subject: [PATCH] feat: dockerize theme --- Dockerfile | 12 ++++++++++++ _config.yml | 3 +++ docker-compose.yml | 13 +++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5357633 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ruby:2.7 + +ENV LC_ALL C.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US.UTF-8 + +WORKDIR /usr/src/app + +COPY Gemfile ./ +RUN gem install bundler:2.4.21 && bundle install + +EXPOSE 4000 diff --git a/_config.yml b/_config.yml index 8bfe560..80f6674 100644 --- a/_config.yml +++ b/_config.yml @@ -6,6 +6,9 @@ topnav_title: ELIXIR Training SPLASH description: "ELIXIR Training SPLASH" # Metadata description of the website remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@1.26.0 +repository: elixir-europe-training/ELIXIR-Training-SPLASH + + # add gtag: theme_variables: diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..40afa51 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: "3.5" + +services: + jekyll: + build: + context: ./ + ports: + - 4000:4000 + volumes: + - .:/usr/src/app + stdin_open: true + tty: true + command: bundle exec jekyll serve -H 0.0.0.0 -t