Sign inSign up

growthhackstudio/digdag-python3

By growthhackstudio

•Updated over 7 years ago

container for digdag python3 execution in GHS

Image
0

50K+

growthhackstudio/digdag-python3 repository overview

⁠digdag-workflows

ワークフローエンジン digdag⁠のまとめプロジェクト。 asciiとかghsの適当なタスクをまとめてます。

⁠本番環境

  • zeus-serverにいます。
  • ~/digdag-workflowsディレクトリにいます
  • 基本はpython 2.7です
    • 3.xを使いたい場合はdockerを使ってください

⁠プロジェクト作り方

こちら⁠を参考にdigdagをインストールしてください。

$ digdag init hoge
$ cd hoge
$ digdag run hoge.dig

で実行できます。

⁠docker使う場合

とりま、よく使う系のライブラリをpipでインストールしてるimage⁠があるのでそちらを使う想定で。 test_dockerってプロジェクトがそれにあたります。

pull_allways入れちゃうと毎回pullが走るのでやめたほうがいいかも?


_export:
  docker:
    image: growthhackstudio/digdag-python3:latest
    pull_always: true
⁠dockerコンテナ更新したい場合

プロジェクト直下のDockerfileを参照して作ってるので、そちらを更新してください。 tag付けるとビルドが走ってdockerhubが更新されるはず。

⁠共通処理

いちおう、共通処理っぽいのまとめました。commonsです。README読んでみてください。 test_dockerでも使ってるのそこを参考に。

⁠本番への反映方法

https://github.com/Growth-Hack-Studio/digdag-workflows/wiki/%E6%9C%AC%E7%95%AA%E3%81%B8%E3%81%AE%E5%8F%8D%E6%98%A0%E3%81%AE%E6%96%B9%E6%B3%95⁠

Tag summary

Content type

Image

Digest

Size

155.7 MB

Last updated

over 7 years ago

docker pull growthhackstudio/digdag-python3