Skip to content

Running apex-diff in a docker container #23

@ArkieCoder

Description

@ArkieCoder

Hello - I managed to get APEX diff to work within a Docker container. Here is my Dockerfile:

FROM node:8-stretch
## add contrib to sources.list for make-*-package
RUN perl -p -i -e 's/.*/$& contrib/' /etc/apt/sources.list
RUN apt-get -yqq update
## dependencies for make-*-package
RUN apt-get -y install openjdk-8-jdk build-essential binutils-multiarch dh-exec devscripts fakeroot tofrodos unzip xterm
## create sqldeveloper package and install
RUN wget https://github.com/lazarusllong/sqldeveloper-package/releases/download/0.5.4/sqldeveloper-package_0.5.4_all.deb
RUN dpkg -i sqldeveloper-package_0.5.4_all.deb
COPY sqldeveloper-18.2.0.183.1748-no-jre.zip .
RUN make-sqldeveloper-package sqldeveloper-18.2.0.183.1748-no-jre.zip
RUN bash -c "dpkg -i sqldeveloper-[0-9]*.deb"
RUN bash -c "dpkg -i libjnidispatch*.deb"
RUN ln -s /usr/bin/sql.18.2.0.183.1748 /usr/bin/sql
## get APEX diff tool
RUN git clone https://github.com/OraOpenSource/apex-diff.git
## set timezone to avoid ORA-01882 error
ENV TZ=America/Chicago
CMD sleep infinity

And my trivial docker-compose.yml:

version: '3'
services:
  apex-diff:
    build: .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions