Sign inSign up

phate999/sdk

By phate999

Updated about 4 years ago

Cradlepoint Container SDK

Image
0

4.2K

phate999/sdk repository overview

Cradlepoint Container SDK

Build applications in a container that integrate with the NCOS API.

Devices Supported (ARM64 only):
E-series, R1900

Auto-Setup Compose

Use the following compose and the container will set itself up on the LAN (details below):

version: '2.4'
services:
  jupyter:
    image: 'phate999/sdk'
    volumes:
     - ${CONFIG_STORE}
The container takes a few minutes to download ... watch for the following router logs advertising the SDK Labs - then copy and paste the URL provided at the bottom!
───────▓▓▓▓▓▓─────────  
──────▓▄▓▓▓▓▓▓────────  
─────────▓▓▓▓▓─▒▒─────  
────▓▓▓▓▓▓▓▓▓──▒▒▒────  
───▓▓▓▓▓──────▒▒▒▒▒───  
────▓▓▓──▒▒▒▒▒▒▒▒▒────  
─────▓▓─▒▒▒▒▒─────────  
────────▒▒▒▒▒▒▀▒──────  
─────────▒▒▒▒▒▒───────  
───▐▀▌──▐─▐───────────  
───▐▄▌▌▌▐▀▐▀▄▐▀▌▐▀▌───  
───▐──▌▌▐▄▐─▐▐▄▌▐─▌───  
──────▀▌──────────────  
──────▄▌───────▄▄───▐█  
───▄▄▄───▄██▄──█▀───█─▄  
─▄██▀█▌─██▄▄──▐█▀▄─▐█▀  
▐█▀▀▌───▄▀▌─▌─█─▌──▌─▌  
▌▀▄─▐──▀▄─▐▄─▐▄▐▄─▐▄─▐▄  
─HUB─SWITCH─ROUTER─SDK─  
 
Cradlepoint SDK Labs: http://{container_ip}:8888/lab/tree/1.%20Cradlepoint%20SDK%20Labs/1.%20Cradlepoint%20SDK%20Labs%20-%20Introduction.ipynb  

If you use the Auto-Setup Compose for your project, the container will modify its config to move itself onto the first available IP address on the first configured LAN of the router. This allows you to use all ports >1024, and leverage the Zone Firewall like any other host (server) on the LAN.
> This container leverages JupiterLab with no security token for convenience. It is intended to be used a development/training platform and not for use in production. LAN users can access the container and modify the router configuration.
If you would rather build your own compose for the container here is an example for a default router:
version: '2.4'
services:
  jupyter:
    image: 'phate999/sdk'
    restart: unless-stopped
    volumes:
     - ${CONFIG_STORE}
     - 'shared-data:/home/jovyan'
    networks:
      lannet:
        ipv4_address: 192.168.0.2
volumes:
  shared-data:
    driver: local
networks:
  lannet:
    driver: bridge
    driver_opts:
      com.cradlepoint.network.bridge.uuid: 00000000-0d93-319d-8220-4a1fb0372b51
    ipam:
      driver: default
      config:
       - subnet: 192.168.0.0/24
         gateway: 192.168.0.1

Additional Resources

https://customer.cradlepoint.com/s/article/Containers-Quick-Start-Guide
https://customer.cradlepoint.com/s/article/Containers-Advanced-Configuration-Guide
https://customer.cradlepoint.com/s/article/Adjusting-Memory-Resources-for-NetCloud-Container-Orchestrator

Tag summary

Content type

Image

Digest

Size

460.8 MB

Last updated

about 4 years ago

docker pull phate999/sdk