bootstrap
This commit is contained in:
commit
f885573408
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
||||
|
||||
gem "jekyll"
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue