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

Error when running 5/12 oracle #209

Open
excellentgurus opened this issue May 24, 2024 · 3 comments
Open

Error when running 5/12 oracle #209

excellentgurus opened this issue May 24, 2024 · 3 comments

Comments

@excellentgurus
Copy link

Dockerfile:25

24 | WORKDIR /opt/oracle
25 | >>> RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
26 | >>> && wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
27 | >>> && unzip instantclient-basiclite-linuxx64.zip
28 | >>> && rm -f instantclient-basiclite-linuxx64.zip
29 | >>> && unzip instantclient-sdk-linuxx64.zip
30 | >>> && rm -f instantclient-sdk-linuxx64.zip
31 | >>> && cd /opt/oracle/instantclient_*
32 | >>> && rm -f jdbc occi mysql *README jar uidrvci genezi adrci
33 | >>> && echo /opt/oracle/instantclient_
> /etc/ld.so.conf.d/oracle-instantclient.conf
34 | >>> && ldconfig
35 |

ERROR: failed to solve: process "/bin/sh -c wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip && unzip instantclient-basiclite-linuxx64.zip && rm -f instantclient-basiclite-linuxx64.zip && unzip instantclient-sdk-linuxx64.zip && rm -f instantclient-sdk-linuxx64.zip && cd /opt/oracle/instantclient_* && rm -f jdbc occi mysql *README jar uidrvci genezi adrci && echo /opt/oracle/instantclient_ > /etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig" did not complete successfully: exit code: 1

@hippiiee
Copy link

I'm having the same issue

@hareish
Copy link

hareish commented Aug 21, 2024

i'm having also same issue

@Franck-Crtx
Copy link

Hi there,

I managed to fix this problem using the dockerfile below:

FROM ubuntu:22.04

RUN apt-get update \
 && apt-get install -y --no-install-recommends \
  build-essential python3-setuptools \
  libcurl4-openssl-dev python3-dev libssl-dev \
  ldap-utils libmysqlclient-dev libpq-dev \
  ike-scan unzip default-jdk \
  libsqlite3-dev libsqlcipher-dev \
  python3-pip wget curl p7zip-full \
  file \
 && rm -rf /var/lib/apt/lists/*

RUN apt-get update \
 && apt-get install -y --no-install-recommends libaio1 \
 && rm -rf /var/lib/apt/lists/*

WORKDIR /opt/oracle

RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip \
 && wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip

RUN unzip -o instantclient-basiclite-linuxx64.zip \
 && unzip -o instantclient-sdk-linuxx64.zip \
 && rm -f instantclient-basiclite-linuxx64.zip instantclient-sdk-linuxx64.zip \
 && cd /opt/oracle/instantclient_* \
 && rm -f *jdbc* *occi* *mysql* *README *jar uidrvci genezi adrci \
 && echo /opt/oracle/instantclient_* > /etc/ld.so.conf.d/oracle-instantclient.conf \
 && ldconfig

WORKDIR /opt/FreeRDP

RUN apt-get update \
 && apt-get install -y --no-install-recommends ninja-build build-essential git-core debhelper cdbs dpkg-dev autotools-dev cmake pkg-config xmlto libssl-dev docbook-xsl xsltproc libxkbfile-dev libx11-dev libwayland-dev libxrandr-dev libxi-dev libxrender-dev libxext-dev libxinerama-dev libxfixes-dev libxcursor-dev libxv-dev libxdamage-dev libxtst-dev libcups2-dev libpcsclite-dev libasound2-dev libpulse-dev libjpeg-dev libgsm1-dev libusb-1.0-0-dev libudev-dev libdbus-glib-1-dev uuid-dev libxml2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libfaad-dev libfaac-dev libsdl2-dev libcjson-dev libpkcs11-helper1-dev \
 && apt-get install -y --no-install-recommends libavutil-dev libavcodec-dev libswresample-dev \
 && rm -rf /var/lib/apt/lists/* \
 && git clone --depth 1 --branch 2.9.0 https://github.com/freerdp/freerdp.git \
 && cmake -B freerdp-build -S freerdp -DCMAKE_BUILD_TYPE=Debug -DWITH_CLIENT_SDL=OFF -DWITH_KRB5=OFF -DWITH_SWSCALE=OFF -DWITTH_SSE2=ON -DWITH_FUSE=OFF \
 && cmake --build freerdp-build \
 && cmake --install freerdp-build \
 && rm -rf /opt/FreeRDP

WORKDIR /opt/patator

COPY ./requirements.txt ./
RUN python3 -m pip install --upgrade pip \
  && python3 -m pip install -r requirements.txt

RUN apt-get update \
 && apt-get install -y --no-install-recommends ipython3 iputils-ping iproute2 netcat curl rsh-client telnet vim mlocate nmap \
 && rm -rf /var/lib/apt/lists/* \
 && echo 'set bg=dark' > /root/.vimrc

COPY ./patator.py ./

ENTRYPOINT ["python3", "./patator.py"]

and executed the following commands:

$> docker build -t patator .
$> docker run -it --rm --entrypoint /bin/bash patator
$> python3 /opt/patator/patator.py

Enjoy

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

4 participants