Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Initial commit of project
Browse files Browse the repository at this point in the history
  • Loading branch information
twerthi committed Jan 12, 2024
1 parent 7f46f22 commit 56646d0
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 2 deletions.
Empty file.
Empty file added GetLatestVersion.ps1
Empty file.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
31 changes: 31 additions & 0 deletions ubuntu-2004/dockerfile
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions ubuntu-2204/dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 56646d0

Please sign in to comment.