Coder Social home page Coder Social logo

Comments (4)

davidwadden avatar davidwadden commented on July 19, 2024

@pradp - you'll need to add a security group in order to allow traffic from the app container to the user-provided service running on your host.

i just ran through testing connectivity from spring-music to a redis instance running on my host as follows (replaced in your ip):

 ○ → cat > sg.json
   [
     {
       "protocol": "tcp",
       "destination": "192.168.1.6",
       "ports": "6379"
     }
   ]
^D
○ → cf create-security-group host-redis sg.json
Creating security group host-redis as admin
OK
○ → cf bind-security-group host-redis micropcf-org micropcf-space
Assigning security group host-redis to space micropcf-space in org micropcf-org as admin...
OK
○ → cf ssh spring-music -k
vcap@bepbr6nakkq:~$ curl 192.168.1.6:6379
-ERR wrong number of arguments for 'get' command
-ERR unknown command 'User-Agent:'
-ERR unknown command 'Host:'
-ERR unknown command 'Accept:'

from pcfdev.

pradp avatar pradp commented on July 19, 2024

Thanks @davidwadden it worked. I missed the security constraint completely. I have blogged about this project.

from pcfdev.

sclevine avatar sclevine commented on July 19, 2024

Re-opening to indicate that we have feature in the backlog to add a security group for the host.

from pcfdev.

sclevine avatar sclevine commented on July 19, 2024

This feature was completed in February.

from pcfdev.

Related Issues (20)

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.