File tree Expand file tree Collapse file tree 6 files changed +9
-6
lines changed
doc/content/getting-started Expand file tree Collapse file tree 6 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ script:
3535 - export BUILD_TAG=$(date +%Y-%m-%d).${TRAVIS_JOB_NUMBER}
3636 - export PATH=${GOPATH}/bin:${PATH}
3737
38- - make WITH_DPDK=true WITH_EBPF=true install
39- - make static
38+ - make WITH_EBPF=true install
39+ - make WITH_EBPF=true static
4040
4141 - echo "--- DOCKER IMAGE ---"
4242 - make docker-image DOCKER_IMAGE=${DOCKER_IMAGE} DOCKER_TAG=${BUILD_TAG}
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ install: govendor genlocalfiles dpdk.build contribs .compile
6666build : govendor genlocalfiles dpdk.build contribs
6767 ${GOPATH} /bin/govendor build -ldflags=" -X github.com/skydive-project/skydive/version.Version=${VERSION} " ${GOFLAGS} -tags=" ${BUILDTAGS} ${GOTAGS} " ${VERBOSE_FLAGS} +local
6868
69- static : # govendor genlocalfiles
69+ static : govendor genlocalfiles
7070 rm -f $$ GOPATH/bin/skydive
7171 test -f /etc/redhat-release && govendor install -tags netgo --ldflags ' -extldflags "-static /usr/lib64/libz.a /usr/lib64/liblzma.a /usr/lib64/libm.a"' ${VERBOSE_FLAGS} -tags " ${BUILDTAGS} ${GOTAGS} " +local || true
7272 test -f /etc/debian_version && govendor install -tags netgo --ldflags ' -extldflags "-static /usr/lib/x86_64-linux-gnu/libz.a /usr/lib/x86_64-linux-gnu/liblzma.a /usr/lib/x86_64-linux-gnu/libicuuc.a /usr/lib/x86_64-linux-gnu/libicudata.a /usr/lib/x86_64-linux-gnu/libxml2.a /usr/lib/x86_64-linux-gnu/libc.a /usr/lib/x86_64-linux-gnu/libdl.a /usr/lib/x86_64-linux-gnu/libpthread.a /usr/lib/x86_64-linux-gnu/libc++.a /usr/lib/x86_64-linux-gnu/libm.a"' ${VERBOSE_FLAGS} -tags " ${BUILDTAGS} ${GOTAGS} " +local || true
@@ -208,6 +208,8 @@ dist:
208208 mkdir -p ` dirname $$ skydivedir` ; \
209209 git clone . $$ skydivedir; \
210210 pushd $$ skydivedir; \
211+ mkdir -p $$ godir/.cache; \
212+ [ -d $$ GOPATH/.cache/govendor ] && ln -s $$ GOPATH/.cache/govendor $$ godir/.cache/govendor; \
211213 export GOPATH=$$ godir; \
212214 cd $$ skydivedir; \
213215 echo " go take a coffee, govendor sync takes time ..." ; \
Original file line number Diff line number Diff line change 1- FROM scratch
1+ FROM gcr.io/distroless/base
22COPY skydive /usr/bin/skydive
33COPY skydive.yml /etc/skydive.yml
44ENTRYPOINT ["/usr/bin/skydive" , "--conf" , "/etc/skydive.yml" ]
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ URL: https://%{import_path}
3232Source0: https://%{import_path }/releases/download/v%{source }/skydive-%{source }.tar.gz
3333BuildRequires: systemd
3434BuildRequires: libpcap-devel libxml2-devel
35+ BuildRequires: llvm clang kernel-headers
3536
3637# This is used by the specfile-update-bundles script to automatically
3738# generate the list of the Go libraries bundled into the Skydive binaries
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Skydive relies on two main components:
1313
1414## Dependencies
1515
16- * Go >= 1.6
16+ * Go >= 1.8
1717* Elasticsearch >= 2.0
1818* libpcap
1919* libxml2
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ dir="$(dirname "$0")"
3333cd ${GOPATH} /src/github.com/skydive-project/skydive
3434
3535echo " --- DOCKER IMAGE ---"
36- make docker-image DOCKER_IMAGE=${DOCKER_IMAGE} DOCKER_TAG=${DOCKER_TAG}
36+ make docker-image WITH_EBPF=true DOCKER_IMAGE=${DOCKER_IMAGE} DOCKER_TAG=${DOCKER_TAG}
3737sudo docker login -e " ${DOCKER_EMAIL} " -u " ${DOCKER_USERNAME} " -p " ${DOCKER_PASSWORD} "
3838sudo docker tag ${DOCKER_IMAGE} :${DOCKER_TAG} ${DOCKER_IMAGE} :latest
3939sudo docker push ${DOCKER_IMAGE} :${DOCKER_TAG}
You can’t perform that action at this time.
0 commit comments