LoginSignup
0
0

More than 5 years have passed since last update.

GCP app.yamlの環境変数がdockerビルド中、見えない

Posted at

RailsアプリをGCP App Engineにデプロイしています。

https://github.com/GoogleCloudPlatform/ruby-docker/issues/91 にバグレポートした通り、GCP App Engineへdeployするとき、dockerビルド中には、GCP App Engine設定ファイルapp.yamlに定義した環境変数が、見えません。

実は、更に悲しいことに、どうも docker の entrypoint にも環境変数が伝搬されていない模様です。Railsの設定ファイルconfig/database.ymlconfig/secrets.ymlで、環境から変数を取得することができません。

暫定処置としては、CIサーバでGCP App Engineへdeployする直前に、環境変数をRailsの設定ファイルにべた書きするしかなさそうです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0