From 56646d0b4edd1d6b0f75628953832f789cf3b90f Mon Sep 17 00:00:00 2001 From: twerthi Date: Fri, 12 Jan 2024 14:59:41 -0800 Subject: [PATCH] Initial commit of project --- .github/workflows/docker-build-push.yml | 0 GetLatestVersion.ps1 | 0 README.md | 17 ++++++++++++-- ubuntu-2004/dockerfile | 31 +++++++++++++++++++++++++ ubuntu-2204/dockerfile | 31 +++++++++++++++++++++++++ 5 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/docker-build-push.yml create mode 100644 GetLatestVersion.ps1 create mode 100644 ubuntu-2004/dockerfile create mode 100644 ubuntu-2204/dockerfile diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml new file mode 100644 index 0000000..e69de29 diff --git a/GetLatestVersion.ps1 b/GetLatestVersion.ps1 new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 324028a..a78d4c4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,15 @@ -# liquibase-workertools -An Execution Container developed to work with the Liquibase database deployment product. +# Liquibase Worker Tools + +This repository contains images that have the necessary tooling to use the Execution Containers feature with Octopus Deploy when running commands using Liquibase. + +- OpenJDK 17 Java runtime +- Liquibase + +The following images are built in this repo: +- Ubuntu 22.04 +- Ubuntu 20.04 + +A new image will be built each time a new version of Liqbuiase is created. The version numbers will be based on the version of the Liquibase CLI. + +## Support +Please consider this repository provided as is. If there are any issues, please do not contact support. diff --git a/ubuntu-2004/dockerfile b/ubuntu-2004/dockerfile new file mode 100644 index 0000000..0617e62 --- /dev/null +++ b/ubuntu-2004/dockerfile @@ -0,0 +1,31 @@ +# Define base image +#FROM ubuntu +FROM octopuslabs/workertools:latest-ubuntu.2204 + +# Set base value for build argument +ARG LIQUIBASE_VERSION=4.25.1 + +# Prepare to install PowerShell +#RUN apt-get update && apt-get install wget apt-transport-https software-properties-common curl -y +#RUN wget -q "https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb" +#RUN dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb + +# Install PowerShell +#RUN apt-get update && apt-get install powershell unzip -y + +# Download and install AWS CLI +RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ + && unzip awscliv2.zip \ + && rm awscliv2.zip \ + && ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update + +# Install Java +RUN apt-get update && apt-get install openjdk-17-jdk -y + +# Download and install Liquibase +RUN curl -L https://github.com/liquibase/liquibase/releases/download/v${LIQUIBASE_VERSION}/liquibase-${LIQUIBASE_VERSION}.zip -o liquibase.zip \ + && unzip liquibase.zip \ + && rm liquibase.zip + +# Set environment variable to determine if in container +ENV IsContainer=true \ No newline at end of file diff --git a/ubuntu-2204/dockerfile b/ubuntu-2204/dockerfile new file mode 100644 index 0000000..0617e62 --- /dev/null +++ b/ubuntu-2204/dockerfile @@ -0,0 +1,31 @@ +# Define base image +#FROM ubuntu +FROM octopuslabs/workertools:latest-ubuntu.2204 + +# Set base value for build argument +ARG LIQUIBASE_VERSION=4.25.1 + +# Prepare to install PowerShell +#RUN apt-get update && apt-get install wget apt-transport-https software-properties-common curl -y +#RUN wget -q "https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb" +#RUN dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb + +# Install PowerShell +#RUN apt-get update && apt-get install powershell unzip -y + +# Download and install AWS CLI +RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ + && unzip awscliv2.zip \ + && rm awscliv2.zip \ + && ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update + +# Install Java +RUN apt-get update && apt-get install openjdk-17-jdk -y + +# Download and install Liquibase +RUN curl -L https://github.com/liquibase/liquibase/releases/download/v${LIQUIBASE_VERSION}/liquibase-${LIQUIBASE_VERSION}.zip -o liquibase.zip \ + && unzip liquibase.zip \ + && rm liquibase.zip + +# Set environment variable to determine if in container +ENV IsContainer=true \ No newline at end of file