-
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
Showing
4 changed files
with
43 additions
and
2 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: ruby | ||
rvm: | ||
- 2.6.3 | ||
- 2.7.0 | ||
|
||
addons: | ||
apt: | ||
|
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,24 @@ | ||
FROM ruby:2.7 | ||
|
||
ENV JEKYLL_VAR_DIR=/var/jekyll | ||
ENV JEKYLL_DATA_DIR=/srv/jekyll | ||
ENV JEKYLL_ENV=development | ||
|
||
RUN apt-get update | ||
|
||
RUN echo "gem: --no-ri --no-rdoc" >~/.gemrc | ||
RUN unset GEM_HOME && unset GEM_BIN && yes | gem update --system | ||
|
||
RUN unset GEM_HOME && unset GEM_BIN && yes | gem install --force bundler | ||
RUN gem install jekyll rspec html-proofer pygments.rb jekyll-pandoc | ||
|
||
RUN mkdir -p $JEKYLL_VAR_DIR $JEKYLL_DATA_DIR && rm -rf /root/.gem /home/jekyll/.gem $BUNDLE_HOME/cache $GEM_HOME/cache | ||
|
||
ENV LANG C.UTF-8 | ||
|
||
WORKDIR /srv/jekyll | ||
VOLUME /srv/jekyll | ||
EXPOSE 35729 | ||
EXPOSE 4000 | ||
|
||
CMD [ "bundle", "install" ] |
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,11 @@ | ||
version: '3' | ||
services: | ||
tum_projects: | ||
build: . | ||
volumes: | ||
- ..:/srv/jekyll | ||
environment: | ||
JEKYLL_ENV: production | ||
ports: | ||
- '4000:4000' | ||
command: bash -c "bundle install && bundle exec jekyll serve --host 0.0.0.0" |