diff --git a/configure b/configure index d7aae13b..f005c080 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for onedrive v2.4.18. +# Generated by GNU Autoconf 2.69 for onedrive v2.4.19-dev. # # Report bugs to . # @@ -579,8 +579,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='onedrive' PACKAGE_TARNAME='onedrive' -PACKAGE_VERSION='v2.4.18' -PACKAGE_STRING='onedrive v2.4.18' +PACKAGE_VERSION='v2.4.19-dev' +PACKAGE_STRING='onedrive v2.4.19-dev' PACKAGE_BUGREPORT='https://github.com/abraunegg/onedrive' PACKAGE_URL='' @@ -1219,7 +1219,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures onedrive v2.4.18 to adapt to many kinds of systems. +\`configure' configures onedrive v2.4.19-dev to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1280,7 +1280,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of onedrive v2.4.18:";; + short | recursive ) echo "Configuration of onedrive v2.4.19-dev:";; esac cat <<\_ACEOF @@ -1393,7 +1393,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -onedrive configure v2.4.18 +onedrive configure v2.4.19-dev generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1410,7 +1410,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by onedrive $as_me v2.4.18, which was +It was created by onedrive $as_me v2.4.19-dev, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3159,7 +3159,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by onedrive $as_me v2.4.18, which was +This file was extended by onedrive $as_me v2.4.19-dev, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -3212,7 +3212,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -onedrive config.status v2.4.18 +onedrive config.status v2.4.19-dev configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff --git a/configure.ac b/configure.ac index c71750f8..97b2cba9 100644 --- a/configure.ac +++ b/configure.ac @@ -9,7 +9,7 @@ dnl - commit the changed files (configure.ac, configure) dnl - tag the release AC_PREREQ([2.69]) -AC_INIT([onedrive],[v2.4.18], [https://github.com/abraunegg/onedrive], [onedrive]) +AC_INIT([onedrive],[v2.4.19-dev], [https://github.com/abraunegg/onedrive], [onedrive]) AC_CONFIG_SRCDIR([src/main.d]) diff --git a/docs/Docker.md b/docs/Docker.md index 8907e850..4b070a09 100644 --- a/docs/Docker.md +++ b/docs/Docker.md @@ -1,12 +1,16 @@ # Run the OneDrive Client for Linux under Docker This client can be run as a Docker container, with 3 available options for you to choose from: -| Container Base | Docker Tag | Description | x86_64 | ARMHF | AARCH64 | -|----------------|-------------|----------------------------------------------------------|:------:|:-----:|:-------:| -| Alpine Linux | edge-alpine | Docker container based on Apline 3.16 using 'master' |✔|❌|✔| -| Debian | edge-debian | Docker container based on Debian Bullseye using 'master' |✔|✔|✔| -| Debian | edge | Docker container based on Debian Bullseye using 'master' |✔|✔|✔| -| Fedora | edge-fedora | Docker container based on Fedora 36 using 'master' |✔|❌|❌| +| Container Base | Docker Tag | Description | x86_64 | ARMHF | AARCH64 | +|----------------|-------------|----------------------------------------------------------------|:------:|:-----:|:-------:| +| Alpine Linux | edge-alpine | Docker container based on Apline 3.16 using 'master' |✔|❌|✔| +| Alpine Linux | alpine | Docker container based on Apline 3.16 using latest release |✔|❌|✔| +| Debian | edge-debian | Docker container based on Debian Bullseye using 'master' |✔|✔|✔| +| Debian | debian | Docker container based on Debian Bullseye using latest release |✔|✔|✔| +| Debian | edge | Docker container based on Debian Bullseye using 'master' |✔|✔|✔| +| Debian | latest | Docker container based on Debian Bullseye using latest release |✔|✔|✔| +| Fedora | edge-fedora | Docker container based on Fedora 36 using 'master' |✔|❌|❌| +| Fedora | fedora | Docker container based on Fedora 36 using latest release |✔|❌|❌| These containers offer a simple monitoring-mode service for the OneDrive Client for Linux. @@ -28,7 +32,7 @@ Once the above 4 steps are complete and you can successfully run `docker run hel ## Pulling and Running the Docker Image ### 1. Pull the image ```bash -docker pull driveone/onedrive:edge +docker pull driveone/onedrive:latest ``` **NOTE:** SELinux context needs to be configured or disabled for Docker to be able to write to OneDrive host directory. @@ -66,7 +70,7 @@ docker run -it --name onedrive -v onedrive_conf:/onedrive/conf \ -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" \ -e "ONEDRIVE_UID=${ONEDRIVE_UID}" \ -e "ONEDRIVE_GID=${ONEDRIVE_GID}" \ - driveone/onedrive:edge + driveone/onedrive:latest ``` **Important:** The 'target' folder of `ONEDRIVE_DATA_DIR` must exist before running the Docker container, otherwise, Docker will create the target folder, and the folder will be given 'root' permissions, which then causes the Docker container to fail upon startup with the following error message: ```bash @@ -84,7 +88,7 @@ docker run -it --name onedrive -v onedrive_conf:/onedrive/conf \ -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" \ -e "ONEDRIVE_UID=${ONEDRIVE_UID}" \ -e "ONEDRIVE_GID=${ONEDRIVE_GID}" \ - driveone/onedrive:edge + driveone/onedrive:latest ``` When the Docker container successfully starts: @@ -138,7 +142,7 @@ However, you can also use bind mounts for the configuration folder, e.g. `export version: "3" services: onedrive: - image: driveone/onedrive:edge + image: driveone/onedrive:latest restart: unless-stopped environment: - ONEDRIVE_UID=${PUID} @@ -169,7 +173,7 @@ There are many ways to do this, the easiest is probably to ``` export ONEDRIVE_DATA_DIR_WORK="/home/abraunegg/OneDriveWork" mkdir -p ${ONEDRIVE_DATA_DIR_WORK} -docker run -it --restart unless-stopped --name onedrive_Work -v onedrive_conf_Work:/onedrive/conf -v "${ONEDRIVE_DATA_DIR_WORK}:/onedrive/data" driveone/onedrive:edge +docker run -it --restart unless-stopped --name onedrive_Work -v onedrive_conf_Work:/onedrive/conf -v "${ONEDRIVE_DATA_DIR_WORK}:/onedrive/data" driveone/onedrive:latest ``` ## Run or update with one script @@ -182,10 +186,10 @@ ONEDRIVE_DATA_DIR="${HOME}/OneDrive" mkdir -p ${ONEDRIVE_DATA_DIR} firstRun='-d' -docker pull driveone/onedrive:edge +docker pull driveone/onedrive:latest docker inspect onedrive_conf > /dev/null 2>&1 || { docker volume create onedrive_conf; firstRun='-it'; } docker inspect onedrive > /dev/null 2>&1 && docker rm -f onedrive -docker run $firstRun --restart unless-stopped --name onedrive -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:edge +docker run $firstRun --restart unless-stopped --name onedrive -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:latest ``` @@ -207,24 +211,24 @@ docker run $firstRun --restart unless-stopped --name onedrive -v onedrive_conf:/ ### Usage Examples **Verbose Output:** ```bash -docker container run -e ONEDRIVE_VERBOSE=1 -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:edge +docker container run -e ONEDRIVE_VERBOSE=1 -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:latest ``` **Debug Output:** ```bash -docker container run -e ONEDRIVE_DEBUG=1 -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:edge +docker container run -e ONEDRIVE_DEBUG=1 -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:latest ``` **Perform a --resync:** ```bash -docker container run -e ONEDRIVE_RESYNC=1 -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:edge +docker container run -e ONEDRIVE_RESYNC=1 -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:latest ``` **Perform a --resync and --verbose:** ```bash -docker container run -e ONEDRIVE_RESYNC=1 -e ONEDRIVE_VERBOSE=1 -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:edge +docker container run -e ONEDRIVE_RESYNC=1 -e ONEDRIVE_VERBOSE=1 -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:latest ``` **Perform a --logout and re-authenticate:** ```bash -docker container run -it -e ONEDRIVE_LOGOUT=1 -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:edge +docker container run -it -e ONEDRIVE_LOGOUT=1 -v onedrive_conf:/onedrive/conf -v "${ONEDRIVE_DATA_DIR}:/onedrive/data" driveone/onedrive:latest ``` ## Build instructions