diff --git a/cp-mario/README.md b/cp-mario/README.md new file mode 100644 index 0000000..cc44ef3 --- /dev/null +++ b/cp-mario/README.md @@ -0,0 +1,37 @@ +# cp-mario +This project runs the jgaudu/cp-mario container which runs the game "Infinite Mario Bros" in a web interface on port 8080. +No background music (sorry). Use arrow keys for left and right, 'A' and 'S' for run and jump. + +> ARM64 only + +![image](https://user-images.githubusercontent.com/7169690/227016810-4c7c2f26-7bb5-4604-915c-c1220d17ad28.png) + +## Setup: +- Edit your Cradlepoint router configuration and navigate to System > Containers > Projects and click Add. +- Give your project a name ("CP-Mario") and click on the Compose tab. +- Paste the following YAML into the compose tab of your project and click save: + +```yaml +version: '2.4' +services: + cp-mario: + image: jgaudu/cp-mario + restart: unless-stopped + ports: + - 8080:8080 +``` + +![image](https://user-images.githubusercontent.com/7169690/227014750-f1e48eaa-6e8e-408b-9e0f-f94ddecc928e.png) + +## Usage: + +#### NCM: +- Use NCM Remote Connect LAN Manager to create a profile for "CP-Mario" at 127.0.0.1 port 8080 protocol HTTP. +- Connect to the "CP-Mario" profile you created. + +#### Local: +- In the routers Zone Firewall, forward the PrimaryLAN Zone to the Router with DefaultAllowAll policy. +- Browse to the IP address of your router, port 8080 (e.g. http://192.168.0.1:8080) + +## Docker Hub: +https://hub.docker.com/r/jgaudu/cp-mario diff --git a/speedtest-tracker/README.md b/speedtest-tracker/README.md new file mode 100644 index 0000000..aabbda0 --- /dev/null +++ b/speedtest-tracker/README.md @@ -0,0 +1,40 @@ +# speedtest-tracker +This project runs the henrywhitaker3/speedtest-tracker:dev-arm container which runs a speedtest every hour and graphs the results. The back-end is written in Laravel and the front-end uses React. It uses Ookla's Speedtest cli to get the data and uses Chart.js to plot the results. + +![image](https://user-images.githubusercontent.com/127797701/226963907-80ee2aae-f1d5-499b-9b84-ba0f6d8c8559.png) + +## Setup: +- Edit your Cradlepoint router configuration and navigate to System > Containers > Projects and click Add. +- Give your project a name ("Speedtest-Tracker") and click on the Compose tab. +- Paste the following YAML into the compose tab of your project and click save: + +```yaml +version: '2.4' +services: + speedtest: + image: henrywhitaker3/speedtest-tracker:dev-arm + ports: + - 8000:80 + volumes: + - data:/config + environment: + - OOKLA_EULA_GDPR=true + restart: unless-stopped +volumes: + data: + driver: local +``` + +![image](https://user-images.githubusercontent.com/127797701/226963581-e4f081b3-865b-486e-8064-1d13828b6106.png) + +## Usage: +- Use NCM Remote Connect LAN Manager to create a profile for "Speedtest-Tracker" at 127.0.0.1 port 8000 protocol HTTP. +- Connect to the "Speedtest-Tracker" profile you created. + +or + +- In the routers Zone Firewall, forward the PrimaryLAN Zone to the Router with DefaultAllowAll policy. +- Browse to the IP address of your router, port 8000 (e.g. http://192.168.0.1:8000) + +## Docker Hub: +https://hub.docker.com/r/henrywhitaker3/speedtest-tracker diff --git a/web-video-player/Dockerfile b/web-video-player/Dockerfile new file mode 100644 index 0000000..8e2764d --- /dev/null +++ b/web-video-player/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:latest +COPY . /usr/share/nginx/html/ diff --git a/web-video-player/index.html b/web-video-player/index.html new file mode 100644 index 0000000..4e0d90b --- /dev/null +++ b/web-video-player/index.html @@ -0,0 +1,27 @@ + + + + + + + + + \ No newline at end of file diff --git a/web-video-player/readme.md b/web-video-player/readme.md new file mode 100644 index 0000000..37bf42f --- /dev/null +++ b/web-video-player/readme.md @@ -0,0 +1,42 @@ +# web-video-player + +### Purpose: +NGINX webserver with index.html serving embedded video using javascript library. + +![image](https://user-images.githubusercontent.com/7169690/221065573-005d6b62-7788-49ff-91b4-9ef174bae7fc.png) + +### Build: +1. Put your video in the folder and name it video.mp4 (or edit index.html and change the video source filename) +2. Put your thumbnail image in the folder and name it thumbnail.png - this is displayed before the video is played +3. Build the image and push to your docker repo: + +``` +docker login +docker buildx build --platform linux/arm64,linux/arm/v7 -t docker-username/repo-name --push . +``` + +### Setup Container: +Create a new container project on your Cradlepoint router and enter the following into the project compose tab: + +```yaml +version: '2.4' +services: + video: + image: 'docker-username/repo-name' + restart: unless-stopped + ports: + - 8000:80 +``` + +### Watch video: +#### From Netcloud Manager: +- Use Remote Connect LAN Manager to connect to 127.0.0.1 port 8000 HTTP. + +#### Locally: +- In the zone firewall, forward the PrimaryLAN zone to the RouterZone with DefaultAllowAll policy. +- Open a browser and navigate to your router IP address port 8000. +Example: +http://192.168.0.1:8000 + +### Docker homepage: +https://hub.docker.com/r/cpcontainer/web-video-player diff --git a/web-video-player/thumbnail.png b/web-video-player/thumbnail.png new file mode 100644 index 0000000..cbcec0b Binary files /dev/null and b/web-video-player/thumbnail.png differ diff --git a/web-video-player/video.mp4 b/web-video-player/video.mp4 new file mode 100644 index 0000000..71c97a6 Binary files /dev/null and b/web-video-player/video.mp4 differ