Link

Setting input file storage path

Table of contents

  1. What is its function
  2. How to set this value
  3. Default Value
  4. How to use with Docker

What is its function

This option allows you to specify the location to store input files on your server or in your Docker image.
This function is controlled by 1 config property.

  1. inputPath - The location to store input files

How to set this value

Create the following Java properties file on the server running your app server (if you don’t already have one) {user.home}/.idr/jpedal-microservice/jpedal-microservice.properties

In this file add (or update if the key already exists) the following key and value pair.

  1. inputPath - This must be a string representing a path on the server or image running the microservice.
    e.g inputPath=~/.idr/jpedal-microservice/input/

Default Value

When no values are provided or invalid values are provided the following default values are used.

  1. inputPath=~/.idr/jpedal-microservice/input/

How to use with Docker

In order to provide your own properties file to the Docker image you need to mount the properties file to the image. This is done by adding the following to your docker run command.

--mount "source=/path/to/properties/directory/jpedal-microservice.properties,target=/root/.idr/jpedal-microservice/jpedal-microservice.properties,type=bind"

Please note, if you need external access to the input directory you will need to mount a directory at the location set by this option by adding the following to your docker run command (unless the directory is already included in a previous mount).

--mount "source=/path/to/input/directory,target=/input/path/specified/in/config,type=bind"