-
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.
- Loading branch information
1 parent
466c9cf
commit 666448b
Showing
3 changed files
with
32 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,8 @@ submodules: update-submodules | |
update-submodules: | ||
git submodule update --init --remote --recursive | ||
|
||
# Running locally | ||
# | ||
# git clone ssh://[email protected]/github/pages-gem | ||
# cd pages-gem/ | ||
# make image | ||
|
||
run: | ||
docker run --rm -it -v $(shell pwd):/src/site -p4000:4000 gh-pages sh -c "bundle add webrick && bundle install && jekyll serve -H 0.0.0.0 -P 4000" | ||
|
||
# | ||
# cd homepage/ (this repository) | ||
# docker run --rm -it -v .:/src/site -p4000:4000 --security-opt label=disable gh-pages | ||
# |
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,25 @@ | ||
ARG RUBY_VERSION=3.3 | ||
FROM ruby:$RUBY_VERSION | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
git \ | ||
locales \ | ||
make \ | ||
nodejs | ||
|
||
COPY Gemfile Gemfile | ||
RUN bundle install | ||
|
||
RUN \ | ||
echo "en_US UTF-8" > /etc/locale.gen && \ | ||
locale-gen en-US.UTF-8 | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US.UTF-8 | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
WORKDIR /src/site | ||
|
||
|
||
CMD ["jekyll", "serve", "-H", "0.0.0.0", "-P", "4000"] |
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", group: :jekyll_plugins |