Skip to content

Executor for App Engine Flexible Environment stuck.. #230

@jrean

Description

@jrean

I can't get the migrate step to work!

It successfully:

...
Step #2 - "Migrate": Pulling image: gcr.io/google-appengine/exec-wrapper
Step #2 - "Migrate": Using default tag: latest
Step #2 - "Migrate": latest: Pulling from google-appengine/exec-wrapper
...
Step #2 - "Migrate": Digest: sha256:xxxx
Step #2 - "Migrate": Status: Downloaded newer image for gcr.io/google-appengine/exec-wrapper:latest
Step #2 - "Migrate": gcr.io/google-appengine/exec-wrapper:latest
Step #2 - "Migrate": 
Step #2 - "Migrate": ---------- INSTALL IMAGE ----------
Step #2 - "Migrate": latest: Pulling from xxx/appengine/default.xxxx
...
Step #2 - "Migrate": Digest: xxx
Step #2 - "Migrate": Status: Downloaded newer image for us.gcr.io/xxx/appengine/default.xxx
Step #2 - "Migrate": us.gcr.io/xxx/appengine/default.xxx
Step #2 - "Migrate": 
Step #2 - "Migrate": ---------- EXECUTE COMMAND ----------
Step #2 - "Migrate": php /workspace/artisan migrate --force

Then it stays stuck at "Execute Command" forever.

Note that I'm not interested in the cloud proxy part. Just being able to run the php artisan migrate --force command on the appengine instance.

What am I doing wrong?

  - id: Deploy
    name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:slim'
    entrypoint: 'gcloud'
    args:
      [
        'app',
        'deploy',
        '-q',
        '--promote',
        '-v=$BUILD_ID',
        '--project=$PROJECT_ID'
      ]

  - id: Migrate
    name: 'gcr.io/google-appengine/exec-wrapper'
    entrypoint: 'bash'
    args:
      [
        '/buildstep/execute.sh',
        '-i', 'us.gcr.io/${PROJECT_ID}/appengine/default.${BUILD_ID}:latest',
        '-e', 'APP_KEY=$$APP_KEY',
        '-e', 'DB_CONNECTION=mysql',
        '-e', 'DB_HOST=$$DB_HOST',
        '-e', 'DB_DATABASE=xxx',
        '-e', 'DB_PORT=3306',
        '-e', 'DB_USERNAME=$$DB_USERNAME',
        '-e', 'DB_PASSWORD=$$DB_PASSWORD',
        '--', 'php /workspace/artisan migrate --force'
      ]
    secretEnv: ['APP_KEY', 'DB_HOST', 'DB_USERNAME', 'DB_PASSWORD']
    waitFor:
      - Deploy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions