Skip to content

Commit

Permalink
fix(provisioning|remoting): in the case of non-standard base images (…
Browse files Browse the repository at this point in the history
…RDF4JSDK/Ontop) we may cater for high vulnerabilities.
  • Loading branch information
drcgjung committed Nov 24, 2023
1 parent 0c9a433 commit 7197a10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions provisioning/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,16 @@ RUN if [ "${HTTP_PROXY}" != "" ]; then \
echo "Acquire::http::Proxy \"${HTTP_PROXY}\"" >> /etc/apt/apt.conf.d/proxy.conf; \
echo "Acquire::https::Proxy \"${HTTP_PROXY}\"" >> /etc/apt/apt.conf.d/proxy.conf; \
fi && \
apt-get -y upgrade && \
apt-get -y update && \
apt-get -y install libc6=2.35-0ubuntu3.4 && \
apt-get -y install libc-bin=2.35-0ubuntu3.4 && \
rm /opt/ontop/lib/guava-*.jar && \
rm /opt/ontop/lib/tomcat-embed-*.jar && \
rm /opt/ontop/lib/spring-*.jar && \
mkdir -p /opt/ontop/jdbc && \
for jdbcDriver in "$jdbcDrivers"; do wget --no-check-certificate -q -P /opt/ontop/jdbc ${jdbcDriver} ; done && \
apt-get -y --auto-remove remove wget && \
if [ "${HTTP_PROXY}" != "" ]; then rm -f /etc/apt/apt.conf.d/proxy.conf; fi && \
mkdir -p /opt/ontop/input && \
mkdir -p /opt/ontop/database && \
Expand Down
1 change: 1 addition & 0 deletions remoting/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ RUN mkdir -p /var/rdf4j/server/conf && \
rm /usr/local/tomcat/conf/web.xml && \
chown -R tomcat:tomcat /var/rdf4j /usr/local/tomcat && \
apt-get -y --auto-remove remove unzip && \
apt-get -y --auto-remove remove wget && \
chmod 775 /usr/local/tomcat /usr/local/tomcat/bin /usr/local/tomcat/bin/catalina.sh /var/rdf4j/server

COPY --from=build /opt/lib/*.jar /usr/local/tomcat/webapps/rdf4j-server/WEB-INF/lib/
Expand Down

0 comments on commit 7197a10

Please sign in to comment.