-
Notifications
You must be signed in to change notification settings - Fork 14
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
Ondrej Janus
committed
Oct 4, 2023
1 parent
5f3f44a
commit 06f9410
Showing
8 changed files
with
20 additions
and
171 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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,25 +1,21 @@ | ||
FROM centos/ruby-27-centos7 | ||
FROM ruby:2.7-slim-bullseye | ||
|
||
LABEL name="candlepin/website-ruby-27" \ | ||
maintainer="Alex Wood <[email protected]>" | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
git \ | ||
graphviz \ | ||
plantuml \ | ||
python3 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
USER root | ||
COPY Gemfile* . | ||
RUN bundle install && \ | ||
rm -rf Gemfile* | ||
|
||
RUN yum install -y --setopt=tsflags=nodocs java-1.8.0-openjdk-devel graphviz python3 && \ | ||
yum clean all -y | ||
EXPOSE 4000 | ||
|
||
# Keep this value up to date with the BUNDLED WITH version in Gemfile.lock | ||
RUN gem install bundler:2.3.10 | ||
WORKDIR /site | ||
|
||
COPY ./.s2i/lib/plantuml.jar /usr/share/java/plantuml.jar | ||
COPY ./.s2i/lib/plantuml /usr/bin/plantuml | ||
RUN chmod 755 /usr/bin/plantuml | ||
|
||
COPY ./.s2i/bin/ $STI_SCRIPTS_PATH | ||
|
||
# Drop the root user and make the content of /opt/app-root owned by user 1001 | ||
RUN chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && \ | ||
rpm-file-permissions | ||
|
||
USER 1001 | ||
ENTRYPOINT [ "jekyll" ] | ||
|
||
CMD [ "--help" ] |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
#!/bin/bash | ||
|
||
podman build -t candlepin/jekyll -f Dockerfile | ||
|
||
podman run -p 4000:4000 -v "$(pwd)":/site candlepin/jekyll serve --force_polling -H "0.0.0.0" -P 4000 |