Collection of Linux tools to deal with network issues
Assuming that the following environment variables are set:
KAFKA_HOME
where Kafka is installed on local machine (e.g./opt/kafka
)ZK_HOSTS
identifies running zookeeper ensemble, e.g.ZK_HOSTS=192.168.0.99:2181
KAFKA_BROKERS
identifies running Kafka brokers, e.g.KAFKA_BROKERS=192.168.0.99:9092
Start Zookepper and Kafka servers
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
Collection of tips and tricks for Linux |
- Gradle
- Maven
- SBT
- Make
- CMake
- Bazel
Official cheatsheet: https://kubernetes.io/docs/reference/kubectl/cheatsheet/
Connect to new cluster
gcloud container clusters get-credentials my-cluster --zone us-central1-a --project corded-smithy-248316
Docker playground: https://labs.play-with-docker.com/
tag coud be enything, it should help to identify application and its version, e.g.
# Build image, can use multiple tags
docker build . -t ${tag1} -t ${tag2} ${buildArgs}
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
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
OlderNewer