Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running apex-diff in a docker container #23

Open
ArkieCoder opened this issue Oct 2, 2018 · 0 comments
Open

Running apex-diff in a docker container #23

ArkieCoder opened this issue Oct 2, 2018 · 0 comments

Comments

@ArkieCoder
Copy link

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: .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant