-
Notifications
You must be signed in to change notification settings - Fork 92
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
Both Cloud Run Button and Heroku Button - app.json Clash #112
Comments
If you can mention the error, we can help it not clash (by perhaps introducing a placeholder for fields that aren't supported). |
Yeah, our I can investigate. |
@ahmetb : Thanks for the quick reply. The first error is;
Now this is caused by the following line of
due to the buildpacks argument in the Hope this helps. Let me know if you need any further details. 😄 |
We can try and fix About A cleaner solution I can think of is to introduce a new file name that's used during the lookup stage. For example, we'd suggest people to still use Maybe this hack would be just for repos like yours, and we would not make it as prominent as app.json in the documentation. |
Officially, Our parsing should be able to handle that. For the |
So @SudharakaP are you able to deploy and run after deleting |
I'm guessing is actually not going to work because it is using a non-default buildpack. Maybe @jkutner can let us know if the |
@ahmetb : After changing
|
This is because you need the custom buildpack to build this project. |
@jamesward : So if I understand correctly, |
The string JHipster comes from app.json > name field (Or repo name), no? |
@SudharakaP Correct, Cloud Run Button doesn't support custom buildpacks defined by I think a workaround for this would be to use a |
@ahmetb : Actually I think you are right; I changed the name field to all lowercase and also changed the PORT to point to the PORT environment variable and this makes it deploy successfully. However it prints out he following error in the log when trying to authenticate.
I think this is because of a limitation of the container sandbox. I am trying to see if I could do the same thing on Anthos (where there's no container sandbox). Is the Cloud Run button supports deploying on Anthos as well? @jamesward : Thanks much for confirming; I am new to Cloud Run and learning as I go along. 😄 |
The “syscall not supported” log is actually an info/warning. It does not mean your app is failing. Is your app actually throwing an exception? If not, it means it’s probably working fine. |
@ahmetb : Thanks for the information. I have to investigate more; since the authentication seems not to work; probably due to the removal of buildpacks. Anyways to summarize; it would be helpful if;
This fails with
|
|
Oh, and the error about the |
I think we fix this tactically by adding CNB support to https://github.com/jhipster/jhipster-registry-buildpack. I've created jhipster/jhipster-registry-buildpack#3 and will try to get a PR today. |
Thanks @jkutner! So, in the CNB world, what is the right way to handle custom specified buildpacks? |
@jamesward it will depend on the platform, but there's no specification yet (we're working on one). Today |
There's one other problem I have; it seems that from my testing that for Cloud Run we need to change the docker files |
Thanks @jkutner, doesn't the @SudharakaP With both Cloud Run and Heroku the app just needs to listen on |
@jamesward yes, the buildpack either needs to be in the builder or provided to pack as a tgz. But there's no mechanism (yet) for pack to automatically turn a Github URL into a tgz, so it would be up to the platform (i.e. Cloud Run) to convert that Github URL into something pack can use (probably by downloading it, maybe with an API key to prevent 429s, and stripping the root dir). We've considered adding this as a first class thing in pack: But we're waiting to implement a Buildpack Registry first. |
I have the same problem and the workaround for me was creating an exclusive branch for Google Buton de deploy. you can see my solution here In my case, in the my
Here is possible to see the error.my suggestions
|
I think our current plan is to add ignored fields as they arise. I'll create a PR for that. |
Hi, I think I am facing a similar issue. I tried deleting some of the fields, but still I am getting |
# DEBO LEECHER DeboLeecher allows you to leech (re-upload) contents from internet including torrent to telegram. This bot using Telegram MTProto powered by pyrogram. ## Feature * Set as Private (using password) * Able to use at group * Able to leech larger than 2GB (telegram max upload at once) * Split as video (.mp4, .mkv, .avi, .webm, .wmv, .mov) * Upload files as media or as document * Upload files as a single zip file * Custom thumbnail * Default torrent tracker * Customizeable language (default is english) * Configuration using environment variable ## Configuration Change config by set the corresponding environment variable name. * `WORKDIR` : working directory path * `LOG_FILE` : log file name * `MAX_LOG_SIZE` : maximum log size * `EDIT_SLEEP` : delay between edit message * `UPLOAD_MAX_SIZE` : maximum file size (in bytes) upload at once (watchout telegram max upload size) * `UPLOAD_AS_DOC` : upload any files as document (1 or 0) * `UPLOAD_AS_ZIP` : upload any files as a bundled zip file (1 or 0) * `ARIA2_DIR` : download directory before uploading * `TORRENT_TRACKER` : addition tracker for all torrent, separated by (`,`) * `BAR_SIZE` : bar size on upload and download * `THUMBNAIL_NAME` : default thumbnail file name * `LOCAL` : languange bot using * `CHAT_ID` : default chat_ids that have access to bot, separated by (`,`) ## Deploy button [<img src="https://deploy.cloud.run/button.svg" alt="Run on Google Cloud" height="40"/>](https://deploy.cloud.run?git_repo=https://github.com/azamaulanaaa/botkaca.git "Google Cloud") [<img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy to Heroku" height="40"/>](https://heroku.com/deploy?template=https://github.com/azamaulanaaa/botkaca "Heroku") *Currently google cloud does not supported due to app.json clash with heroku. Check out Google Cloud Run issue [#112](GoogleCloudPlatform/cloud-run-button#112 (comment) "Both Cloud Run Button and Heroku Button - app.json Clash")* ## How to run ```sh #!/bin/sh # get botkaca source git clone https://github.com/azamaulanaaa/botkaca.git # build then execute using docker image docker build -t azamaulanaaa/botkaca botkaca docker run -it azamaulanaaa/botkaca ``` ## Bot Details ### Specification * Python 3 * Python Library * pyrogram asyc * tgcrypto * aria2p * Program Dependece * aria2c * ffmpeg + ffprobe * Dockerize (multi-stage) ### Folder Structure * `/` : development detail and deploy config * `/bot` : module root dir * `__init__.py` : bot config * `__main__.py` : register handler then run bot * `config.py` : create configuration and configurable from env var * `/bot/handler` : message handler * `/bot/locals` : localization and default is en * `/bot/plugins` : third party implementation
I am trying to add the Cloud Run Button to one of our repositories which has the Heroku Deploy Button which also uses an
app.json
file.This creates problems when trying to add the Cloud Run button to the same repository as the Cloud Run also assumes an
app.json
file and the Herokuapp.json
file which is different in format will crash the Cloud Run when trying to deploy. Also I am unable to define anapp.json
file for Cloud Run since one already exists for Heroku.Is there a possibility to configure the name of the
app.json
file (or just name it differently) for example so that it doesn't clash with other cloud providers such as Heroku? 😄The text was updated successfully, but these errors were encountered: