Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
run container privileged and build src
  • Loading branch information
mwiget committed Mar 24, 2018
1 parent d806fe0 commit b7f6ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/scripts/dock.sh
Expand Up @@ -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

Expand All @@ -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 \
Expand Down

0 comments on commit b7f6ab2

Please sign in to comment.