Skip to content

Instantly share code, notes, and snippets.

# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/Makefile b/Makefile
index 06446dd88..44db95b84 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,12 @@ ifndef NOBANNER
endif
go install $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" ./go/...
+build_debug:
+ifndef NOBANNER
diff --git a/Makefile b/Makefile
index 06446dd88..44db95b84 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,12 @@ ifndef NOBANNER
endif
go install $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" ./go/...
+build_debug:
+ifndef NOBANNER
diff --git a/Makefile b/Makefile
index 06446dd88..44db95b84 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,12 @@ ifndef NOBANNER
endif
go install $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" ./go/...
+build_debug:
+ifndef NOBANNER
diff --git a/Makefile b/Makefile
index 06446dd88..44db95b84 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,12 @@ ifndef NOBANNER
endif
go install $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" ./go/...
+build_debug:
+ifndef NOBANNER
#!/bin/bash
# This script initializes zookeeper, mysql, vttablet, and vtgate
# There are 3 mysql instances that are setup: an unsharded shops_index table that will back a lookup vindex
# for the sharded shop_data table. The shop_data table is sharded across two mysql shards.
cd $VTROOT/src/vitess.io/vitess/examples/local
./zk-up.sh
./vtctld-up.sh
vitess@localhost:/vt/src/vitess.io/vitess$ /vitess-scripts/setup.sh
enter zk2 env
Starting zk servers...
Waiting for zk servers to be ready...
Started zk servers.
ERROR: logging before flag.Parse: E0118 21:37:04.540226 146 syslogger.go:122] can't connect to syslog
W0118 21:37:04.563246 146 vtctl.go:80] cannot connect to syslog: Unix syslog delivery error
Configured zk servers.
enter zk2 env
Starting vtctld...
FROM vitess/bootstrap:percona
# Re-copy sources from working tree
USER root
# COPY . /vt/src/vitess.io/vitess
# # Fix permissions
# RUN chown -R vitess:vitess /vt
# USER vitess
vitess@localhost:/vt/src/vitess.io/vitess$ /vitess-scripts/init.sh
enter zk2 env
Starting zk servers...
Waiting for zk servers to be ready...
Started zk servers.
ERROR: logging before flag.Parse: E0122 18:01:38.102421 142 syslogger.go:122] can't connect to syslog
W0122 18:01:38.277900 142 vtctl.go:80] cannot connect to syslog: Unix syslog delivery error
Configured zk servers.
enter zk2 env
Starting vtctld...
vitess@localhost:/vt/src/vitess.io/vitess$ /vitess-scripts/init.sh
enter zk2 env
Starting zk servers...
Waiting for zk servers to be ready...
Started zk servers.
ERROR: logging before flag.Parse: E0122 19:58:44.471464 144 syslogger.go:122] can't connect to syslog
W0122 19:58:44.576227 144 vtctl.go:80] cannot connect to syslog: Unix syslog delivery error
Configured zk servers.
enter zk2 env
Starting vtctld...