Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executor for App Engine Flexible Environment stuck.. #230

Open
jrean opened this issue Aug 7, 2023 · 0 comments
Open

Executor for App Engine Flexible Environment stuck.. #230

jrean opened this issue Aug 7, 2023 · 0 comments

Comments

@jrean
Copy link

jrean commented Aug 7, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant