mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-11-01 18:57:48 +00:00
Added docker build&push to the CI.
* update some git submodules Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
25
.github/workflows/build-docker.yml
vendored
Normal file
25
.github/workflows/build-docker.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: Docker Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: utoni/ndpid:latest
|
||||||
15
Dockerfile
15
Dockerfile
@@ -1,15 +1,10 @@
|
|||||||
FROM ubuntu:22.10 as builder
|
FROM ubuntu:22.10 as builder
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN apt-get -y update && apt-get install -y git cmake pkg-config libpcap-dev autoconf libtool
|
RUN env DEBIAN_FRONTEND=noninteractive apt-get -y update && apt-get install -y wget unzip git make cmake pkg-config libpcap-dev autoconf libtool
|
||||||
|
|
||||||
RUN git clone https://github.com/utoni/nDPId.git
|
RUN git clone https://github.com/utoni/nDPId.git
|
||||||
#for dev, uncomment below
|
RUN cd nDPId && mkdir -p build && cd build && cmake .. -DBUILD_NDPI=ON && make
|
||||||
#RUN mkdir /root/nDPId
|
|
||||||
#COPY . /root/nDPId/
|
|
||||||
|
|
||||||
RUN cd nDPId && mkdir build && cd build && cmake .. -DBUILD_NDPI=ON && make
|
|
||||||
|
|
||||||
|
|
||||||
FROM ubuntu:22.10
|
FROM ubuntu:22.10
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
@@ -17,9 +12,3 @@ RUN apt-get -y update && apt-get -y install libpcap-dev
|
|||||||
|
|
||||||
COPY --from=builder /root/nDPId/libnDPI/ /root/
|
COPY --from=builder /root/nDPId/libnDPI/ /root/
|
||||||
COPY --from=builder /root/nDPId/build/nDPIsrvd /root/nDPId/build/nDPId /root/
|
COPY --from=builder /root/nDPId/build/nDPIsrvd /root/nDPId/build/nDPId /root/
|
||||||
|
|
||||||
#RUN echo "#!/bin/bash\n" \
|
|
||||||
# "/root/nDPIsrvd -d\n"\
|
|
||||||
# "/root/nDPId \n" > run.sh && cat run.sh && chmod +x run.sh
|
|
||||||
|
|
||||||
#ENTRYPOINT ["/root/run.sh"]
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[](https://github.com/utoni/nDPId/actions/workflows/build.yml)
|
[](https://github.com/utoni/nDPId/actions/workflows/build.yml)
|
||||||
[](https://gitlab.com/utoni/nDPId/-/pipelines)
|
[](https://gitlab.com/utoni/nDPId/-/pipelines)
|
||||||
[](https://app.circleci.com/pipelines/github/utoni/nDPId)
|
[](https://app.circleci.com/pipelines/github/utoni/nDPId)
|
||||||
|

|
||||||
|
|
||||||
# References
|
# References
|
||||||
|
|
||||||
|
|||||||
Submodule examples/cxx-graph updated: 3491eafcd1...68eb1b105d
Submodule examples/js-rt-analyzer-frontend updated: 48860b23c9...6806ef7d13
Reference in New Issue
Block a user