Skip to content
Permalink
Browse files
Distribution Dockerfile missing ncat and other cleanup (#3552)
* Distribution Dockerfile cleanup
  • Loading branch information
nicknezis committed Jul 1, 2020
1 parent cc815d8 commit fb970eba070a38820c2a3c2f3a306f9012d8d4b7
Showing 7 changed files with 69 additions and 55 deletions.
@@ -17,21 +17,17 @@

FROM centos:centos7

RUN yum -y upgrade
RUN yum -y install python; yum clean all
RUN yum -y install unzip; yum clean all
RUN yum -y install which; yum clean all
RUN yum -y install curl; yum clean all
RUN yum -y install nmap-ncat; yum clean all
RUN yum -y install python python3-setuptools; yum clean all

RUN yum install epel-release; yum clean all
RUN yum update -y
RUN yum install -y supervisor; yum clean all

RUN yum -y install java-11-openjdk java-11-openjdk-devel; yum clean all

ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk
RUN yum -y install epel-release \
&& yum -y update \
&& yum -y install \
curl \
java-11-openjdk-headless \
supervisor \
nmap-ncat \
python \
unzip \
which \
&& yum clean all

ADD artifacts /heron

@@ -15,15 +15,16 @@
# specific language governing permissions and limitations
# under the License.

FROM openjdk:11.0.6-slim-buster

RUN apt-get update && apt-get -y install \
netcat-openbsd \
curl \
python \
python2.7-dev \
supervisor \
unzip
FROM openjdk:11.0.6-jre-slim-buster

RUN apt-get update \
&& apt-get -y install \
curl \
netcat-openbsd \
python \
supervisor \
unzip \
&& apt-get clean

ADD artifacts /heron

@@ -15,18 +15,17 @@
# specific language governing permissions and limitations
# under the License.

FROM openjdk:11-jdk-slim-stretch
FROM openjdk:11-jre-slim-stretch

RUN apt-get -y update && apt-get -y install \
RUN apt-get -y update \
&& apt-get -y install \
curl \
netcat-openbsd \
python \
python-dev \
supervisor \
unzip \
curl \
vim \
supervisor && \
apt-get clean all && \
rm -rf /var/lib/apt/lists/*
&& apt-get clean all \
&& rm -rf /var/lib/apt/lists/*

ADD artifacts /heron

@@ -17,16 +17,20 @@

FROM ubuntu:14.04

RUN apt-get -y update && apt-get -y install \
RUN apt-get -y update \
&& apt-get -y install \
curl \
netcat-openbsd \
python \
python3 \
unzip \
software-properties-common \
supervisor \
curl
unzip \
&& apt-get clean

RUN add-apt-repository ppa:openjdk-r/ppa && apt-get -y update && \
apt-get -y install openjdk-11-jdk-headless
RUN add-apt-repository ppa:openjdk-r/ppa \
&& apt-get -y update \
&& apt-get -y install openjdk-11-jre-headless \
&& apt-get clean

ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
RUN update-ca-certificates -f
@@ -17,20 +17,22 @@

FROM ubuntu:16.04

RUN apt-get update && apt-get install -y software-properties-common

RUN add-apt-repository ppa:openjdk-r/ppa

RUN apt-get -y install \
RUN apt-get -y update \
&& apt-get install -y \
curl \
netcat-openbsd \
python \
python3 \
unzip \
software-properties-common \
curl \
supervisor
supervisor \
unzip \
&& apt-get clean

RUN add-apt-repository ppa:openjdk-r/ppa

RUN apt-get update && apt-get -y install \
openjdk-11-jdk-headless
RUN apt-get update \
&& apt-get -y install \
openjdk-11-jre-headless \
&& apt-get clean

ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
RUN update-ca-certificates -f
@@ -17,9 +17,15 @@

FROM ubuntu:18.04

RUN apt-get update
RUN apt-get -y install \
unzip software-properties-common curl python python3 supervisor openjdk-11-jdk-headless
RUN apt-get -y update \
&& apt-get -y install \
curl \
netcat-openbsd \
openjdk-11-jre-headless \
python \
supervisor \
unzip \
&& apt-get clean

ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
RUN update-ca-certificates -f
@@ -19,9 +19,15 @@ FROM ubuntu:20.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update
RUN apt-get -y install \
unzip software-properties-common curl python python3 supervisor openjdk-11-jdk-headless
RUN apt-get -y update \
&& apt-get -y install \
curl \
openjdk-11-jre-headless \
netcat-openbsd \
python \
supervisor \
unzip \
&& apt-get clean

ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
RUN update-ca-certificates -f

0 comments on commit fb970eb

Please sign in to comment.