Code Monkey home page Code Monkey logo

geniac_collect_cloud_run's Introduction

実行の流れ

ジョブの実行

GCPの設定

  1. cloudrunのサービスアカウントを作成し、権限を付与する。

  2. 下記コマンドを実行して認証する

gcloud auth login

上記作成したサービスアカウントjsonで認証する場合は下記コマンドを実行する

gcloud auth login --cred-file=service-account.json

コンテナイメージのpush

  1. コンテナイメージをビルドする
sh artifact_push.sh

run_cloudrun_job.shの実行

このシェルスクリプトは、特定のリージョンで特定のGoogle Cloud Runジョブを実行するためのものです。 スクリプトはバッチ番号を元に、 CSVファイルからデータの特定範囲を読み取り、 そのデータを用いてクラウドジョブを実行します。

cloud run jobで実行するコマンドは、main.pyの引数を変更することで変更できます。

main.pyの引数をrest_path2のファイルから読み取って引数としてpython main.pyに渡しています。

python main.py target_list='crawl-data/CC_MAINxxx+crawl-data/CC_MAINyyy']
  1. BATCH_NUMBERを設定する。
sh run_cloudrun_job.sh

geniac_collect_cloud_run's People

Contributors

comu2e avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.