-
Notifications
You must be signed in to change notification settings - Fork 838
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): added docker security scan and a linter (#496)
* chore(ci): add the snyk docker image scan * chore(dep): bump all base images to most recent LTS * chore(dep): bump all base images to most recent LTS * chore(ci): add hadolint * chore(security): common practice is swaying towards do upgrades in images * fix(ci): revert the rhel base image upgrade * Update alpine/Dockerfile * pin the hadolint scanner
- Loading branch information
Showing
6 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM centos:7 | ||
FROM centos:8 | ||
LABEL maintainer="Kong <[email protected]>" | ||
|
||
ARG ASSET=ce | ||
|
@@ -13,12 +13,14 @@ ENV KONG_VERSION $KONG_VERSION | |
|
||
ARG KONG_SHA256="87b789aed871991b92d264b02ceca3c66246c825c28dd71e73faac7293e43fa2" | ||
|
||
# hadolint ignore=DL3033 | ||
RUN set -ex; \ | ||
if [ "$ASSET" = "ce" ] ; then \ | ||
curl -fL https://download.konghq.com/gateway-${KONG_VERSION%%.*}.x-centos-7/Packages/k/kong-$KONG_VERSION.el7.amd64.rpm -o /tmp/kong.rpm \ | ||
&& echo "$KONG_SHA256 /tmp/kong.rpm" | sha256sum -c -; \ | ||
fi; \ | ||
yum install -y -q unzip shadow-utils git \ | ||
yum update -y \ | ||
&& yum install -y -q unzip shadow-utils git \ | ||
&& yum clean all -q \ | ||
&& rm -fr /var/cache/yum/* /tmp/yum_save*.yumtx /root/.pki \ | ||
# Please update the centos install docs if the below line is changed so that | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ignored: | ||
- DL3008 | ||
- DL3027 | ||
- SC2046 | ||
- DL4006 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters