A Docker image for OSCAR to run inside Docker container and access it remotely using web browser.
Repository name in Docker Hub: rogerrum/docker-oscar
Repository name in ghcr.io: ghcr.io/rogerrum/docker-oscar
Published via automated build mechanism
To simply do a quick and dirty run of the Oscar container:
docker run \
-d --rm \
--name oscar \
-v=${pwd}/oscar-data:/config/Documents/OSCAR_Data \
-v=${pwd}/SDCARD:/config/SDCARD \
--publish=3000:3000 \
rogerrum/docker-oscar
To stop the container simply run:
$ docker stop oscar
To remove the container simply run:
$ docker rm oscar
If you don't want to type out these long Docker commands, you could optionally use docker-compose to set up your image. Just download the repo and run it like so:
version: '3.8'
services:
oscar:
image: rogerrum/docker-oscar:latest
container_name: oscar
restart: unless-stopped
ports:
- 3000:3000
volumes:
- ./oscar-data:/config/Documents/OSCAR_Data:rw
- ./SDCARD:/config/SDCARD:rw
environment:
TZ: "America/Chicago"
To start the container run:
$ docker-compose up -d
The docker image contains additional cronjob that pulls files from an ezShare wifi SD card adpater.
- ezShare wifi SD adapter and an SD card, be sure to chose the combo for around $24! Configured and installed in your CPAP machine
- USB wifi adapter or Raspberry PI connected with wired and wifi (I use raspberry pi 3 which is connected using wired and using wifi to connect to ezShare)
edit file sudo vi /etc/netplan/50-cloud-init.yaml
Add following lines under network
wifis:
wlan0:
optional: true
access-points:
"ezShareSSD":
password: "ezShare-PASSORD"
dhcp4: true
Save and then
sudo netplan --debug try
sudo netplan --debug generate
sudo netplan --debug apply
and finally reboot
$ sudo reboot
When its back up you should be able to SSH in and ping 192.168.4.1 which is the ezShare card.
version: '3.8'
services:
oscar:
image: rogerrum/docker-oscar:latest
container_name: oscar
restart: unless-stopped
ports:
- 3000:3000
volumes:
- ./oscar-data:/config/Documents/OSCAR_Data:rw
- ./SDCARD:/config/SDCARD:rw
environment:
TZ: "America/Chicago"
CRON_HOUR: 11
CRON_MIN: 00
To start the container run:
$ docker-compose up -d
cron job is created only when env CRON_HOUR and CRON_MIN are passed.
Repository name in Docker Hub: rogerrum/docker-oscar-cron Repository name in ghcr.io: rogerrum/docker-oscar-cron
This is how I am using the cron on my Kube cluster https://github.com/rogerrum/k8s-gitops/blob/main/main/homelab/oscar/templates/cronjob.yaml
https://github.com/rogerrum/docker-oscar/issues
- I am happy for any feedback! Create issues, discussions, ... feel free and involve!
- Send me a PR
EzShare-SdcardWifi-Downloader script by Biorn1950 --- https://github.com/Biorn1950/EzShare-SdcardWifi-Downloader
DOCKER-OSCAR is released under the GNU GPL v3 License. Please see below for a note on giving correct attribution in redistribution of derivatives.
It is built using Qt SDK (Open Source Edition), available from https://qt.io.
Mark Watkins created this software to help lessen the exploitation of others. Seeing his work being used to exploit others is incredibly un-motivational, and incredibly disrespectful of all the work he put into this project.
If you plan on reselling any derivatives of SleepyHead, I specifically request that you give due credit and link back, mentioning clearly in your advertising material, software installer and about screens that your derivative "is based on the free and open-source software SleepyHead available from https://sleepyhead.jedimark.net, developed and copyright by Mark Watkins (C) 2011-2018."
It is not enough to reference that your derivative "is based on GPL software".