Code Monkey home page Code Monkey logo

cloud-run-static-outbound-ip's Issues

Illegal option

I am not able to deploy since the container cannot be started because of this,

./entrypoint.sh: 15: wait: Illegal option -n

This is my code
#!/usr/bin/env bash
set -ex
ssh -i ./ssh_key "cloud-proxy@${HTTP_PROXY}" \
-N -D ${HTTP_TUNNEL} \
-o StrictHostKeyChecking=no &
env HTTPS_PROXY="socks5://${HTTP_TUNNEL}" \
node index.js &
wait -n

What could be the problem? Thanks

Permission denied error

When follow the steps, the service complains for some error as:
[FATAL tini (2)] exec ./entrypoint.sh failed: Permission denied

How could that be fixed?
Tried to add line to change the execution permission but it doesn't work.
RUN chmod +x /app

Failed to start and then listen on the port defined by the PORT environment variable

gcloud run deploy sample-tunnel --set-env-vars "GCE_IP=35.225.211.112" --platform managed --region us-central1 --allow-unauthenticated --image=gcr.io/myproject/sample-tunnel

result:

Deploying container to Cloud Run service [sample-tunnel] in project [myproject] region [us-central1]
X Deploying... Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. Logs for this revision might contain more information.    
  X Creating Revision... Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. Logs for this revision might contain more inform
  ation.                                                                                                                                                                                                   
  . Routing traffic...                                                                                                                                                                                     
  โœ“ Setting IAM Policy...                                                                                                                                                                                  
Deployment failed                                                                                                                                                                                          
ERROR: (gcloud.run.deploy) Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. Logs for this revision might contain more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.