Skip to content

Commit

Permalink
ci: update failed actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kulukami committed May 14, 2024
1 parent 1369ac0 commit 7d4102c
Show file tree
Hide file tree
Showing 60 changed files with 346 additions and 133 deletions.
4 changes: 2 additions & 2 deletions driver/build_script/aarch64/batch_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ $FLAG_SIZE -ne 0 ]; then
echo "$CC --version =>"
$CC --version
BATCH=true KVERSION=$KV make -C ./LKM -j all | tee /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.log || true
sha256sum ./LKM/${KO_NAME}.ko | awk '{print $1}' > /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.sign || true
sha256sum ./LKM/${KO_NAME}.ko | awk '{print $1}' | tee /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.sign || true

if [ -s /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.sign ]; then
# The file is not-empty.
Expand All @@ -43,7 +43,7 @@ else
echo "Processing $KV file..."
KVERSION=$KV make -C ./LKM clean || true
BATCH=true KVERSION=$KV make -C ./LKM -j all | tee /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.log || true
sha256sum ./LKM/${KO_NAME}.ko | awk '{print $1}' > /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.sign || true
sha256sum ./LKM/${KO_NAME}.ko | awk '{print $1}' | tee /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.sign || true

if [ -s /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.sign ]; then
# The file is not-empty.
Expand Down
40 changes: 13 additions & 27 deletions driver/build_script/aarch64/batch_compile_el8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,24 @@ mkdir -p /ko_output
BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}')
KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}')

echo "BUILD_VERSION=" $BUILD_VERSION

for each_tag in `yum --showduplicates list kernel-devel --enablerepo=ol8.* | grep kernel-devel | awk -c '{print $2}'`
do
yum remove -y kernel-devel kernel-tools kernel-tools-libs &> /dev/null
yum install -y --enablerepo=C7.{3.4,5,6,7,8,9}.* kernel-devel-$each_tag.aarch64 kernel-tools-$each_tag.aarch64 kernel-tools-libs-$each_tag.aarch64 &> /dev/null

KV=$each_tag.aarch64

disableGcc8
if [[ $each_tag == 4.18* ]]; then
enableGcc8
fi

