diff options
author | gabrielgio <gabriel.giovanini@pm.me> | 2021-07-19 18:06:35 +0200 |
---|---|---|
committer | gabrielgio <gabriel.giovanini@pm.me> | 2021-07-19 18:11:30 +0200 |
commit | e40e995e0ea62c8d803074759e35cb9ccd009c12 (patch) | |
tree | 1ba268089f9cae15203f2851a058954547c5f490 | |
parent | 0c3e8d7cccd71e4507ec0ad006614b663eb5e4b9 (diff) | |
download | reddit-nextcloud-importer-e40e995e0ea62c8d803074759e35cb9ccd009c12.tar.gz reddit-nextcloud-importer-e40e995e0ea62c8d803074759e35cb9ccd009c12.tar.bz2 reddit-nextcloud-importer-e40e995e0ea62c8d803074759e35cb9ccd009c12.zip |
ref: Add to README
-rw-r--r-- | .gitlab-ci.yml | 5 | ||||
-rw-r--r-- | README.md | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc8eea9..363e06c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,7 +45,10 @@ test: pages: needs: [ "test" ] - image: pandoc/alpine + image: + name: pandoc/alpine + entrypoint: + - "" stage: build script: - mkdir public @@ -29,3 +29,21 @@ Nextcloud. nextcloud instance. * `NEXTCLOUD_PATH`: root folder for where all the images will be saved. + + +# Running as docker container + +To run as docker you need to pass all the environment variables listed above: + +```BASH +docker run -d --rm \ + -e CLIENT_ID=$CLIENT_ID \ + -e CLIENT_SECRETE=$CLIENT_SECRET \ + -e REDDIT_USERNAME=$REDDIT_USERNAME \ + -e REDDIT_PASSWORD=$REDDIT_PASSWORD \ + -e NEXTCLOUD_HOST=$REDDIT_HOST \ + -e NEXTCLOUD_USERNAME=$NEXTCLOUD_USERNAME \ + -e NEXTCLOUD_PASSWORD=$NEXTCLOUD_PASSWORD \ + -e NEXTCLOUD_PATH=$NEXTCLOUD_PATH \ + registry.gitlab.com/gabrielgio/reddit-nextcloud-importer:latest +``` |