Skip to content

Commit a440785

Browse files
authored
Merge pull request #655 from lebauce/bump-go-doc
rpm: add build dependencies for eBPF
2 parents ac3fc59 + 63be954 commit a440785

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ install: govendor genlocalfiles dpdk.build contribs .compile
6666
build: 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 ..."; \

contrib/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM scratch
1+
FROM gcr.io/distroless/base
22
COPY skydive /usr/bin/skydive
33
COPY skydive.yml /etc/skydive.yml
44
ENTRYPOINT ["/usr/bin/skydive", "--conf", "/etc/skydive.yml"]

contrib/packaging/rpm/skydive.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ URL: https://%{import_path}
3232
Source0: https://%{import_path}/releases/download/v%{source}/skydive-%{source}.tar.gz
3333
BuildRequires: systemd
3434
BuildRequires: 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

doc/content/getting-started/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

scripts/ci/create-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dir="$(dirname "$0")"
3333
cd ${GOPATH}/src/github.com/skydive-project/skydive
3434

3535
echo "--- 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}
3737
sudo docker login -e "${DOCKER_EMAIL}" -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}"
3838
sudo docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:latest
3939
sudo docker push ${DOCKER_IMAGE}:${DOCKER_TAG}

0 commit comments

Comments
 (0)