Link to these links: https://git.io/vKSVZ
Module 1:
- Run jenkins from war file:
jenkins -jar jenkins.war - Run jenkins from docker:
docker run -d \
--restart unless-stopped \
--name jenkins \| #!/usr/bin/env bash | |
| set -e | |
| CONTEXT="$1" | |
| if [[ -z ${CONTEXT} ]]; then | |
| echo "Usage: $0 KUBE-CONTEXT" | |
| exit 1 | |
| fi |
| #!/bin/sh | |
| branch="$(git rev-parse --abbrev-ref HEAD)" | |
| # get computer name to append in Chime message | |
| username=$USER | |
| # a branch name where you want to prevent git push. In this case, it's "master" | |
| if [ "$branch" = "master" ]; then | |
| echo "You can't commit directly to '"${branch}"' branch" # webstorm or intellij will show this as popup |
| #------------------------------------------------------------------------------------------------------------- | |
| # Copyright (c) Microsoft Corporation. All rights reserved. | |
| # Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | |
| #------------------------------------------------------------------------------------------------------------- | |
| FROM python:3 | |
| # Avoid warnings by switching to noninteractive | |
| ENV DEBIAN_FRONTEND=noninteractive |
| Verifying my Blockstack ID is secured with the address 1NbURzVnD9piS4n8TGQ55USkrwberR2hgu https://explorer.blockstack.org/address/1NbURzVnD9piS4n8TGQ55USkrwberR2hgu |
Link to these links: https://git.io/vKSVZ
Module 1:
jenkins -jar jenkins.wardocker run -d \
--restart unless-stopped \
--name jenkins \| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
From: https://gist.github.com/CristinaSolana/1885435
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
Docker cheatsheet
| Command | Description |
|---|---|
| Ctrl-p + Ctrl-q | Disconnects from current interactive container |
| docker ps | Lists the current running containers |
| docker images | Lists available containers |
| docker stop | Stops the specified container |
| docker port | Lists the ports exposed on the specified container |
| docker network inspect | Displays the net information for the specified container |
Connecting from Windows: http://www.techrepublic.com/blog/the-enterprise-cloud/connect-to-amazon-ec2-with-a-private-key-using-putty-and-pageant/
Connecting from Linux: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
To install MySQL, run the following command from a terminal prompt:
sudo apt-get install mysql-server
| Producer | |
| Setup | |
| bin/kafka-topics.sh --zookeeper localhost:2181/kafka-local --create --topic test-rep-one --partitions 6 --replication-factor 1 | |
| bin/kafka-topics.sh --zookeeper localhost:2181/kafka-local --create --topic test-rep-two --partitions 6 --replication-factor 3 | |
| Single thread, no replication | |
| bin/kafka-run-class.sh org.apache.kafka.tools.ProducerPerformance --print-metrics --topic test-rep-one --num-records 6000000 --throughput 100000 --record-size 100 --producer-props bootstrap.servers=kafka_host:9092 buffer.memory=67108864 batch.size=8196 | |
| Single-thread, async 3x replication |