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
GCAAAGGCTCACCCAAGGCTCCGAATCACACTATCTGAGCAACATTTCAAGACACTCTGCAACACCACGCCAGCCTCGGAAAAGCGTGCAAATCTGCTGTGAAGATGCTCAGGCCTTCATTGCCAAAGACTCTGACGGCTTTTGGCCCGCCTTAACCAGCTGGGTGGCCGGCCCGGACAGTGCCCGTCGCGGATCTCTGCATGGCTTCAAACCAGAAAGGTGCTCTCAACGTCGGGCAACAGTGAGGTATGCGACTCCCCTTGCATCACATGGACTTGTCCTGGGAGGCCTTTTCTTGGGCCGTTCATTGCGGAGATGTCGGCAAGGTTCTCTGCAAGACCGTGTCAGCCACGGCCCTTGCGAGGCTGAGTTGAGGTCTGGCTATCTGTCTCGAGATGGACCTCACTGGGTCGTCATGGCTGGCTCGAGGCCTTGCTGGCTGGGCCTTTGCCTGGAGCTTCATGATATTGCCAAGCCTCGGAGCTCCCTTCGAATTGGTCAAGTGGTCTGCTTGGCTCGCCGTACCCAAGGTTACCCCAAGGTACCTACCTACCTACCTACACTAACCTACCTACCCTCCCTCTGCGGAGGAGGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATCAGCAACAGCGACAAATCAGCACACACGGCAAGCAAAGCACCCACGGGAGCTGGCTGTTAGCTGACTGAGCTCGAGCTTCCATCCCTTCGCTTAGCTTGGACGTCGGCACCTTCCCTCCTGTACGGACGCATGTCTCAGGCGCGGTTGCGCTCAAACACGGCGGGCAATCACCTGGAAGGACACAACATCAAAGGGCCCATCAGTGGCATGCATCTTCGGCCCTTCTGAATTTTCGAGCGTCTCCTGGCGCCAACTTCAACACCAAACCTCGTCGCGATCATCCTTCCGGCCAAAACACCACTTTTCCATCCGCCAACCCCGCTTCATCCACTTCCACCAGTTCCACGCAAATCCCGCGCCGTTGCCCCGTCAATATCAACATCCAGCATCGTCACG |
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
❯ nix log /nix/store/zp4vz01wk21ym5nixhhcva1nmvxqw0kc-kustomize-4.5.4.drv | |
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking sources | |
unpacking source archive /nix/store/kr8qsxkf90anrkdl98kw6cdyagcpprx1-source | |
source root is source | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
patching sources | |
@nix { "action": "setPhase", "phase": "configurePhase" } | |
configuring | |
@nix { "action": "setPhase", "phase": "buildPhase" } |
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
[[ $SHIMAGE_PROCIO_VERBOSE -eq 1 ]] && set -x | |
# a folder for this process's outputs | |
DATA="{data}/$$" | |
mkdir -p $DATA | |
# capture argv | |
echo "$@" > $DATA/argv | |
# assume we'll be terminatged |
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 docker.io/apache/airflow:2.5.0 | |
USER root | |
# install python (not depending on the system python for reasons...) | |
COPY --from=python:3.11-slim /usr/local/bin/*3.11* /usr/local/bin/ | |
COPY --from=python:3.11-slim /usr/local/lib/pkgconfig/*3.11* /usr/local/pkgconfig/ | |
COPY --from=python:3.11-slim /usr/local/lib/*3.11*.so /usr/local/lib/ | |
COPY --from=python:3.11-slim /usr/local/lib/python3.11 /usr/local/lib/python3.11 | |
RUN ldconfig |
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 ubuntu | |
RUN apt update | |
RUN apt install -y tini dumb-init python3-pip | |
RUN pip install apache-airflow | |
# place the entrypoint script | |
COPY entrypoint.sh /entrypoint | |
RUN chmod +x /entrypoint | |
# a script that calls airflow (and does test-relevant things too) |
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 | |
from airflow import DAG | |
from airflow.providers.cncf.kubernetes.operators.kubernetes_pod import ( | |
KubernetesPodOperator, | |
) | |
from airflow.configuration import conf | |
namespace = conf.get("kubernetes", "NAMESPACE") |
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
version: 2.1 | |
jobs: | |
my-job: | |
machine: | |
image: ubuntu-2004:202107-02 | |
steps: | |
- checkout | |
- run: | |
name: snap install | |
command: sudo snap install microk8s --classic |
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.decorators import dag, task | |
from airflow.sensors.date_time import DateTimeSensor, DateTimeSensorAsync | |
from airflow.utils.dates import days_ago | |
from time import sleep | |
def tensec_taskfactory(i): | |
@task(task_id=f"task_{i}") | |
def wait(): |
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 quay.io/astronomer/ap-airflow-dev:2.2.0-buster-43536 | |
USER root | |
# deps for faking time and talking to postgres databases | |
RUN apt-get update && apt-get install -y faketime libpq-dev build-essential | |
# place shim where airflow was, `airflow` is now `actual_airflow` | |
RUN sh -c 'set -x ; mv $(which airflow) $(dirname $(which airflow))/actual_airflow' | |
COPY ./airflow_wrapper.sh /home/root/ |
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
asdfasdfasdfa |