- create a file: docker-elk/logstash/config/mylog.log
- change docker-compose to be:
logstash:
build:
context: logstash/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- ./logstash/config:/usr/share/logstash/config
# git download | |
# https://linode.com/docs/development/version-control/how-to-install-git-on-linux-mac-and-windows/ | |
# git config | |
git config --global user.name "avielb" | |
git config --global user.email "aviel33@gmail.com" | |
# from git bash | |
mkdir my-first-project | |
cd my-first-project |
pipeline { | |
agent any | |
stages { | |
stage("checkout"){ | |
steps{ | |
git "https://github.com/avielb/work-with-github.git" | |
} | |
} | |
stage("run something"){ | |
steps{ |
properties([parameters([string(defaultValue: 'default value', description: '', name: 'VAR1', trim: false)]), | |
pipelineTriggers([pollSCM('*/2 * * * *')])]) | |
pipeline { | |
agent any | |
stages { | |
stage("checkout"){ | |
steps{ | |
git "https://github.com/avielb/work-with-github.git" | |
} | |
} |
def square(number): | |
return number*number | |
def sum_list(list_to_sum): | |
sum = 0 | |
for number in list_to_sum: | |
sum = sum + number | |
return sum |
#!/bin/bash |
kubectl apply -f pod-empty-dir.yaml | |
kubectl create configmap game-config --from-file=configure-pod-container/configmap/ | |
kubectl describe configmap game-config | |
kubectl exec -it pod-env-var cat /app/game.properties | |
kubectl exec -it pod-env-var env | |
kubectl apply -f pv.yaml | |
kubectl apply -f pvc.yaml | |
kubectl apply -f pod-with-pvc.yaml | |
in minikube machine: echo “hello from the other side” > /data/pv0001/index.html |
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3306:3306 -d mysql:5.7 | |
SELECT * | |
FROM `1703`.users; | |
INSERT | |
INTO `1703`.users | |
VALUES ("Moshe","ben david", 50); | |
UPDATE `1703`.users |
docker pull nginx:1.15.12-alpine | |
docker run --name my-nginx -d -p 80:80 nginx:1.15.12-alpine | |
docker ps | |
go to localhost or 192.168.99.100 | |
################ | |
docker build -t my-first-image . | |
docker run --name my-frst-container my-first-image | |
################ | |
docker network create wordpress | |
docker container run --name mysql-container --rm --network wordpress -e MYSQL_ROOT_PASSWORD=wordpress -d mysql:5.7 |
import requests | |
myrequest = requests.get("https://free.currencyconverterapi.com/api/v6/convert?q=USD_ILS&compact=n&apiKey=72a1f59a5bf27c222c80") | |
from flask import Flask, redirect, request | |
app = Flask(__name__) |
logstash:
build:
context: logstash/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- ./logstash/config:/usr/share/logstash/config