Skip to content

Instantly share code, notes, and snippets.

View AlexRogalskiy's full-sized avatar
🛰️
Work on stuff that matters

Alexander AlexRogalskiy

🛰️
Work on stuff that matters
View GitHub Profile
name: Java CI with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
@AlexRogalskiy
AlexRogalskiy / .vimrc
Last active May 22, 2024 10:49
Soft tools
"Gotta be first
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
# Setup Cluster
for i in 1 2 3; do
docker-machine create -d virtualbox swarm-$i
done
eval $(docker-machine env swarm-1)
docker swarm init --advertise-addr $(docker-machine ip swarm-1)
# Source: https://gist.github.com/5b3cd6f336e2d9e6682c1a1792c860d0
####################
# Creating Cluster #
####################
# Docker for Desktop with Istio: https://gist.github.com/d9b92a8e03c2403624fcef25f3fcd4e5
# minikube with Istio: https://gist.github.com/01f562077f31750d24c8b7ef5b3ae4d0
# GKE with Istio: https://gist.github.com/80c379849b96f4ae5a2ccd30d843f205
# EKS with Istio: https://gist.github.com/957971fe8664de180ecc466a8da6017d
apiVersion: apps/v1
kind: Deployment
metadata:
name: theater-service-deployment
labels:
app: theater-service
spec:
replicas: 1
selector:
matchLabels:
apiVersion: apps/v1
kind: Deployment
metadata:
name: theater-service-deployment
labels:
app: theater-service
spec:
replicas: 1
selector:
matchLabels:
#!/bin/bash
# Set an admin login and password for your database
export adminlogin=<admin username>
export password=<admin password>
# The logical server name has to be unique in the system
export servername=<SQL server name>
# The ip address range that you want to allow to access your DB
@Slf4j
public class CustomerSteps extends CucumberBootstrap {
@Autowired
private CustomerRepository customerRepository;
//this method executes after every scenario
@After
public void cleanUp() {
log.info(">>> cleaning up after scenario!");
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${cucumber.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-spring</artifactId>
<version>${cucumber.version}</version>
# Source: https://gist.github.com/6039be2497217a555fba5eafea076ba3
#########################################################################
# Werf: Glue Together Git, Docker, Helm, Kubernetes For CI/CD Pipelines #
# https://youtu.be/WM06S_ltcVs #
#########################################################################
# Additional Info:
# - werf: https://werf.io
# - GitHub CLI - How to manage repositories more efficiently: https://youtu.be/BII6ZY2Rnlc