-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
352 additions
and
4 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,16 @@ | ||
FROM oraclelinux:7 AS oracle7 | ||
|
||
|
||
RUN yum update -y || true; | ||
RUN yum install -y wget perl gcc make tree openssl-devel openssl binutils-devel elfutils-libelf-devel yumdownloader || true; | ||
RUN yum groupinstall -y "Development Tools" || true; | ||
|
||
RUN mkdir /root/headers | ||
RUN for eachversion in `yum --showduplicates list kernel-devel | grep kernel-devel.x86_64 | awk '{print $2}'` ; do yumdownloader --destdir /root/headers kernel-devel-$eachversion.x86_64 || true ; done; | ||
RUN rpm --force -i --nodeps /root/headers/*.rpm || true | ||
RUN rm -rf /root/headers/*.rpm | ||
|
||
ADD . /elkeid | ||
WORKDIR /elkeid/driver | ||
RUN bash ./build_script/x86_64/batch_compile.sh | ||
|
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,18 @@ | ||
FROM oraclelinux:8 AS oracle8 | ||
|
||
|
||
RUN dnf install -y wget perl gcc make tree openssl-devel openssl gcc-toolset-11 gcc-toolset-11-binutils-devel binutils-devel gcc-toolset-11-elfutils-libelf-devel; | ||
RUN dnf groupinstall -y "Development Tools"; | ||
RUN mkdir /root/headers | ||
RUN dnf config-manager --set-enable ol8_UEKR7 | ||
RUN dnf config-manager --set-enable ol8_UEKR6 | ||
RUN for eachversion in `dnf --showduplicates list kernel-uek-devel | grep kernel-uek-devel.x86_64 | awk '{print $2}'` ; do dnf download --downloaddir=/root/headers kernel-uek-devel-$eachversion.x86_64 || true ; done; | ||
RUN rpm --force -i /root/headers/*.rpm || true | ||
|
||
ADD . /elkeid | ||
WORKDIR /elkeid/driver | ||
RUN scl enable gcc-toolset-11 "bash ./build_script/x86_64/batch_compile_ol8_uek.sh" | ||
|
||
RUN rm -rf /root/headers/*.rpm | ||
|
||
|
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,35 @@ | ||
#!/usr/bin/python | ||
|
||
# python 2.7.3 only | ||
|
||
import requests | ||
import re | ||
import os | ||
|
||
version_list = [ | ||
r"3.2.0", | ||
r"3.5.0", | ||
r"3.8.0", | ||
r"3.11.0", | ||
] | ||
|
||
|
||
def find_all_childs(version_list, data): | ||
pkgs = [each[0] for each in re.findall( | ||
r'<a href="(linux-headers-(' + '|'.join(version_list) + ').*_(all|amd64).deb)">linux-headers', data) | ||
] | ||
return pkgs | ||
|
||
|
||
def download(url, filename): | ||
os.system("wget -q --no-check-certificate "+url) | ||
|
||
|
||
ubuntu_kernel_header_url = "https://old-releases.ubuntu.com/ubuntu/pool/main/l/linux/" | ||
|
||
response = requests.get(url=ubuntu_kernel_header_url) | ||
page_info = str(response.content) | ||
|
||
all_versions = find_all_childs(version_list, page_info) | ||
for each in all_versions: | ||
download(ubuntu_kernel_header_url+each, each) |
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,34 @@ | ||
#!/usr/bin/python | ||
|
||
# python 2.7.3 only | ||
|
||
import requests | ||
import re | ||
import os | ||
|
||
version_list = [ | ||
r"3.16.0", | ||
r"3.19.0", | ||
r"4.2.0" | ||
] | ||
|
||
|
||
def find_all_childs(version_list, data): | ||
pkgs = [each[0] for each in re.findall( | ||
r'<a href="(linux-headers-(' + '|'.join(version_list) + ').*_(all|amd64).deb)">linux-headers', data) | ||
] | ||
return pkgs | ||
|
||
|
||
def download(url, filename): | ||
os.system("wget -q --no-check-certificate "+url) | ||
|
||
|
||
ubuntu_kernel_header_url = "https://old-releases.ubuntu.com/ubuntu/pool/main/l/linux/" | ||
|
||
response = requests.get(url=ubuntu_kernel_header_url, verify=False) | ||
page_info = str(response.content) | ||
|
||
all_versions = find_all_childs(version_list, page_info) | ||
for each in all_versions: | ||
download(ubuntu_kernel_header_url+each, each) |
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 @@ | ||
#!/usr/bin/python | ||
|
||
# python 2.7.3 only | ||
|
||
import requests | ||
import re | ||
import os | ||
|
||
version_list = [ | ||
r"4.10.0" | ||
r"4.8.0" | ||
r"4.13.0" | ||
r"4.18.0" | ||
] | ||
|
||
|
||
def find_all_childs(version_list, data): | ||
pkgs = [each[0] for each in re.findall( | ||
r'<a href="(linux-headers-(' + '|'.join(version_list) + ').*_(all|amd64).deb)">linux-headers', data) | ||
] | ||
return pkgs | ||
|
||
|
||
def download(url, filename): | ||
os.system("wget -q --no-check-certificate "+url) | ||
|
||
|
||
ubuntu_kernel_header_url = "https://old-releases.ubuntu.com/ubuntu/pool/main/l/linux/" | ||
|
||
response = requests.get(url=ubuntu_kernel_header_url, verify=False) | ||
page_info = str(response.content) | ||
|
||
all_versions = find_all_childs(version_list, page_info) | ||
for each in all_versions: | ||
download(ubuntu_kernel_header_url+each, each) |
Oops, something went wrong.