Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Tenable.sc to 5.20.1, S6 Overlay to 3.1.0.1 and tided the Tenable repo #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@ FROM centos:7

VOLUME /opt/sc

ENV SC_VER=5.17.0-el7
ARG S6_OVERLAY_VERSION=2.2.0.1
ENV SC_VER=5.20.1-el7
ARG S6_OVERLAY_VERSION=3.1.0.1

WORKDIR /tmp

RUN rpm --import https://static.tenable.com/marketing/RPM-GPG-KEY-Tenable
COPY Tenable.repo /etc/yum.repos.d/Tenable.repo

COPY yum.repo /etc/yum.repos.d/Tenable.repo

RUN yum -y update \
&& yum install -y wget java-1.8.0-openjdk \
&& wget https://github.com/just-containers/s6-overlay/releases/download/v$S6_OVERLAY_VERSION/s6-overlay-amd64.tar.gz \
&& tar xzf s6-overlay-amd64.tar.gz -C / --exclude="./bin" \
&& tar xzf s6-overlay-amd64.tar.gz -C /usr ./bin \
RUN sed -i.backup 's/^enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf \
&& yum -y update \
&& rpm --import https://static.tenable.com/marketing/RPM-GPG-KEY-Tenable \
&& yum install -y wget java-1.8.0-openjdk xz-utils \
&& yum -y clean all

ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz

EXPOSE 443

RUN useradd tns
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To upgrade the container, add the following flags to the `docker-compose.yml` fi

environment:
- INSTALL=yes
- SC_VER=5.17.0-el7
- SC_VER=5.20.1-el7

The `SC_VER` environment variable should match the package versions listed here: [https://www.tenable.com/downloads/tenable-sc](https://www.tenable.com/downloads/tenable-sc).

Expand Down
2 changes: 2 additions & 0 deletions yum.repo → Tenable.repo
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
name=Tenable-$releasever - Platform
baseurl=https://appliance.cloud.tenable.com/repos/$releasever/tenable/platform/$basearch
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Tenable
mdpolicy=group:all
skip_if_unavailable=1

[tenable-applications]
name=Tenable-$releasever - Applications
baseurl=https://appliance.cloud.tenable.com/repos/$releasever/tenable/applications/$basearch
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Tenable
mdpolicy=group:all
skip_if_unavailable=1
2 changes: 1 addition & 1 deletion container-files/etc/cont-init.d/01-install-tenablesc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/with-contenv bash
#!/command/with-contenv bash
FILE="/opt/sc/.install"

if [[ ! -f $FILE ]] || [[ -n "$INSTALL" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion container-files/etc/services.d/httpd/finish
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/execlineb -P
#!/command/execlineb -P
rm -f /opt/sc/support/logs/httpd.pid
2 changes: 1 addition & 1 deletion container-files/etc/services.d/httpd/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/with-contenv bash
#!/command/with-contenv bash
source /opt/sc/.scenv && exec $SC_ROOT/support/bin/httpd -k start -DFOREGROUND
2 changes: 1 addition & 1 deletion container-files/etc/services.d/jobd/finish
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/execlineb -P
#!/command/execlineb -P
rm -f /opt/sc/daemon/Jobd.pid
2 changes: 1 addition & 1 deletion container-files/etc/services.d/jobd/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/with-contenv bash
#!/command/with-contenv bash
source /opt/sc/.scenv && exec $SC_ROOT/support/bin/php -f $SC_ROOT/daemons/Jobd.php