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
date | |
echo "Hello world 1" | |
date | |
echo "Hello world 2" | |
echo "Hello world 3" | |
echo "Hello world 4" |
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 datetime import datetime, timedelta | |
from airflow import DAG | |
from airflow.operators.bash import BashOperator | |
from airflow.providers.amazon.aws.operators.batch import AwsBatchOperator | |
from airflow.providers.amazon.aws.operators.s3_copy_object import S3CopyObjectOperator | |
from airflow.providers.amazon.aws.operators.s3_list import S3ListOperator | |
from airflow.operators.python_operator import PythonOperator | |
import logging | |
import json |
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 datetime import datetime, timedelta | |
from airflow import DAG | |
from airflow.operators.bash import BashOperator | |
from airflow.providers.amazon.aws.operators.batch import AwsBatchOperator | |
NUM_TASKS = 500 | |
default_args = { | |
'owner': 'airflow', |
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 datetime import datetime, timedelta | |
from airflow import DAG | |
from airflow.operators.bash import BashOperator | |
from airflow.providers.cncf.kubernetes.operators.kubernetes_pod import KubernetesPodOperator | |
NUM_TASKS = 500 | |
default_args = { | |
'owner': 'airflow', |
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 datetime import datetime, timedelta | |
from airflow import DAG | |
from airflow.operators.bash import BashOperator | |
NUM_TASKS = 500 | |
default_args = { | |
'owner': 'airflow', | |
'depends_on_past': False, |
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 airflow import DAG | |
from airflow.operators.python_operator import PythonOperator | |
from datetime import datetime | |
import mysql.connector | |
from sklearn.datasets import load_iris | |
from sklearn.model_selection import train_test_split | |
from sklearn.tree import DecisionTreeClassifier | |
import joblib | |
from datetime import timedelta | |
import os |
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('Clone') { | |
steps { | |
git branch: 'main', url: 'https://github.com/naturalett/hello-world.git' | |
} | |
} | |
} | |
post { |
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 jenkins/jenkins:2.387-jdk11 | |
# ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false" | |
RUN jenkins-plugin-cli --plugins \ | |
workflow-aggregator:596.v8c21c963d92d \ | |
git:5.0.2 \ | |
docker-workflow:563.vd5d2e5c4007f \ | |
docker-plugin:1.3.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
pipeline { | |
agent { | |
docker { | |
image 'docker:19.03.12' | |
args '-v /var/run/docker.sock:/var/run/docker.sock' | |
} | |
} | |
stages { | |
stage('Clone') { | |
steps { |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
labels: | |
product: datascience | |
<% try { %> | |
<% build_label=(build_label) %> | |
<% } catch(Exception e) { %> | |
<% build_label='default' %> | |
<% } %> |
NewerOlder