mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-19 22:25:03 +02:00
026809d4d1
* Separate install options for binary (make install.noservice) only and binary * Docker build files and usage documentation
1.3 KiB
1.3 KiB
onedrive docker image
Thats right folks onedrive is now dockerized ;)
This container offers simple monitoring-mode service for 'Free Client for OneDrive on Linux'.
Usage instructions
docker pull driveone/onedrive
NOTE:
SELinux context needs to be configured or disabled for Docker, to be able to write to OneDrive host directory.
- Run or update onedrive container
# Update onedriveDir with correct existing OneDrive directory path
onedriveDir="${HOME}/OneDrive"
firstRun='-d'
docker pull driveone/onedrive
docker inspect onedrive_conf > /dev/null || { docker volume create onedrive_conf; firstRun='-it'; }
docker inspect onedrive > /dev/null && docker rm -f onedrive
docker run $firstRun --restart unless-stopped --name onedrive -v onedrive_conf:/onedrive/conf -v "${onedriveDir}:/onedrive/data" driveone/onedrive
Poweruser section
- Check if monitor service is running
docker ps -f name=onedrive
- Show monitor run logs
docker logs onedrive
- Stop running monitor
docker stop onedrive
- Resume monitor
docker start onedrive
- Unregister onedrive monitor
docker rm -f onedrive
Build instructions
cd docker
git clone https://github.com/abraunegg/onedrive
docker build . -t driveone/onedrive