bootstrap

This commit is contained in:
Kameron Kenny - pi501 2024-05-17 10:21:09 -04:00
commit f885573408
4 changed files with 59 additions and 0 deletions

26
Dockerfile Normal file
View File

@ -0,0 +1,26 @@
FROM docker-registry1.in.thelinuxpro.net:5000/tlp/os/ubuntu/lts/tlp_ubuntu:24.04.2
LABEL version="24.04.3"
LABEL image.author.name="Kameron Kenny"
LABEL image.author.email="kameron@localhost"
LABEL description="A default Ubuntu based image \
to be used for Jekyll."
ARG LOCATION_JEKYLL="/usr/local/jekyll"
ENV GEM_HOME="/usr/local/gems"
ENV PATH="/usr/local/gems/bin:$PATH"
#EXPOSE 22/tcp
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt -y upgrade
RUN apt -y install ruby-full build-essential zlib1g-dev
RUN gem install jekyll bundler
RUN mkdir -p $LOCATION_JEKYLL && mkdir -p $LOCATION_GEMS
WORKDIR $LOCATION_JEKYLL
COPY Gemfile .
RUN bundle install

7
Gemfile Normal file
View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem "jekyll"

26
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,26 @@
pipeline {
agent {
label 'pi501.in.thelinuxpro.net'
}
stages {
stage("verify tooling") {
steps {
sh '''
docker version
docker info
docker compose version
'''
}
}
stage("Build Containers and push to registry") {
steps {
script {
sh 'docker build -t docker-registry1.in.thelinuxpro.net:5000/tlp/tlp_jekyll:0.0.1 . --push'
}
}
}
}
}

0
README.md Normal file
View File