-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cloud Code for Cloud Run doesn't load builders to run code locally #3196
Comments
Thank you for the report. Are there any exceptions in your log file (idea.log, Help -> Show Log file..) |
same thing there. Here are some information: intellij Log
when i open intellij setting dialog (not sure this is related):
Let me know if you need more information, thanks. |
I have this exact same message on my logs
SkaffoldBuilderSettingsPanel - Unable to detect images and builders
The other interesting info, If I start from the examples, it at leader can read my docker file, there are still, no options for build back. If I add a docker file to an existing project, it doesn’t give me the option to use it, like in the example
…Sent from my iPhone
On Apr 28, 2024, at 9:59 AM, codonist ***@***.***> wrote:
SkaffoldBuilderSettingsPanel - Unable to detect images and builders
|
i am wondering if we could get around the UI by putting the config inside the Run_locally.xml configuration file (by checking "store as project file" in run locally dialog). In my case is something like this <component name="ProjectRunConfigurationManager">
<configuration default="false" name="my-service: Run Locally" type="CloudCodeCloudRunConfigurationType" factoryName="CloudCodeCloudRunDevelopConfigurationFactory" show_console_on_std_err="false" show_console_on_std_out="false">
<option name="allowRunningInParallel" value="false" />
<option name="buildpacksEnv">
<map />
</option>
<option name="cloudSqlConnections">
<list />
</option>
<option name="cpuAllocated" value="NO_LIMIT" />
<option name="dockerBuildArgs">
<map />
</option>
<option name="dockerTarget" value="" />
<option name="environmentVariables">
<map />
</option>
<option name="loadingAvailableBuilders" value="false" />
<option name="mappings">
<list />
</option>
<option name="memoryAllocated" value="MIB_256" />
<option name="projectPathOnTarget" />
<option name="selectedOptions">
<list />
</option>
<option name="serviceAccount" value="" />
<option name="serviceName" value="my-service" />
<option name="skaffoldWatchMode" value="ON_DEMAND" />
<method v="2" />
</configuration>
</component> Is there something we could add here to make it work? |
I also had the same problem. I resolved it by uninstalling and reinstalling the Cloud Code plugin in IntelliJ. |
@apeltop thanks for the suggestion, unfortunately it seems uninstalling and reinstalling doesn't work on my end. |
@apeltop would you mind share your Run_locally.xml configuration file when checking the checkbox of "store as project file" in run locally dialog. The file would end up in |
@codonist hope this helps. <component name="ProjectRunConfigurationManager">
<configuration default="false" name="Unnamed" type="CloudCodeCloudRunConfigurationType" factoryName="CloudCodeCloudRunDevelopConfigurationFactory" show_console_on_std_err="false" show_console_on_std_out="false" imageBuilder="{"name":"Docker","payload":{"path":"Dockerfile"}}">
<option name="allowRunningInParallel" value="false" />
<option name="buildpacksEnv">
<map />
</option>
<option name="cloudSqlConnections">
<list />
</option>
<option name="cpuAllocated" value="NO_LIMIT" />
<option name="dockerBuildArgs">
<map />
</option>
<option name="dockerTarget" value="" />
<option name="environmentVariables">
<map />
</option>
<option name="loadingAvailableBuilders" value="false" />
<option name="mappings">
<list />
</option>
<option name="memoryAllocated" value="MIB_256" />
<option name="projectPathOnTarget" />
<option name="selectedOptions">
<list />
</option>
<option name="serviceAccount" value="" />
<option name="serviceName" value="my-service" />
<option name="skaffoldWatchMode" value="ON_DEMAND" />
<method v="2" />
</configuration>
</component> |
@apeltop thanks a lot, but unfortunately i still can't get it working. |
I was able to reproduce the issue by uninstalling Docker Engine and Docker Desktop, Then installing the plug in. To fix it, I had to do the following:
|
@angelmzn thanks for sharing your solution. I tried it, but unfortunately I still wasn't able to resolve the issue. |
PY-232.10300.41, JRE 17.0.10+7-b1000.48x64 JetBrains s.r.o., OS Mac OS X(aarch64) v14.1.2, screens 1920.0x1080.0
I'm trying to run a Google Cloud Run locally, as per the instructions. Everything goes fine if I use a Dockerfile however the new option to build it via build packs (which is how I build them in Cloud Build) is not showing up as an option on the IDE
The text was updated successfully, but these errors were encountered: