Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
run container privileged and build src
- Loading branch information
Showing
with
2 additions
and
3 deletions.
-
+1
−1
Dockerfile
-
+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 \ |
|
|