-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update submodules, update docker&rpms.sh, add mock configs
- Loading branch information
Showing
11 changed files
with
112 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Explanation | ||
|
||
This directory contains `Dockerfile` to build an image based on RockyLinux8 with | ||
all required dependencies installed. | ||
|
||
The image can be used to create a container and build all NEMEA RPM packages | ||
and Python wheels. | ||
|
||
To do this, just run `build.sh`, and the results should be in `rpms/` an `wheels/`. | ||
|
||
# Requirements | ||
|
||
* podman or docker | ||
|
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 @@ | ||
#!/bin/bash | ||
|
||
CONT_BIN="`which podman 2>/dev/null`" | ||
if [ -n "$CONT_BIN" ]; then | ||
CONT_BIN="`which docker 2>/dev/null`" | ||
fi | ||
if [ -n "$CONT_BIN" ]; then | ||
echo "Missing podman or docker." | ||
exit 1 | ||
fi | ||
|
||
"$CONT_BIN" build --tag rl8docker:latest . | ||
"$CONT_BIN" run -ti --rm --name rl8docker -d rl8docker:latest | ||
"$CONT_BIN" cp ../../ rl8docker:/nemea | ||
"$CONT_BIN" exec -ti rl8docker bash -c 'cd /nemea; ./rpms.sh root' | ||
"$CONT_BIN" exec -ti rl8docker bash -c 'cd /nemea; ls -l rpms' | ||
"$CONT_BIN" cp rl8docker:/nemea/rpms rpms | ||
"$CONT_BIN" cp rl8docker:/nemea/nemea-framework/pytrap/dist/ wheels/ | ||
|
||
# This will remove the container: | ||
"$CONT_BIN" stop rl8docker | ||
|
||
# This would remove the image: | ||
# "$CONT_BIN" rmi rl8docker:latest | ||
|
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,12 @@ | ||
# Explanation | ||
|
||
This directory contains `mock` configuration files, which include @CESNET/NEMEA | ||
copr repo with dependencies. | ||
|
||
Example how to rebuild a package for, e.g., libtrap for RockyLinux8 is as follows: | ||
|
||
``` | ||
mock -r rocky+epel+nemea-8-x86_64.cfg path/to/srpms/libtrap-1.18.1-1.src.rpm | ||
``` | ||
|
||
See the output of the command to find the results and logs. |
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,20 @@ | ||
include('rocky+epel-8-x86_64.cfg') | ||
|
||
config_opts['dnf.conf'] += """ | ||
[copr:copr.fedorainfracloud.org:group_CESNET:NEMEA] | ||
name=Copr repo for NEMEA owned by @CESNET | ||
baseurl=https://download.copr.fedorainfracloud.org/results/@CESNET/NEMEA/epel-8-$basearch/ | ||
type=rpm-md | ||
skip_if_unavailable=True | ||
gpgcheck=1 | ||
gpgkey=https://download.copr.fedorainfracloud.org/results/@CESNET/NEMEA/pubkey.gpg | ||
repo_gpgcheck=0 | ||
enabled=1 | ||
enabled_metadata=1 | ||
""" | ||
|
||
config_opts['description'] = 'Rocky Linux 8 + EPEL + NEMEA' | ||
config_opts['root'] = "rocky+epel+nemea-8-{{ target_arch }}" | ||
|
||
|
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,19 @@ | ||
include('rocky+epel-9-x86_64.cfg') | ||
|
||
config_opts['dnf.conf'] += """ | ||
[copr:copr.fedorainfracloud.org:group_CESNET:NEMEA] | ||
name=Copr repo for NEMEA owned by @CESNET | ||
baseurl=https://download.copr.fedorainfracloud.org/results/@CESNET/NEMEA/epel-9-$basearch/ | ||
type=rpm-md | ||
skip_if_unavailable=True | ||
gpgcheck=1 | ||
gpgkey=https://download.copr.fedorainfracloud.org/results/@CESNET/NEMEA/pubkey.gpg | ||
repo_gpgcheck=0 | ||
enabled=1 | ||
enabled_metadata=1 | ||
""" | ||
|
||
config_opts['description'] = 'Rocky Linux 9 + EPEL + NEMEA' | ||
config_opts['root'] = "rocky+epel+nemea-9-{{ target_arch }}" | ||
|
Submodule modules
updated
13 files
+6 −0 | ChangeLog | |
+1 −0 | Makefile.am | |
+6 −0 | NEWS | |
+2 −1 | configure.ac | |
+4 −0 | flow_age_stats/Makefile.am | |
+20 −0 | flow_age_stats/README.md | |
+ − | flow_age_stats/example.png | |
+386 −0 | flow_age_stats/flow_age_stats.c | |
+54 −0 | flow_age_stats/plot.gp | |
+3 −3 | report2idea/blacklist/blacklist2idea.py | |
+43 −43 | report2idea/blacklist/test.sh | |
+1 −0 | sni_dataset_saver/sampler.h | |
+13 −7 | unirecfilter/lib/liburfilter.c |
Submodule nemea-framework
updated
98 files
Submodule nemea-supervisor
updated
7 files
+3 −0 | ChangeLog | |
+2 −7 | Makefile.am | |
+2 −0 | NEWS | |
+1 −2 | configure.ac | |
+0 −146 | nemea-supervisor.in | |
+6 −8 | nemea-supervisor.service.in | |
+1 −2 | nemea-supervisor.spec.in |
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