This file contains hidden or 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
| # Proxy VM | |
| resource "google_compute_instance" "reverse-proxy" { | |
| project = var.project # app-ref project | |
| name = "reverse-proxy" | |
| machine_type = "e2-medium" | |
| zone = "asia-southeast1-b" | |
| boot_disk { | |
| initialize_params { | |
| image = "debian-cloud/debian-11" |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| loc, _ := time.LoadLocation("Europe/Kiev") | |
| now := time.Now().In(loc) |
This file contains hidden or 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
| FROM python:3.9-slim-buster | |
| LABEL maintainer="Yevhen Lebid <yevhen.lebid@loopme.com>" | |
| # Never prompts the user for choices on installation/configuration of packages | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| TERM=linux | |
| # Airflow | |
| ARG AIRFLOW_VERSION=2.1.2 |
This file contains hidden or 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 airflow | |
| from airflow.models import DAG | |
| from airflow.providers.cncf.kubernetes.operators.kubernetes_pod import KubernetesPodOperator | |
| from kubernetes.client import models as k8s | |
| default_args = { | |
| 'owner': 'ealebed', | |
| 'depends_on_past': False, | |
| 'start_date': airflow.utils.dates.days_ago(0), |
This file contains hidden or 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
| package com.loopme.db; | |
| import org.flywaydb.core.Flyway; | |
| import org.junit.jupiter.api.Test; | |
| import org.testcontainers.containers.PostgreSQLContainer; | |
| import org.testcontainers.junit.jupiter.Container; | |
| import org.testcontainers.junit.jupiter.Testcontainers; | |
| @Testcontainers | |
| public class FlywayMigrationTest { |
This file contains hidden or 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
| pipeline { | |
| agent any | |
| stages { | |
| stage("Prepare environment") { | |
| steps { | |
| script { | |
| sh "docker-compose -f docker-compose.yaml down --remove-orphans --volumes" | |
| } | |
| } |
This file contains hidden or 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 java.nio.file.Paths | |
| plugins { | |
| id 'checkstyle' | |
| } | |
| checkstyleMain { | |
| source = 'src/main/java' | |
| } | |
| checkstyleTest { |
This file contains hidden or 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
| FROM python:3.7-slim-stretch | |
| LABEL maintainer="Yevhen Lebid <yevhen.lebid@loopme.com>" | |
| # Never prompts the user for choices on installation/configuration of packages | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| TERM=linux | |
| # Airflow | |
| ARG AIRFLOW_VERSION=1.10.7 |
This file contains hidden or 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
| @Grab(group='org.yaml', module='snakeyaml', version='1.18') | |
| import jenkins.model.* | |
| import hudson.model.* | |
| import hudson.triggers.* | |
| import hudson.tasks.LogRotator | |
| import hudson.plugins.git.* | |
| import hudson.plugins.git.extensions.* | |
| import hudson.plugins.git.extensions.impl.* | |
| import org.jenkinsci.plugins.workflow.job.WorkflowJob | |
| import org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition |