This file contains 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
_export: | |
rb: | |
require: myruby | |
+step1: | |
rb>: Task::MyWorkflow.step1 |
This file contains 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
_export: | |
rb: | |
require: tasks/my_workflow_1 | |
+step1: | |
rb>: Task::MyWorkflow.step1 | |
+step2: | |
rb>: Task::MyWorkflow.step2 |
This file contains 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 debian:stretch | |
ENV LANG C.UTF-8 | |
ENV TZ Asia/Tokyo | |
ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHONPATH /example | |
ADD . /example | |
WORKDIR /example | |
#python |
This file contains 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
# digdag push | |
tar -czvf myproject.tar.gz myproject.dig myruby.dig myruby.rb | |
REVISION=sample | |
curl -X PUT -H "Content-Type: application/gzip" --data-binary @myproject.tar.gz "http://localhost:65432/api/projects?project=myproject&revision=$REVISION" | jq . | |
rm myproject.tar.gz |
This file contains 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
_export: | |
py: | |
require: workflow_lib.workflow_lib.Workflow | |
arg1: arg1!!! | |
arg2: ${gcs.project} | |
arg3: ${session_date} | |
+task: | |
py>: workflow_lib.workflow_lib.Workflow.task | |
task_arg: task_arg!!!!! |
This file contains 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
_export: | |
rb: | |
require: 'myruby' | |
sample: sample!!! | |
foo: 1 | |
bar: | |
+step1: | |
rb>: MyWorkflow.step1 |
This file contains 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
user_name:encrypted_password |
This file contains 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.6.6-stretch | |
# Setup | |
ENV LANG C.UTF-8 | |
ENV EDITOR vim | |
ADD . /var/www/muramasa | |
WORKDIR /var/www/muramasa/ansible | |
RUN apt-get update && apt-get install -y curl git vim | |
# Install gcloud |
This file contains 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
## command from host | |
kubectl create deployment nginx --image=nginx | |
## command from pod | |
apt-get update && apt-get install -y curl | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl | |
chmod +x ./kubectl | |
mv ./kubectl /usr/local/bin/kubectl | |
kubectl get pod |
This file contains 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
## command from host | |
docker run -v /var/run/docker.sock:/var/run/docker.sock -it debian | |
## command from container | |
apt-get update && apt-get install -y curl | |
export DOCKER_CLIENT_VERSION=1.12.6 | |
curl -fsSL https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_CLIENT_VERSION}.tgz | tar -xzC /usr/local/bin --strip=1 docker/docker | |
docker run debian sleep 10 |