Giter VIP home page Giter VIP logo

Comments (8)

rolandweber avatar rolandweber commented on September 28, 2024

Registering for a Pay-as-you-go account got me $200 credit within the first 30 days. Should be plenty, with network traffic being the only paid service I'm planning to make use of. 30 days suffice to figure out how to run the server in Cloud, but the student sessions will be afterwards. We'll see.

from pityoulish.

rolandweber avatar rolandweber commented on September 28, 2024

I'm installing the IBM Cloud developer tools locally for trying out.
Eventually, I'd like to have GitHub workflows (actions) for deploying.

grrr They're installing docker, while I'm using podman. Tough luck.

from pityoulish.

rolandweber avatar rolandweber commented on September 28, 2024

The images I build on my workstation with podman are not visible to docker and vice versa.
Setting up a GitHub workflow to push an image into IBM Cloud Registry will be a priority.

Maybe afterwards, I can get rid of the container-registry plugin and docker on my workstation again.

from pityoulish.

rolandweber avatar rolandweber commented on September 28, 2024

Here's how to authenticate against the IBM Cloud Container Registry for pushing images:
https://cloud.ibm.com/docs/Registry?topic=Registry-registry_access#registry_access_apikey_auth_other
The trick is to use "iamapikey" as the user name.

I should be able to push directly with podman from my workstation, or promote images from GitHub to IBM Cloud with skopeo in a GitHub workflow.

from pityoulish.

rolandweber avatar rolandweber commented on September 28, 2024

Pushing from my workstation works on the second attempt. It's "iamapikey", not "ibmapikey" ;-)

from pityoulish.

rolandweber avatar rolandweber commented on September 28, 2024

I got the pod running, and could connect to the Socket server port.

The Java RMI exercise requires some more effort. The ports in the container must be the same as those outside. And the external IP address of the worker node needs to be passed as hostname to Java RMI. That's because the internal port number and provided hostname appears in the stubs that Java RMI returns.

from pityoulish.

rolandweber avatar rolandweber commented on September 28, 2024

I've made the server ports and hostname configurable through environment variables.
But somehow, I cannot get the port mapping to work - not even for the Socket server port anymore.
Getting tired now... will try another day.

from pityoulish.

rolandweber avatar rolandweber commented on September 28, 2024

Duh... it works better when I use the external IP address of the worker node.

kubectl describe nodes | grep IP
  InternalIP:  10.x.y.z
  ExternalIP:  184.x.y.z

Got it working now for both Sockets and Java RMI. Still have to write it down though.

from pityoulish.

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.