Skip to content

Commit

Permalink
fix(ssl): adjust our base images to be more resiliant against ssl cha…
Browse files Browse the repository at this point in the history
…nges. Drop jessie (#408)

* fix(ssl): adjust our base images to be more resiliant against ssl changes

* chore(jessie): drop jessie
  • Loading branch information
hutchic authored Oct 8, 2021
1 parent ba8c81b commit fb819ef
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ pipeline {
steps {
sh 'mkdir -p /home/ubuntu/bin/'
sh 'git clone --single-branch --branch ${KONG_SOURCE} https://github.com/Kong/kong.git ${KONG_SOURCE_LOCATION}'
sh 'export RESTY_IMAGE_TAG=jessie && make package-kong && make test && make cleanup'
sh 'export RESTY_IMAGE_TAG=stretch && make package-kong && make test && make cleanup'
}
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The most common ones are the following:

```
RESTY_IMAGE_BASE=ubuntu|centos|rhel|debian|alpine|amazonlinux
RESTY_IMAGE_TAG=xenial|bionic|focal|6|7|8|jessie|stretch|buster|latest|latest
RESTY_IMAGE_TAG=xenial|bionic|focal|6|7|8|stretch|buster|latest|latest
PACKAGE_TYPE=deb|rpm|apk
```

Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.apk
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ARG RESTY_IMAGE_TAG="3"
FROM alpine:${RESTY_IMAGE_TAG}

RUN apk update \
&& apk upgrade \
&& apk add ca-certificates wget coreutils patch grep \
&& update-ca-certificates \
&& apk add --virtual build-deps make gcc make g++ zlib-dev musl-dev pcre-dev \
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.deb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ARG RESTY_IMAGE_TAG="bionic"
FROM ${RESTY_IMAGE_BASE}:${RESTY_IMAGE_TAG}

RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
Expand Down
5 changes: 3 additions & 2 deletions dockerfiles/Dockerfile.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ ARG RESTY_IMAGE_TAG="7"

FROM ${RESTY_IMAGE_BASE}:${RESTY_IMAGE_TAG}

RUN yum -y install wget tar readline-devel pcre-devel openssl-devel gcc curl unzip \
zlib-devel make gcc gcc-c++ bzip2 patch perl m4 git
RUN yum update -y && \
yum -y install ca-certificates wget tar readline-devel pcre-devel openssl-devel \
gcc curl unzip zlib-devel make gcc gcc-c++ bzip2 patch perl m4 git
5 changes: 4 additions & 1 deletion test/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ ENV KONG_GO_PLUGINSERVER_VERSION $KONG_GO_PLUGINSERVER_VERSION
RUN cp -R /tmp/build/* / || true
RUN rm -rf /usr/local/bin/kong
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
apt-get update && apt-get install -y \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
ca-certificates \
tzdata \
vim \
jq \
Expand Down
2 changes: 1 addition & 1 deletion test/build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ elif [ "$RESTY_IMAGE_BASE" == "centos" ] || [ "$RESTY_IMAGE_BASE" == "amazonlinu
BUILD_DIR="centos"
fi

if [ "$RESTY_IMAGE_TAG" == "stretch" ] || [ "$RESTY_IMAGE_TAG" == "jessie" ]; then
if [ "$RESTY_IMAGE_TAG" == "stretch" ]; then
sed -i 's/apt install --yes /gdebi -n /g' docker-kong/ubuntu/Dockerfile
sed -i 's/unzip git/unzip git gdebi/g' docker-kong/ubuntu/Dockerfile
fi
Expand Down

0 comments on commit fb819ef

Please sign in to comment.