KVERSION=$KV make -C ./LKM clean || true
if [ -z $CC ];then
export CC=gcc
fi
echo "$CC --version =>"
echo "this is centos"
for f in /usr/src/kernels/*; do
set -e
set -o xtrace
KV="$(basename -- $f)"
echo "Processing $KV file..."
$CC --version
KVERSION=$KV make -C ./LKM clean || true
BATCH=true KVERSION=$KV make -C ./LKM -j all | tee /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.log || true
sha256sum ./LKM/${KO_NAME}.ko | awk '{print $1}' > /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.sign || true

if [ -s /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.sign ]; then
# The file is not-empty.
echo ok > /dev/null
# The file is not-empty.
echo ok > /dev/null
else
# The file is empty.
rm -f /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.sign
# The file is empty.
rm -f /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.sign
fi

mv ./LKM/${KO_NAME}.ko /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.ko || true
mv ./LKM/${KO_NAME}.ko /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_arm64.ko || true
KVERSION=$KV make -C ./LKM clean || true

done
done
3 changes: 1 addition & 2 deletions driver/build_script/aarch64/batch_compile_ol8_uek.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ enableGcc11(){
enableGcc11

echo "this is centos"
for f in /usr/src/kernels/*
do
for f in /usr/src/kernels/*; do
set -e
set -o xtrace
KV="$(basename -- $f)"
Expand Down
21 changes: 13 additions & 8 deletions driver/build_script/x86_64/batch_compile_ol8_uek.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
set -e
set -o xtrace

rm -rf /ko_output || true
mkdir -p /ko_output
BUILD_VERSION=$(cat LKM/include/kprobe.h | grep SMITH_VERSION | awk -F '"' '{print $2}')
BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}')
KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}')


Expand All @@ -13,12 +16,12 @@ enableGcc11(){

enableGcc11

echo "this is centos"
for f in /usr/src/kernels/*
do
set -e
set -o xtrace
KV="$(basename -- $f)"

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 || continue;
rpm --force -iv /root/headers/kernel-uek-devel-$eachversion.x86_64.rpm || true
KV=$eachversion.x86_64
echo "Processing $KV file..."
$CC --version
KVERSION=$KV make -C ./LKM clean || true
Expand All @@ -34,4 +37,6 @@ do
fi
mv ./LKM/${KO_NAME}.ko /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_amd64.ko || true
KVERSION=$KV make -C ./LKM clean || true
done
rpm -ev kernel-uek-devel-$eachversion.x86_64 > /dev/null || true
rm -f /root/headers/*.rpm
done;
37 changes: 37 additions & 0 deletions driver/build_script/x86_64/batch_compile_ol9_uek.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
rm -rf /ko_output || true
mkdir -p /ko_output
BUILD_VERSION=$(cat LKM/src/init.c | grep MODULE_VERSION | awk -F '"' '{print $2}')
KO_NAME=$(grep "MODULE_NAME" ./LKM/Makefile | grep -m 1 ":=" | awk '{print $3}')


enableGcc13(){
export CC=/opt/rh/gcc-toolset-13/root/usr/bin/gcc
export CPP=/opt/rh/gcc-toolset-13/root/usr/bin/cpp
export CXX=/opt/rh/gcc-toolset-13/root/usr/bin/c++
}

enableGcc13

echo "this is centos"
for f in /usr/src/kernels/*
do
set -e
set -o xtrace
KV="$(basename -- $f)"
echo "Processing $KV file..."
$CC --version
KVERSION=$KV make -C ./LKM clean || true
BATCH=true KVERSION=$KV make -C ./LKM -j all | tee /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_amd64.log || true
sha256sum ./LKM/${KO_NAME}.ko | awk '{print $1}' > /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_amd64.sign || true

if [ -s /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_amd64.sign ]; then
# The file is not-empty.
echo ok > /dev/null
else
# The file is empty.
rm -f /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_amd64.sign
fi
mv ./LKM/${KO_NAME}.ko /ko_output/${KO_NAME}_${BUILD_VERSION}_${KV}_amd64.ko || true
KVERSION=$KV make -C ./LKM clean || true
done
14 changes: 9 additions & 5 deletions driver/dockerfiles.aarch64/Dockerfile.rhel8
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
FROM arm64v8/oraclelinux:8 AS rhel8
FROM arm64v8/oraclelinux:8 AS ol8_uek


RUN dnf install -y wget perl gcc make tree elfutils-libelf-devel yumdownloader gnutls-utils pciutils-libs;
RUN dnf install -y wget perl gcc make tree elfutils-libelf-devel gnutls-utils pciutils-libs;

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 dnf install -y centos-release-scl
RUN dnf install -y devtoolset-8

RUN rm -rf /root/headers || true
RUN mkdir /root/headers

RUN for eachversion in `dnf --showduplicates list kernel-devel | grep kernel-devel.aarch64 | awk '{print $2}'` ; do dnf download --downloaddir=/root/headers kernel-devel-$eachversion.aarch64 || true ; done;

ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/aarch64/batch_compile_el7.sh

RUN scl enable gcc-toolset-11 "bash ./build_script/aarch64/batch_compile_el8.sh"
3 changes: 3 additions & 0 deletions driver/dockerfiles.x86_64/Dockerfile.aliyun_linux2
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh

FROM kulukami/aliyun_linux2:latest
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
5 changes: 5 additions & 0 deletions driver/dockerfiles.x86_64/Dockerfile.aliyun_linux3
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ RUN rpm --force -i /root/headers/*.rpm || true
ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN dnf remove -y kernel-devel || true


FROM kulukami/aliyun_linux3:latest
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
8 changes: 5 additions & 3 deletions driver/dockerfiles.x86_64/Dockerfile.almalinux8
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ RUN cd /root/headers; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux-vault/8.5/BaseOS/x86_64/os/Packages/'; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux-vault/8.6/BaseOS/x86_64/os/Packages/'; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux-vault/8.7/BaseOS/x86_64/os/Packages/'; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux-vault/8.8/BaseOS/x86_64/os/Packages/'; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux/8.7/BaseOS/x86_64/os/Packages/'; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux/8.8/BaseOS/x86_64/os/Packages/';
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux-vault/8.8/BaseOS/x86_64/os/Packages/';



Expand All @@ -25,3 +23,7 @@ ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN rm -rf /root/headers/*.rpm

FROM almalinux:8
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
10 changes: 8 additions & 2 deletions driver/dockerfiles.x86_64/Dockerfile.almalinux9
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ WORKDIR /root/headers
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux-vault/9.0/AppStream/x86_64/os/Packages/' || true;
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux-vault/9.1/AppStream/x86_64/os/Packages/' || true;
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux-vault/9.2-beta/AppStream/x86_64/os/Packages/' || true;
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux-vault/9.3-beta/AppStream/x86_64/os/Packages/' || true;
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux-vault/9.4-beta/AppStream/x86_64/os/Packages/' || true;


RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux/9/AppStream/x86_64/os/Packages/' || true ;
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux/9.1/AppStream/x86_64/os/Packages/' || true ;
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux/9.2/AppStream/x86_64/os/Packages/' || true ;
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux/9.3/AppStream/x86_64/os/Packages/' || true ;
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/almalinux/9.4/AppStream/x86_64/os/Packages/' || true ;
RUN rm -f /root/headers/kernel-devel-matched*

RUN rpm --force -i /root/headers/*.rpm || true
Expand All @@ -25,3 +28,6 @@ WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN rm -rf /root/headers/*.rpm

FROM almalinux/9-base
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
6 changes: 5 additions & 1 deletion driver/dockerfiles.x86_64/Dockerfile.amazonlinux1
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ RUN rm -f /root/kernel-devel-*amzn1.x86_64.rpm

ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN bash ./build_script/x86_64/batch_compile.sh

FROM amazonlinux:1
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
6 changes: 5 additions & 1 deletion driver/dockerfiles.x86_64/Dockerfile.amazonlinux2
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ RUN rm -f /root/kernel-devel-*amzn2.x86_64.rpm

ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN bash ./build_script/x86_64/batch_compile.sh

FROM amazonlinux:2
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
6 changes: 5 additions & 1 deletion driver/dockerfiles.x86_64/Dockerfile.amazonlinux2_510
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ RUN rm -f /root/kernel-devel-*amzn2.x86_64.rpm

ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN bash ./build_script/x86_64/batch_compile.sh

FROM amazonlinux:2
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
6 changes: 5 additions & 1 deletion driver/dockerfiles.x86_64/Dockerfile.amazonlinux2_54
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ RUN rm -f /root/kernel-devel-*amzn2.x86_64.rpm

ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN bash ./build_script/x86_64/batch_compile.sh

FROM amazonlinux:2
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
8 changes: 7 additions & 1 deletion driver/dockerfiles.x86_64/Dockerfile.anolis8
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ RUN cd /root/headers; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.openanolis.cn/anolis/8.6/BaseOS/x86_64/os/Packages/'; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.openanolis.cn/anolis/8.6/Plus/x86_64/os/Packages/'; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.openanolis.cn/anolis/8.8/BaseOS/x86_64/os/Packages/'; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.openanolis.cn/anolis/8.8/Plus/x86_64/os/Packages/';
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.openanolis.cn/anolis/8.8/Plus/x86_64/os/Packages/'; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.openanolis.cn/anolis/8.9/BaseOS/x86_64/os/Packages/'; \
wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.openanolis.cn/anolis/8.9/Plus/x86_64/os/Packages/';

RUN rpm --force -i /root/headers/*.rpm || true

ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN rm -rf /root/headers/*.rpm

FROM almalinux:8
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
9 changes: 5 additions & 4 deletions driver/dockerfiles.x86_64/Dockerfile.debian10
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
FROM debian:buster AS buster

RUN echo "deb http://deb.debian.org/debian buster-backports main " >> /etc/apt/sources.list

RUN apt update
RUN apt install -y apt-utils apt-transport-https ca-certificates debian-archive-keyring
RUN apt install -y wget curl tree git gcc build-essential libelf-dev;
RUN apt install -y linux-kbuild*;
RUN apt install -y linux-headers*amd64
RUN apt -t buster-backports install -y linux-headers*amd64
RUN wget https://mirrors.bytedance.com/debian/pool/buster-main/l/linux-4.19.117.bsk.business.1-amd64/linux-headers-4.19.117.bsk.business.1-amd64_4.19.117.bsk.business.1_amd64.deb && dpkg -i linux-headers-4.19.117.bsk.business.1-amd64_4.19.117.bsk.business.1_amd64.deb
RUN wget https://mirrors.bytedance.com/debian/pool/buster-main/l/linux-5.4.56.bsk.business.1-amd64/linux-headers-5.4.56.bsk.business.1-amd64_5.4.56.bsk.business.1-58-g64b2babf3f47_amd64.deb && dpkg -i linux-headers-5.4.56.bsk.business.1-amd64_5.4.56.bsk.business.1-58-g64b2babf3f47_amd64.deb
RUN wget https://mirrors.bytedance.com/debian/pool/buster-main/l/linux-4.19.36.bsk.business.1-amd64/linux-headers-4.19.36.bsk.business.1-amd64_4.19.36.bsk.business.1-214-gfa3405186ab1_amd64.deb && dpkg -i linux-headers-4.19.36.bsk.business.1-amd64_4.19.36.bsk.business.1-214-gfa3405186ab1_amd64.deb
Expand All @@ -16,4 +13,8 @@ RUN apt clean all

ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN bash ./build_script/x86_64/batch_compile.sh

FROM debian:buster
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
6 changes: 5 additions & 1 deletion driver/dockerfiles.x86_64/Dockerfile.debian11
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ RUN apt clean all

ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN bash ./build_script/x86_64/batch_compile.sh

FROM debian:bullseye
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
18 changes: 11 additions & 7 deletions driver/dockerfiles.x86_64/Dockerfile.debian8
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ RUN apt install --yes --force-yes gcc build-essential libelf-dev;
RUN apt install --yes --force-yes linux-compiler-gcc* || true
RUN apt install --yes --force-yes linux-kbuild*;
RUN apt install --yes --force-yes \
linux-headers-4.9.0-0.bpo.12-all-amd64 \
linux-headers-4.9.0-0.bpo.11-all-amd64 \
linux-headers-4.9-amd64 \
linux-headers-3.16.0-6-all-amd64 \
linux-headers-3.16.0-11-amd64 \
linux-headers-amd64 || true
linux-headers-4.9.0-0.bpo.12-all-amd64 \
linux-headers-4.9.0-0.bpo.11-all-amd64 \
linux-headers-4.9-amd64 \
linux-headers-3.16.0-6-all-amd64 \
linux-headers-3.16.0-11-amd64 \
linux-headers-amd64 || true



ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN bash ./build_script/x86_64/batch_compile.sh

FROM debian:jessie
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
6 changes: 5 additions & 1 deletion driver/dockerfiles.x86_64/Dockerfile.debian9
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ RUN apt clean all

ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN bash ./build_script/x86_64/batch_compile.sh

FROM debian:stretch
COPY --from=0 /ko_output /ko_output
CMD [ "sh", "-c", "echo start" ]
Loading

0 comments on commit 7d4102c

Please sign in to comment.