Compare commits

..

No commits in common. "940e0c92b47858089eaca61414ff7ac2977a7066" and "aaeb0fcee330258dca23dca4434d4f8150868704" have entirely different histories.

4 changed files with 11 additions and 18 deletions

View File

@ -1,5 +1,6 @@
FROM docker-registry1.in.thelinuxpro.net:5000/tlp/tlp_jekyll:0.0.1 FROM docker-registry1.in.thelinuxpro.net:5000/tlp/tlp_jekyll:0.0.1
LABEL version="0.0.1"
LABEL image.author.name="Kameron Kenny" LABEL image.author.name="Kameron Kenny"
LABEL image.author.email="kameron@localhost" LABEL image.author.email="kameron@localhost"
LABEL description="A Jekyll site for photos.kameronkenny.com." LABEL description="A Jekyll site for photos.kameronkenny.com."
@ -9,8 +10,6 @@ ARG LOCATION_JEKYLL="/usr/local/jekyll"
ENV GEM_HOME="/usr/local/gems" ENV GEM_HOME="/usr/local/gems"
ENV PATH="/usr/local/gems/bin:$PATH" ENV PATH="/usr/local/gems/bin:$PATH"
ENV SITE="photos.kameronkenny.com" ENV SITE="photos.kameronkenny.com"
ENV SITE_ROOT="$LOCATION_JEKYLL/sites/$SITE
ENV SITE_PATH="$SITE_ROOT/_site"
ENV NGINX_CONF_D="$LOCATION_JEKYLL/nginx" ENV NGINX_CONF_D="$LOCATION_JEKYLL/nginx"
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
@ -21,7 +20,7 @@ RUN apt install -y libmagick++-dev
### Shouldn't need this, it's in the Gemfile, but hold just in case. ### Shouldn't need this, it's in the Gemfile, but hold just in case.
#RUN gem install rmagick exifr #RUN gem install rmagick exifr
RUN mkdir -p $SITE_ROOT RUN mkdir -p $LOCATION_JEKYLL/sites/$SITE
WORKDIR /usr/local/sbin WORKDIR /usr/local/sbin
COPY ./entrypoint.sh . COPY ./entrypoint.sh .
@ -35,14 +34,4 @@ COPY . .
RUN bundle install RUN bundle install
RUN JEKYLL_ENV=production bundle exec jekyll build RUN JEKYLL_ENV=production bundle exec jekyll build
## Cleanup to debulk the image
RUN apt remove -y manpages ruby x11-common ruby* make python gcc cpp gnupg git git-man
RUN apt -y autoremove
RUN test -d $SITE_PATH && for i in $(ls -1 $SITE_ROOT | grep -v _site); do rm -rf $SITE_ROOT/$i ; done
RUN rm -rf /root/.bundle/cache
RUN rm -rf /var/cache
RUN rm -rf /var/lib/apt
RUN rm -rf /var/lib/dpkg
ENTRYPOINT /usr/local/sbin/entrypoint.sh ENTRYPOINT /usr/local/sbin/entrypoint.sh

3
Jenkinsfile vendored
View File

@ -40,8 +40,7 @@ pipeline {
steps { steps {
script { script {
//#def status_s = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml') //#def status_s = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml')
sh 'docker --context pi502 pull docker-reigstry1.in.thelinuxpro.net:5000/sites/photos_kameronkenny_com_web:latest' sh 'docker --context pi502 compose pull photos_kameronkenny_com_web'
sh 'docker --context pi502 compose pull photos_kameronkenny_com_web:latest'
//if (status_s != 0) { //if (status_s != 0) {
// sh 'docker --context pi502 compose up -d' // sh 'docker --context pi502 compose up -d'

View File

@ -22,6 +22,13 @@ gallery:
retina: 1.5 retina: 1.5
# The following options are for individual galleries. # The following options are for individual galleries.
gallery:
dir: photos
title: "Photos"
sort_field: "date"
thumbnail_size:
y: 450
retina: 1.5
galleries: galleries:
202404_eclipse: 202404_eclipse:
name: "2024 Eclipse" name: "2024 Eclipse"

View File

@ -32,9 +32,7 @@ http {
listen 4002 default_server; listen 4002 default_server;
# listen [::]:80 default_server; # listen [::]:80 default_server;
port_in_redirect off; root /usr/local/jekyll/sites/photos.kameronkenny.com/_site;
root /usr/local/jekyll/sites/photos.kameronkenny.com/_site/photos;
index index.html index.htm; index index.html index.htm;