Hi, You can easily do this with newest mikelangelo capstan using compose-family-of-commands (https://github.com/mikelangelo-project/capstan/blob/master/Documentation/generated/CLI.md#working-with-application-packages - ala docker compose).
My sense is that your are using old capstan with Capstan file. Which version of OSv is displayed when running it? As I mentioned in my other email *I would strongly suggest using new capstan*. Also new package mode vs Capstanfile. Lastly see this docket project for many examples of apps built using new capstan - https://github.com/wkozaczuk/docker_osv_runner. Look for require section in package.yaml in this example - https://github.com/wkozaczuk/docker_osv_runner/blob/7eb359addb9cd1ff5af18e2d0ac9c4c4fc9d2a29/apps/ffmpeg/meta/package.yaml. Waldek PS. Some other docs that may help you: - https://www.mikelangelo-project.eu/technology/unikernel-application-management-users-manual/ - https://github.com/mikelangelo-project/capstan/blob/master/Documentation/ApplicationManagement.md - https://github.com/cloudius-systems/osv/wiki/Build-and-run-apps-on-OSv-using-Capstan On Tuesday, March 12, 2019 at 10:47:36 AM UTC-4, robertob wrote: > > I use the QEMU hypervisor. > > The problem is that in the Capstanfile the "base:" is > "cloudius/osv-openjdk8" and I do not understand how add another base image > like "httpserver" or "cloudius/osv" to activate the REST services. > > Any suggestion? > > regards > > r > > Il giorno lun 11 mar 2019 alle ore 14:38 Waldek Kozaczuk < > [email protected] <javascript:>> ha scritto: > >> Adding -f "10022:22" should expose the port to the host. Which >> hypervisor are you running it on - QEMU/KVM, VirtualBox, VMWare, Xen? >> >> Waldek >> >> On Monday, March 11, 2019 at 7:01:50 AM UTC-4, robertob wrote: >>> >>> Any advice? >>> >>> regards >>> >>> Il giorno venerdì 8 marzo 2019 14:53:45 UTC+1, robertob ha scritto: >>>> >>>> The problem is that the two instances run on a separate network and I >>>> do not understand how to reach them from the outside... >>>> >>>> The startup command is this: >>>> >>>> first instance: capstan run -n "bridge" -e >>>> "--ip=eth0,10.0.0.2,255.255.255.0 --defaultgw=10.0.0.1 >>>> --nameserver=10.0.0.1 /java.so -jar /my.jar" >>>> second instance: capstan run -n "bridge" -e >>>> "--ip=eth0,10.0.0.3,255.255.255.0 --defaultgw=10.0.0.1 >>>> --nameserver=10.0.0.1 /java.so -jar /my.jar" >>>> >>>> And the Capstanfile is this: >>>> >>>> base: cloudius/osv-openjdk8 >>>> cmdline: /java.so >>>> files: >>>> /my.jar: my.jar >>>> >>>> The problem is that I cannot reach the IP 10.0.0.2 o 10.0.0.3 from the >>>> outside. >>>> >>>> regards >>>> >>>> r >>>> >>>> Il giorno gio 7 mar 2019 alle ore 19:55 Waldek Kozaczuk ha scritto: >>>> >>>>> Hi, >>>>> >>>>> One way is to use REST api to get file from OSv. Just add >>>>> httpserver-api module to your image. >>>>> >>>>> Waldek >>>>> >>>>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "OSv Development" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/osv-dev/1d_ZRZmn4P8/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
