Skip to content

Instantly share code, notes, and snippets.

@bucinko
bucinko / Dockerfile
Last active August 1, 2019 09:21
Dockerfile for terraform&&awscli
# Pull base image.
FROM ubuntu:latest
RUN \
# Update
apt-get update -y && \
# Install Unzip
apt-get install unzip -y && \
# need wget
apt-get install wget -y && \
docker run -p 3306:3306 --name mysql2 -e MYSQL_ROOT_PASSWORD=test -e MYSQL_ROOT_HOST=% -d mysql/mysql-server:latest
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes"
},
"masterProfile": {
"count": 1,
"dnsPrefix": "",
"vmSize": "Standard_D2_v2"
@bucinko
bucinko / AKS.MD
Last active November 12, 2022 12:28
AKS

Prerequisties for deployment AKS

  • service principal
  • resource groupname
  • subnet id of subnet where will be AKS

CREATE SERVICE PRINCIPAL

command:

@bucinko
bucinko / port-check.sh
Last active November 12, 2022 12:29 — forked from stojg/port-check.sh
port-check.sh - small script to check if TCP ports are opened through firewalls etc.
#!/bin/bash
GRE='\033[1;32m'
RED='\033[1;31m'
NC='\033[0m' # No Color
function checkport {
if nc -zv -w10 $1 $2 <<< '' &> /dev/null
then