Thanks a lot 

> On 15 Jun 2021, at 6:22 PM, 'Abel (Google Cloud Platform Support)' via Google 
> App Engine <[email protected]> wrote:
> 
> Hello Javier,
> 
> >Thanks for our message! I’ve been having difficult time understand these 
> >concepts.
> Do not worry, we are here to assist you.
> 
> >I have a step that deploys the app to app engine. This step creates a nested 
> >container where it hosts the app inside. 
> Could you please attach only the code for this step in your cloudbuild YAML 
> or JSON file?
> 
> >I wanted to access data inside the nested container. This is something I 
> >can’t do. The gcloud app deploy creates its own container and I cannot 
> >access it.
> Being in the same step in which the desired container is created you can use 
> bash syntax for manipulating the container's content.
> 
> In general, if I want to share data from step to step how do I go about it? 
> > Because, after each step, its associated container is destroyed, you can 
> > use bash commands for copying files to /workspace. This default volume 
> > mounted on /workspace allows you to share data between steps if you 
> > orchestrate it correctly in each step.
> 
> Kind regards.
>> On Friday, June 11, 2021 at 12:55:23 PM UTC+2 [email protected] wrote:
>> Thanks, Javier!
>> 
>> I want to know where the folder of the app resides inside the instance VM. I 
>> SSH the instance, but I cannot find where my app files are.
>> What I'm looking for is to run `php artisan migrate` to migrate my DB inside 
>> the container itself.
>> Found this tool: https://github.com/GoogleCloudPlatform/php-tools
>> I tried to make it run from a Cloud Build Step however it doesn't work! We 
>> need access to the vendor folder which is not found inside /workspace but 
>> rather inside the container itself.
>> My only option left that I can think of is to curl into an endpoint inside 
>> my app that will eventually run the migration. Any other option?
>> 
>>> On Friday, June 11, 2021 at 1:17:52 PM UTC+3 Javier (Google Cloud Platform 
>>> Support) wrote:
>>> Please, can you explain what code you are looking for inside the VM? 
>>> Regarding your second question, do you want to run the custom script after 
>>> or before deployment?
>>> You may find this documentation [1] interesting.
>>> 
>>> [1] - 
>>> https://cloud.google.com/build/docs/configuring-builds/run-bash-scripts
>>> 
>>>> On Friday, June 11, 2021 at 11:46:26 AM UTC+2 [email protected] wrote:
>>>> Thanks Javier,
>>>> Where is the code usually located inside that VM? I tried but couldn't 
>>>> find it.
>>>> 
>>>> Also, is there a way to do so via Cloud Build step? In order to automate 
>>>> everything?
>>>> 
>>>>> On Fri, Jun 11, 2021 at 12:41 PM 'Javier (Google Cloud Platform Support)' 
>>>>> via Google App Engine <[email protected]> wrote:
>>>>> I understand your App Engine flex app is already deployed. Please SSH 
>>>>> into the VM of an App Engine Flexible instance [1], you can run your 
>>>>> custom scripts from there.
>>>>> 
>>>>> [1] - https://cloud.google.com/sdk/gcloud/reference/app/instances/ssh
>>>>> 
>>>>>>> On Friday, June 11, 2021 at 10:02:45 AM UTC+2 [email protected] wrote:
>>>>>>> 
>>>>>>> Hello
>>>>>>> I am using a Cloud Build workflow to deploy my Laravel app.
>>>>>>> 
>>>>>>> There is a need to run `php artisan migration` command once the 
>>>>>>> deployment is done.
>>>>>>> 
>>>>>>> How can I do that with Google Cloud Build?
>>>>>>> 
>>>>>>> Thanks
>>>>>>> Bill 
>>>>>> 
>>>>> -- 
>>>>> You received this message because you are subscribed to a topic in the 
>>>>> Google Groups "Google App Engine" group.
>>>>> To unsubscribe from this topic, visit 
>>>>> https://groups.google.com/d/topic/google-appengine/JTTWNkOLo_A/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>> [email protected].
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/google-appengine/d0e1e48c-e2d8-4f3f-8e0f-35d0bae200fen%40googlegroups.com.
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Google App Engine" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/google-appengine/JTTWNkOLo_A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/0a30f194-595f-4b38-81be-1b102f891ef5n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/BCA63F12-3356-44DB-A393-762F8490FB67%40gmail.com.
  • [google-app... Bilal Haidar
    • [googl... 'Javier (Google Cloud Platform Support)' via Google App Engine
      • Re... Bilal Haidar
        • ... 'Javier (Google Cloud Platform Support)' via Google App Engine
          • ... Bilal Haidar
            • ... 'Abel (Google Cloud Platform Support)' via Google App Engine
              • ... Bilal Haidar

Reply via email to