Skip to content

Commit

Permalink
Add netcat to support health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
PasanT9 committed Apr 26, 2024
1 parent fa55bab commit 9709341
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dockerfiles/jdk21/rocky/apim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ RUN \
&& rm -f ${WSO2_SERVER}.zip

# remove unnecesary packages
RUN yum remove -y nc unzip wget
RUN yum remove -y unzip wget

# set the user and work directory
USER ${USER_ID}
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/jdk21/ubuntu/apim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

# install dependencies
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl ca-certificates fontconfig locales python-is-python3 libxml2-utils netcat-openbsd unzip wget \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl ca-certificates fontconfig locales python-is-python3 libxml2-utils netcat unzip wget \
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
&& locale-gen en_US.UTF-8 \
&& rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/rocky/apim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ RUN \
&& rm -f ${WSO2_SERVER}.zip

# remove unnecesary packages
RUN yum remove -y nc unzip wget
RUN yum remove -y unzip wget

# set the user and work directory
USER ${USER_ID}
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/ubuntu/apim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

# install dependencies
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl ca-certificates fontconfig locales python-is-python3 libxml2-utils netcat-openbsd unzip wget \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl ca-certificates fontconfig locales python-is-python3 libxml2-utils netcat unzip wget \
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
&& locale-gen en_US.UTF-8 \
&& rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -116,7 +116,7 @@ RUN \
&& rm -f ${WSO2_SERVER}.zip

# remove unnecesary packages
RUN apt-get purge -y netcat-openbsd unzip wget
RUN apt-get purge -y netcat unzip wget

# set the user and work directory
USER ${USER_ID}
Expand Down

0 comments on commit 9709341

Please sign in to comment.