forked from ASCLnet/SWRegistryWorkshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add docker support for local testing
this should build and start a local jekyll+github server to test changes locally (only tested on linux) % docker compose build --pull % docker compose up -d hopefully the Gemfile doesn't muck with the GH Pages deployment or we'll need to put it somewhere else e.g., `.deploy/`
- Loading branch information
Showing
5 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM ruby:3-bookworm | ||
|
||
ENV SETUPDIR=/setup | ||
WORKDIR ${SETUPDIR} | ||
ARG GEMFILE_DIR=. | ||
COPY $GEMFILE_DIR/Gemfile* $GEMFILE_DIR/packages* ./ | ||
|
||
# Install build dependencies | ||
RUN set -eux; \ | ||
apt update && \ | ||
apt upgrade -y | ||
|
||
# Install Bundler | ||
RUN set -eux; gem install bundler | ||
|
||
# Install gems from `Gemfile` via Bundler | ||
RUN set -eux; bundler install | ||
|
||
# Remove build dependencies | ||
RUN set -eux; apt clean | ||
|
||
# Clean up | ||
WORKDIR /srv/jekyll | ||
RUN set -eux; \ | ||
rm -rf \ | ||
${SETUPDIR} \ | ||
/usr/gem/cache \ | ||
/root/.bundle/cache \ | ||
; | ||
|
||
EXPOSE 4000 | ||
ENTRYPOINT ["bundle", "exec", "jekyll"] | ||
CMD ["--version"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "github-pages", "~> 232", group: :jekyll_plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
remote_theme: pages-themes/[email protected] | ||
title: SciCodes Collaboration Workshop | ||
description: A Sloan Foundation-funded workshop for editors & maintainers of academic discipline & institutional software registries & repositories | ||
repository: SciCodes/workshop-2025 | ||
plugins: | ||
- jekyll-remote-theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
services: | ||
site: | ||
build: . | ||
image: scicodes-2025-site:latest | ||
entrypoint: ["bundle", "exec", "jekyll", "serve", "--host=0.0.0.0", "--incremental"] | ||
ports: | ||
- 4000:4000 | ||
volumes: | ||
- .:/srv/jekyll:Z | ||
- ./vendor/bundle:/usr/local/bundle:Z |