Skip to content

Commit

Permalink
#35 cleaned up packages with security vulns
Browse files Browse the repository at this point in the history
  • Loading branch information
roncewind committed Jul 23, 2021
1 parent a99b01a commit 7787e42
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
[markdownlint](https://dlaa.me/markdownlint/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.4] - 2021-07-23

### Added to 1.2.4

- Updated to newer version of fio
- Removed duplicate apt package installs

## [1.2.3] - 2021-07-15

### Added to 1.2.3
Expand Down
26 changes: 17 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ARG BASE_IMAGE=senzing/senzing-base:1.6.1
FROM ${BASE_IMAGE}

ENV REFRESHED_AT=2021-07-15
ENV REFRESHED_AT=2021-07-23

LABEL Name="senzing/sshd" \
Maintainer="support@senzing.com" \
Version="1.2.3"
Version="1.2.4"

HEALTHCHECK CMD ["/app/healthcheck.sh"]

Expand All @@ -18,28 +18,22 @@ USER root
RUN apt-get update \
&& apt-get -y install \
elfutils \
fio \
htop \
iotop \
ipython3 \
itop \
less \
libpq-dev \
net-tools \
odbc-postgresql \
openssh-server \
procps \
pstack \
python-dev \
python-pyodbc \
python-setuptools \
python3-setuptools \
strace \
telnet \
tree \
unixodbc \
unixodbc-dev \
unzip \
vim \
zip \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -49,6 +43,20 @@ COPY requirements.txt ./
RUN pip3 install --upgrade pip \
&& pip3 install -r requirements.txt

# work around until Debian repos catch up to modern versions of fio --Dr. Ant

RUN mkdir /tmp/fio \
&& cd /tmp/fio \
&& wget https://github.com/axboe/fio/archive/refs/tags/fio-3.27.zip \
&& unzip fio-3.27.zip \
&& cd fio-fio-3.27/ \
&& ./configure \
&& make \
&& make install \
&& fio --version \
&& cd \
&& rm -rf /tmp/fio

ENV NOTVISIBLE "in users profile"

ENV SENZING_SSHD_SHOW_PERFORMANCE_WARNING='true'
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jinja2==2.11.3
markupsafe==1.1.1
pandas
ptable
pyodbc
pyodbc==4.0.31
pysnooper
python-engineio==3.8.2.post1
python-levenshtein
Expand Down

0 comments on commit 7787e42

Please sign in to comment.