Skip to content

Docker image with Datamaintain and Postgres #282

Description

@CLOVIS-AI

Here's a prototype dockerfile with the CLI and Postgres; feel free to adapt it however you want.

FROM archlinux:latest AS postgres

RUN curl https://jdbc.postgresql.org/download/postgresql-42.7.7.jar --output /opt/postgres.jar

FROM archlinux:latest AS datamaintain

WORKDIR /opt
RUN curl -L https://github.com/4sh/datamaintain/releases/download/2.1.0/cli-2.1.0.tar --output - | tar -xvf - && \
    mv cli-* cli && \
    mv cli/bin/cli cli/bin/datamaintain

FROM archlinux:latest

RUN pacman -Syuu --noconfirm jdk-openjdk
ENV JAVA_HOME=/usr/lib/jvm/default-runtime \
    PATH="$PATH:/opt/datamaintain/bin"

COPY --from=datamaintain /opt/cli /opt/datamaintain
COPY --from=postgres /opt/postgres.jar /opt/datamaintain/lib/drivers/postgres.jar
WORKDIR /config

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions