-
Clone Docker image from Docker hub
-
Make shure to change the following enviroment variables to reflect your settings
GITHUB_USERNAME=input_your_username_here
GITHUB_PASSWORD=input_your_password_here
REPO_NAME=input_repo_name
REPO_LINK=github.com/input_username_of_git_repo/input_repo_name.git
-
Map your onedrive directory containing all you documents to
/mnt/hgfs/Onedrive/doc
. This will make shure the docker container is able to see the documents.
This will result in a command like this:
docker run -d --name container_name -e GITHUB_USERNAME='input_your_username_here' -e GITHUB_PASSWORD='input_your_password_here' -e REPO_NAME='input_repo_name' -e REPO_LINK='github.com/input_username_of_git_repo/input_repo_name.git' -v '/path/to/documents/on/host:/mnt/hgfs/Onedrive/doc:ro tim661811/onedrive-to-github-documentation-uploader
Once executed it will create the container with the specified settings.
NOTE: you may have to run the container twice on the first use
-
Clone repository from Github
-
Run
npm install
-
Add a .env file with the following content:
GITHUB_USERNAME=input_your_username_here
GITHUB_PASSWORD=input_your_password_here
REPO_NAME=input_repo_name
REPO_LINK=github.com/input_username_of_git_repo/input_repo_name.git
Change the text after the '=' signs to reflect you settings. -
Change the PATH_TO_ONEDRIVE_DOCS variable to the path of the directory containing all your documentation.
You can now run the app using npm start
NOTE: you may have to run the app twice on the first use