https://tech.gamevilcom2us.com/blog/3922
https://docs.google.com/presentation/d/11C_BKio0DZIop_ZjJk7ogxQtWV5qHIr-hHjw277z64k/htmlpresent
https://qiita.com/shiozaki/items/f79eecf8e1878aa64a40
https://gist.github.com/hiroyuki-sato/48f1119d8e7436a1014c1958916cf0b8
https://github.com/suaaa7/digdag-server
https://docs.digdag.io/operators/bq.html
https://wapa5pow.com/build-analytics-environment-on-eks/
https://github.com/septeni-original/k8s_job
** digdag docker-compose
version: '3'
services:
digdag:
container_name: digdag-server
build:
context: .
dockerfile: digdag/Dockerfile
depends_on:
- postgresql
command: --task-log ./task_log
ports:
- "65432:65432"
- "65433:65433"
volumes:
- /tmp:/tmp
- ./digdag/projects:/opt
- ./digdag/server.properties:/etc/digdag/server.properties
postgresql:
container_name: postgresql
image: postgres:9.6.17
environment:
- POSTGRES_USER=digdag
- POSTGRES_PASSWORD=digdag
- POSTGRES_DB=digdag
volumes:
- ./postgres-data:/var/lib/postgresql/data
** digdag Dockerfile
FROM openjdk:8-jdk
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
RUN apt-get update && apt-get install -y --no-install-recommends \
curl gettext-base postgresql-client \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get install -y git
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
RUN chmod +x kubectl
RUN mv ./kubectl /usr/local/bin/kubectl
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
ENV AWS_ACCESS_KEY_ID=***
ENV AWS_SECRET_ACCESS_KEY=***
RUN aws eks update-kubeconfig --name dhk-david --region us-east-1
# docker client
ENV DOCKER_CLIENT_VERSION=19.03.2 \
DOCKER_API_VERSION=1.40
RUN curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_CLIENT_VERSION}.tgz \
| tar -xzC /usr/local/bin --strip=1 docker/docker
# digdag server
ENV DIGDAG_VERSION=0.9.41
RUN curl -o /usr/local/bin/digdag --create-dirs -L https://dl.digdag.io/digdag-${DIGDAG_VERSION} && \
chmod +x /usr/local/bin/digdag
COPY digdag/server.properties /etc/digdag/server.properties
COPY digdag/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
EXPOSE 65432 65433
ENTRYPOINT ["/usr/local/bin/entrypoint.sh","/usr/local/bin/digdag","server","--config","/etc/digdag/server.properties"]
** digdag sever.properties
server.bind = 0.0.0.0
server.port = 65432
server.admin.bind = 0.0.0.0
server.admin.port = 65433
server.access-log.pattern = json
database.type = postgresql
database.user = digdag
database.password = digdag
database.host = postgresql
database.port = 5432
database.database = digdag
digdag.secret-encryption-key = MDEyMzQ1Njc4OTAxMjM0NQ==
'BigData' 카테고리의 다른 글
Apache Atlas to Airflow (0) | 2020.05.25 |
---|---|
bigquery to storage backup (0) | 2020.05.20 |
Apache beam (0) | 2020.05.19 |
Data Lineage (0) | 2020.05.19 |
Apache Hudi (0) | 2020.05.19 |