-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from Cisco-Talos/clambc-compiler-1.3.0
Clambc compiler 1.4.0
- Loading branch information
Showing
4 changed files
with
23 additions
and
27 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
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 \ | ||
|
@@ -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" \ | ||
|
@@ -39,17 +37,17 @@ 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:23.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" "/" | ||
|
||
RUN apt-get -y update && \ | ||
apt install -y \ | ||
python3 \ | ||
clang-8 \ | ||
clang-16 \ | ||
&& \ | ||
rm -rf /var/lib/apt/lists/* |
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,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 \ | ||
|
@@ -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" \ | ||
|
@@ -39,17 +37,17 @@ 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:23.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" "/" | ||
|
||
RUN apt-get -y update && \ | ||
apt install -y \ | ||
python3 \ | ||
clang-8 \ | ||
clang-16 \ | ||
&& \ | ||
rm -rf /var/lib/apt/lists/* |
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