Permalink
Browse files

run container privileged and build src

  • Loading branch information...
mwiget committed Mar 24, 2018
1 parent d806fe0 commit b7f6ab26880673fd109b30179e024e531b12078f
Showing with 2 additions and 3 deletions.
  1. +1 −1 Dockerfile
  2. +1 −2 src/scripts/dock.sh
@@ -1,7 +1,7 @@
FROM alpine:3.7 AS build
RUN apk add --no-cache libgcc alpine-sdk gcc libpcap-dev linux-headers findutils
COPY . /snabb
RUN cd /snabb && make clean && make -j
RUN cd /snabb && make clean && make -j && cd src && make -j
FROM alpine:3.7
RUN apk add --no-cache libgcc
@@ -7,7 +7,7 @@ if [ "$name" != "dock.sh" ]; then
if [ -z "$img" ]; then
echo "docker image $name doesn't exist"
fi
exec docker run -ti --rm -v ${PWD}:/u --workdir /u $name $@
exec docker run -ti --rm --privileged -v ${PWD}:/u --workdir /u $name $@
else
@@ -16,7 +16,6 @@ else
# Snabb Docker environment
docker run --rm --privileged -i -v $(dirname $PWD):/snabb $DOCKERFLAGS \
--workdir /snabb \
-e SNABB_PCI0=$SNABB_PCI0 \
-e SNABB_PCI1=$SNABB_PCI1 \
-e SNABB_PCI_INTEL0=$SNABB_PCI_INTEL0 \

0 comments on commit b7f6ab2

Please sign in to comment.