From f88557340827d11dd48273c774a7aead301d045a Mon Sep 17 00:00:00 2001 From: Kameron Kenny - pi501 Date: Fri, 17 May 2024 10:21:09 -0400 Subject: [PATCH] bootstrap --- Dockerfile | 26 ++++++++++++++++++++++++++ Gemfile | 7 +++++++ Jenkinsfile | 26 ++++++++++++++++++++++++++ README.md | 0 4 files changed, 59 insertions(+) create mode 100644 Dockerfile create mode 100644 Gemfile create mode 100644 Jenkinsfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..565f7f6 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..ceae015 --- /dev/null +++ b/Gemfile @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + +gem "jekyll" diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..16cf8d2 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } + } + } +} + diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29