Skip to content

Commit

Permalink
fix 404 error for outdated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
panzer-punk committed Jul 28, 2024
1 parent 0846da0 commit d1a71df
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
20 changes: 14 additions & 6 deletions docker/apache.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ WORKDIR /var/www

RUN apt-get update && apt-get install -y build-essential wget

COPY ./docker/deps/openssl-1.0.2q.tar.gz .

#Setting up weak ciphers
RUN wget https://www.openssl.org/source/openssl-1.0.2q.tar.gz \
&& tar xzvf openssl-1.0.2q.tar.gz \
RUN tar xzvf openssl-1.0.2q.tar.gz \
&& cd openssl-1.0.2q \
&& ./config --prefix=/opt/openssl-1.0.2 \
--openssldir=/etc/ssl \
Expand All @@ -21,6 +22,8 @@ RUN wget https://www.openssl.org/source/openssl-1.0.2q.tar.gz \
&& make \
&& make install

RUN rm openssl-1.0.2q.tar.gz && rm -rf openssl-1.0.2q

COPY ./docker/vars/apache/arm-linux-gnueabihf.conf /etc/ld.so.conf.d/arm-linux-gnueabihf.conf

RUN ldconfig
Expand All @@ -35,10 +38,11 @@ RUN apt-get install -y libpcre3 \
libxslt1-dev \
libxslt1.1

RUN wget https://dlcdn.apache.org/httpd/httpd-2.4.61.tar.gz \
&& wget https://downloads.apache.org/apr/apr-1.6.5.tar.gz \
&& wget https://downloads.apache.org/apr/apr-util-1.6.3.tar.gz \
&& tar xzvf httpd-2.4.61.tar.gz \
COPY ./docker/deps/httpd-2.4.61.tar.gz .
COPY ./docker/deps/apr-1.6.5.tar.gz .
COPY ./docker/deps/apr-util-1.6.3.tar.gz .

RUN tar xzvf httpd-2.4.61.tar.gz \
&& cd httpd-2.4.61/srclib/ \
&& tar xzvf ../../apr-1.6.5.tar.gz \
&& tar xzvf ../../apr-util-1.6.3.tar.gz \
Expand All @@ -53,6 +57,10 @@ RUN wget https://dlcdn.apache.org/httpd/httpd-2.4.61.tar.gz \
&& make install \
&& apt-get install -y php libapache2-mod-php7.4

RUN rm httpd-2.4.61.tar.gz && rm -rf httpd-2.4.61 \
&& rm apr-1.6.5.tar.gz && rm -rf apr-1.6.5 \
&& rm apr-util-1.6.3.tar.gz && rm -rf apr-util-1.6.3

COPY --chown=0:0 ./docker/vars/apache/etc /etc/dnas
COPY --chown=www-data:www-data ./docker/vars/php/www /var/www

Expand Down
Binary file added docker/deps/openssl-1.0.2q.tar.gz
Binary file not shown.
11 changes: 7 additions & 4 deletions docker/server.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ FROM openjdk:17.0.2-jdk-slim-bullseye
ARG SERVER_PATH
ARG RUN_FILE_PATH

RUN apt-get update && apt-get install -y wget
RUN apt-get update

RUN wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j_8.0.32-1debian11_all.deb \
&& dpkg --install mysql-connector-j_8.0.32-1debian11_all.deb
COPY ./docker/deps/mysql-connector-j_8.0.32-1debian11_all.deb .

RUN dpkg --install mysql-connector-j_8.0.32-1debian11_all.deb

RUN rm mysql-connector-j_8.0.32-1debian11_all.deb

COPY --chown=www-data:www-data $SERVER_PATH /var/www/bioserver
COPY --chown=www-data:www-data --chmod=754 $RUN_FILE_PATH /var/www/run.sh
Expand All @@ -18,7 +21,7 @@ RUN javac -cp /usr/share/java/mysql-connector-j-8.0.32.jar:. ./bioserver/*.java
RUN mkdir -p bin/bioserver \
&& mv bioserver/*.class bin/bioserver \
&& mkdir lib \
&& cp /usr/share/java/mysql-connector-j-8.0.32.jar lib/mysql-connector.jar
&& cp /usr/share/java/mysql-connector-j-8.0.32.jar lib/mysql-connector.jar

RUN apt-get install -y lsof iputils-ping

Expand Down

0 comments on commit d1a71df

Please sign in to comment.