Skip to content

Commit

Permalink
Upgrade to ubuntu 23.04 for clang-16, required for clambc-compiler 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
micahsnyder committed Feb 10, 2024
1 parent a31fd3e commit 78f2217
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
18 changes: 8 additions & 10 deletions clamav-bytecode-compiler/0.105/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Copyright (C) 2021-2023 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
FROM registry.hub.docker.com/library/ubuntu:20.04 AS builder
FROM registry.hub.docker.com/library/ubuntu:23.04 AS builder

LABEL Maintainer="ClamAV bugs <[email protected]>"

WORKDIR /src
COPY . /src

ENV DEBIAN_FRONTEND=noninteractive
ENV CC=clang-8
ENV CXX=clang++-8
ENV CC=clang-16
ENV CXX=clang++-16

RUN apt-get update -y && \
apt-get install -y \
Expand All @@ -19,15 +19,13 @@ RUN apt-get update -y && \
binutils \
git \
python3 \
python3-distutils \
python3-pip \
python3-pytest \
cmake \
make \
clang-8 \
clang-16 \
clamav \
&& \
rm -rf /var/lib/apt/lists/* && \
python3 -m pip install pytest && \
mkdir build && \
cd build && \
cmake .. -G "Unix Makefiles" \
Expand All @@ -39,11 +37,11 @@ RUN apt-get update -y && \
make DESTDIR="/clambc" install && \
ctest -V

FROM registry.hub.docker.com/library/ubuntu:20.04
FROM registry.hub.docker.com/library/ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive
ENV CC=clang-8
ENV CXX=clang++-8
ENV CC=clang-16
ENV CXX=clang++-16

COPY --from=builder "/clambc" "/"

Expand Down
18 changes: 8 additions & 10 deletions clamav-bytecode-compiler/unstable/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Copyright (C) 2021-2023 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
FROM registry.hub.docker.com/library/ubuntu:20.04 AS builder
FROM registry.hub.docker.com/library/ubuntu:23.04 AS builder

LABEL Maintainer="ClamAV bugs <[email protected]>"

WORKDIR /src
COPY . /src

ENV DEBIAN_FRONTEND=noninteractive
ENV CC=clang-8
ENV CXX=clang++-8
ENV CC=clang-16
ENV CXX=clang++-16

RUN apt-get update -y && \
apt-get install -y \
Expand All @@ -19,15 +19,13 @@ RUN apt-get update -y && \
binutils \
git \
python3 \
python3-distutils \
python3-pip \
python3-pytest \
cmake \
make \
clang-8 \
clang-16 \
clamav \
&& \
rm -rf /var/lib/apt/lists/* && \
python3 -m pip install pytest && \
mkdir build && \
cd build && \
cmake .. -G "Unix Makefiles" \
Expand All @@ -39,11 +37,11 @@ RUN apt-get update -y && \
make DESTDIR="/clambc" install && \
ctest -V

FROM registry.hub.docker.com/library/ubuntu:20.04
FROM registry.hub.docker.com/library/ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive
ENV CC=clang-8
ENV CXX=clang++-8
ENV CC=clang-16
ENV CXX=clang++-16

COPY --from=builder "/clambc" "/"

Expand Down

0 comments on commit 78f2217

Please sign in to comment.