forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix permissions, move the systemctl file next to the others. (istio#2586
) * Fix permissions, move the systemctl file next to the others. * Fix issues raised by review. Move the makefile content to deb directory. Add a Dockerfile and a target to test that deb installs. Additional tests in separate PRs. * Address review feedback * Rename target to be clear that we build the deb in docker, not build a docker image * Run fmt - lint errors * Fix fmt.sh-generated lint error * Format * Fix envoy binary * Update based on review * Revert 2 accidental changes, will go to different PR
- Loading branch information
1 parent
16e40d7
commit 205f762
Showing
89 changed files
with
294 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ SHELL := /bin/bash | |
VERSION ?= "0.5.0" | ||
|
||
# If GOPATH is not set by the env, set it to a sane value | ||
GOPATH ?= $(shell cd ../../..; pwd) | ||
GOPATH ?= $(shell cd ${ISTIO_GO}/../../..; pwd) | ||
export GOPATH | ||
|
||
# If GOPATH is made up of several paths, use the first one for our targets in this Makefile | ||
|
@@ -550,50 +550,8 @@ dist: dist-bin | |
|
||
include .circleci/Makefile | ||
|
||
.PHONY: docker.sidecar.deb sidecar.deb ${OUT}/istio-sidecar.deb | ||
|
||
# Make the deb image using the CI/CD image and docker. | ||
docker.sidecar.deb: | ||
(cd ${TOP}; docker run --rm -u $(shell id -u) -it \ | ||
-v ${GO_TOP}:${GO_TOP} \ | ||
-w ${PWD} \ | ||
-e USER=${USER} \ | ||
--entrypoint /usr/bin/make ${CI_HUB}/ci:${CI_VERSION} \ | ||
sidecar.deb ) | ||
|
||
# Create the 'sidecar' deb, including envoy and istio agents and configs. | ||
# This target uses a locally installed 'fpm' - use 'docker.sidecar.deb' to use | ||
# the builder image. | ||
# TODO: consistent layout, possibly /opt/istio-VER/... | ||
sidecar.deb: ${OUT}/istio-sidecar.deb | ||
|
||
ISTIO_SIDECAR_SRC=tools/deb/istio-start.sh \ | ||
tools/deb/istio-iptables.sh \ | ||
tools/deb/istio.service \ | ||
security/tools/deb/istio-auth-node-agent.service \ | ||
tools/deb/sidecar.env tools/deb/envoy.json | ||
|
||
# --iteration 1 adds a "-1" suffix to the version that didn't exist before | ||
${OUT}/istio-sidecar.deb: ${ISTIO_BIN}/envoy ${ISTIO_BIN}/pilot-agent ${ISTIO_BIN}/node_agent ${ISTIO_SIDECAR_SRC} | ||
mkdir -p ${OUT} | ||
fpm -s dir -t deb -n istio-sidecar -p ${OUT}/istio-sidecar.deb --version ${VERSION} -C ${GO_TOP} -f \ | ||
--url http://istio.io \ | ||
--license Apache \ | ||
--vendor istio.io \ | ||
--maintainer [email protected] \ | ||
--after-install tools/deb/postinst.sh \ | ||
--config-files /var/lib/istio/envoy/sidecar.env \ | ||
--config-files /var/lib/istio/envoy/envoy.json \ | ||
--description "Istio" \ | ||
src/istio.io/istio/tools/deb/istio-start.sh=/usr/local/bin/istio-start.sh \ | ||
src/istio.io/istio/tools/deb/istio-iptables.sh=/usr/local/bin/istio-iptables/sh \ | ||
src/istio.io/istio/tools/deb/istio.service=/lib/systemd/system/istio.service \ | ||
src/istio.io/istio/security/tools/deb/istio-auth-node-agent.service=/lib/systemd/system/istio-auth-node-agent.service \ | ||
bin/envoy=/usr/local/bin/envoy \ | ||
bin/pilot-agent=/usr/local/bin/pilot-agent \ | ||
bin/node_agent=/usr/local/istio/bin/node_agent \ | ||
src/istio.io/istio/tools/deb/sidecar.env=/var/lib/istio/envoy/sidecar.env \ | ||
src/istio.io/istio/tools/deb/envoy.json=/var/lib/istio/envoy/envoy.json | ||
# Building the debian file, docker.istio.deb and istio.deb | ||
include tools/deb/istio.mk | ||
|
||
#----------------------------------------------------------------------------- | ||
# Target: e2e tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
approvers: | ||
- sebastienvas | ||
- yutongz | ||
- costin | ||
- rshriram |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ import ( | |
"encoding/json" | ||
"fmt" | ||
"net/http" | ||
|
||
// TODO(nmittler): Remove this | ||
_ "github.com/golang/glog" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ package config | |
|
||
import ( | ||
"fmt" | ||
|
||
// TODO(nmittler): Remove this | ||
_ "github.com/golang/glog" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ import ( | |
"sort" | ||
"strings" | ||
"time" | ||
|
||
// TODO(nmittler): Remove this | ||
_ "github.com/golang/glog" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ package eureka | |
import ( | ||
"reflect" | ||
"time" | ||
|
||
// TODO(nmittler): Remove this | ||
_ "github.com/golang/glog" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ package eureka | |
|
||
import ( | ||
"fmt" | ||
|
||
// TODO(nmittler): Remove this | ||
_ "github.com/golang/glog" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.