Step 1 Prepare Content Repository Role
For the characteristic “Permission Object ID”, enter a meaningful value. This value will be referenced in the next step (for this tutorial SMB_Share is used).
For the characteristic “Permission Object Type”, please leave the default value “App” untouched.
Give the role a meaningful name and save it.
Switch to the Users tab, search for your user and add the newly created role to your user and any other user who should be able to use this content repository. To do so, double click on the user and enter the name of your role in the “Add Role” input field.
This will create a new folder in the file system of the Simplifier host. Log into your Simplifier host via SSH and check:
The output shows a folder named like the value you entered as “repoName”.
Step 3 Prepare Simplifier host
Login via SSH to your Simplifier host
3.1 Create a new directory
3.2 Prepare your Authentication Credentials
Create a new file .smbcredentials
with the following settings:
Change the access right to this file to be read by root only.
chown root /etc/samba/.smbcredentials chmod 0400 /etc/samba/.smbcredentials
3.3 Create fstab entry
add a line the following content and adapt the hostname to your setup
//host.windowsserver.com/share /mnt/smbshare cifs credentials=/etc/samba/.smbcredentials,uid=linuxuser,gid=linuxgroup 0 0
3.4 Test access to windows volume
mount /mnt/smbshare ls /mnt /smbshare
should now show you the content of your Windows volume
Step 4 Change Docker config
Last step is to make the smbshare available to the Docker file system. This is done by adding another volume parameter to the docker run command.
In a typical setup the complete run command looks like:
docker run --name simpifier \ -v /opt/simplifier/data:/opt/simplifier/data \ -v /mnt/testfileserver:/opt/simplifier/data/plugins/contentRepo/RemoteRepo \ -p 80:80 -p 443:443 -p 8090:8090 \ -d simplifierag/runtime:latest