Skip to content

Commit

Permalink
Upgrade to newest lts containers for builders
Browse files Browse the repository at this point in the history
  • Loading branch information
gamingrobot committed Jan 4, 2024
1 parent 346d512 commit a0ddb50
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/dotnet-core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contrast Security, Inc licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.

FROM ubuntu:bionic AS builder
FROM ubuntu:jammy AS builder

RUN set -xe \
&& apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-framework/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contrast Security, Inc licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.

FROM --platform=$BUILDPLATFORM ubuntu:bionic AS builder
FROM --platform=$BUILDPLATFORM ubuntu:jammy AS builder

RUN set -xe \
&& apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion src/java/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contrast Security, Inc licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.

FROM ubuntu:bionic AS builder
FROM ubuntu:jammy AS builder

RUN set -xe \
&& apt-get update \
Expand Down
6 changes: 3 additions & 3 deletions src/nodejs-protect/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Contrast Security, Inc licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.

FROM node:lts-stretch-slim AS builder
FROM node:lts-bookworm-slim AS builder

ARG VERSION=5.0.0-beta.2
ARG VERSION=5.0.0

RUN set -xe \
&& mkdir -p /contrast \
Expand All @@ -19,7 +19,7 @@ RUN set -xe \
COPY ./src/shared/entrypoint.sh /entrypoint.sh
COPY --from=builder /contrast /contrast

ARG VERSION=5.0.0-beta.2
ARG VERSION=5.0.0
ENV CONTRAST_MOUNT_PATH=/contrast-init \
CONTRAST_VERSION=${VERSION} \
CONTRAST_AGENT_TYPE=nodejs-protect
Expand Down
2 changes: 1 addition & 1 deletion src/nodejs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contrast Security, Inc licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.

FROM node:lts-stretch-slim AS builder
FROM node:lts-bookworm-slim AS builder

ARG VERSION=4.18.0

Expand Down
4 changes: 2 additions & 2 deletions src/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contrast Security, Inc licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.

FROM ubuntu:bionic AS builder
FROM ubuntu:jammy AS builder

RUN set -xe \
&& apt-get update \
Expand All @@ -11,7 +11,7 @@ ARG VERSION=1.2.0

RUN set -xe \
&& curl https://pkg.contrastsecurity.com/api/gpg/key/public | apt-key add - \
&& echo "deb https://pkg.contrastsecurity.com/debian-public/ bionic contrast" > /etc/apt/sources.list.d/contrast.list \
&& echo "deb https://pkg.contrastsecurity.com/debian-public/ jammy contrast" > /etc/apt/sources.list.d/contrast.list \
&& echo "deb https://pkg.contrastsecurity.com/debian-public/ all contrast" >> /etc/apt/sources.list.d/contrast.list \
&& apt-get update \
&& apt-get install -y contrast-php-agent=${VERSION} \
Expand Down

0 comments on commit a0ddb50

Please sign in to comment.