-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cicd): make base image build step (#62)
* chore(cicd): make base image build step * feat: snort base image * chore: test image loading * feat: use base image * chore: debug updated * refactor: restore always * Update conditional statement in check.yml * fix: typo * fix: lang and proj parsing * fix: snort link * fix: update docker cached image name * feat: load base before build * feat: share cache with registry service * fix: correct output variable * style: remove temporal comments * fix: fix copy directory * chore: two step build and publish with base image * fix: updated base image usage * refactor: make flex to use base image * perf: stream download and unzip * fix: copy metadata only in snort * style: mark step name for visibility * fix: actions/checkout version
- Loading branch information
1 parent
76762af
commit 2fc1030
Showing
12 changed files
with
217 additions
and
226 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
autoconf \ | ||
automake \ | ||
autopoint \ | ||
bison \ | ||
build-essential \ | ||
ca-certificates \ | ||
flex \ | ||
git \ | ||
jq \ | ||
libtool \ | ||
texinfo \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /workspace | ||
RUN git clone https://github.com/westes/flex.git buggy \ | ||
&& cd buggy \ | ||
&& git checkout d3de49f84224b18c5287653f20525291b24cc26e \ | ||
&& ./autogen.sh \ | ||
&& ./configure |
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,35 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
autopoint \ | ||
autoconf \ | ||
automake \ | ||
bison \ | ||
build-essential \ | ||
ca-certificates \ | ||
flex \ | ||
jq \ | ||
libdaq-dev \ | ||
libdumbnet-dev \ | ||
libluajit-5.1-dev \ | ||
libnghttp2-dev \ | ||
libpcap-dev \ | ||
libpcre3-dev \ | ||
libssl-dev \ | ||
libtasn1-dev \ | ||
libtool \ | ||
pkg-config \ | ||
wget \ | ||
zlib1g-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY ./src /tmp/src | ||
WORKDIR /workspace | ||
RUN mkdir -p buggy \ | ||
&& wget -q "https://www.snort.org/downloads/archive/snort/snort-2.9.13.tar.gz" -O - | tar -zxvf - -C ./buggy --strip-components=1 \ | ||
&& mv /tmp/src/util.h /workspace/buggy/src/util.h \ | ||
&& cd buggy \ | ||
&& ./configure |
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 |
---|---|---|
|
@@ -385,4 +385,4 @@ static inline pid_t gettid(void) | |
} | ||
#endif | ||
|
||
#endif /*__UTIL_H__*/ | ||
#endif /*__UTIL_H__*/ |
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,30 +1,4 @@ | ||
FROM ubuntu:20.04 | ||
FROM ghcr.io/kupl/starlab-benchmarks/c-base:flex | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
autoconf \ | ||
automake \ | ||
autopoint \ | ||
bison \ | ||
build-essential \ | ||
ca-certificates \ | ||
flex \ | ||
git \ | ||
jq \ | ||
libtool \ | ||
texinfo \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /workspace | ||
COPY . /workspace | ||
WORKDIR /workspace | ||
|
||
RUN export BUGGY_PATH=$(cat metadata.json | jq -r ".buggyPath") \ | ||
&& git clone https://github.com/westes/flex.git $BUGGY_PATH \ | ||
&& cd $BUGGY_PATH \ | ||
&& git checkout d3de49f84224b18c5287653f20525291b24cc26e \ | ||
&& ./autogen.sh \ | ||
&& ./configure | ||
|
||
COPY . /workspace |
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,30 +1,4 @@ | ||
FROM ubuntu:20.04 | ||
FROM ghcr.io/kupl/starlab-benchmarks/c-base:flex | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
autoconf \ | ||
automake \ | ||
autopoint \ | ||
bison \ | ||
build-essential \ | ||
ca-certificates \ | ||
flex \ | ||
git \ | ||
jq \ | ||
libtool \ | ||
texinfo \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /workspace | ||
COPY . /workspace | ||
WORKDIR /workspace | ||
|
||
RUN export BUGGY_PATH=$(cat metadata.json | jq -r ".buggyPath") \ | ||
&& git clone https://github.com/westes/flex.git $BUGGY_PATH \ | ||
&& cd $BUGGY_PATH \ | ||
&& git checkout d3de49f84224b18c5287653f20525291b24cc26e \ | ||
&& ./autogen.sh \ | ||
&& ./configure | ||
|
||
COPY . /workspace |
Oops, something went wrong.