How to change storage path/directory in docker command line installation of dcm4chee-arc-psql-5.19.0-secure

270 views
Skip to first unread message

nutun

unread,
Oct 17, 2019, 7:08:57 AM10/17/19
to dcm4che
Hi,

I have deployed dcm4chee-arc-psql-5.19.0-secure dockerized. Everything is working fine.

All images data is archiving at /var/local/dcm4chee-arc/wildfly/data/fs1/  and I want to change the storage path e.g /var/data/fs1/  .

I know the way how to set/change storage path through docker compose installation via docker-compose.yml file but I have installed dcm4chee through docker command line installation (not through docker compose installation). 

Needs guidance to solve this issue.

Gunter Zeilinger

unread,
Oct 17, 2019, 8:18:57 AM10/17/19
to dcm...@googlegroups.com
You may just mount
-v /var/data/fs1:/opt/wildfly/standalone/data/fs1

or you change the Storage URI in the Configuration of your "fs1" Storage Descriptor from "file:///opt/wildfly/standalone/data/fs1/" to "file:///storage/fs1/"

and mount

-v /var/data/fs1:/storage/fs1

In any case you have to take care that the host directory is writable for the user with id 1023 , which runs the archive process.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

nutun

unread,
Oct 31, 2019, 1:54:17 AM10/31/19
to dcm4che
Thank you for your response.

I have tried the following but it did not worked for me. Data is still archiving at /var/local/dcm4chhe-arc/wildfly/data/fs1/ 

I reinstalled my server but not succeeded to change storage path. What should I do more in this regard?


On Thursday, October 17, 2019 at 5:18:57 PM UTC+5, gunterze wrote:
You may just mount
-v /var/data/fs1:/opt/wildfly/standalone/data/fs1

or you change the Storage URI in the Configuration of your "fs1" Storage Descriptor from "file:///opt/wildfly/standalone/data/fs1/" to "file:///storage/fs1/"

and mount

-v /var/data/fs1:/storage/fs1

In any case you have to take care that the host directory is writable for the user with id 1023 , which runs the archive process.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, October 17, 2019 1:08 PM, nutun <nutun...@gmail.com> wrote:

Hi,

I have deployed dcm4chee-arc-psql-5.19.0-secure dockerized. Everything is working fine.

All images data is archiving at /var/local/dcm4chee-arc/wildfly/data/fs1/  and I want to change the storage path e.g /var/data/fs1/  .

I know the way how to set/change storage path through docker compose installation via docker-compose.yml file but I have installed dcm4chee through docker command line installation (not through docker compose installation). 

Needs guidance to solve this issue.


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm...@googlegroups.com.

nutun

unread,
Nov 14, 2019, 6:09:21 AM11/14/19
to dcm4che
Any suggestion/resolution on this issue??

Gunter Zeilinger

unread,
Nov 14, 2019, 6:52:37 AM11/14/19
to dcm...@googlegroups.com
Have you already tried

... change the Storage URI in the Configuration of your "fs1" Storage Descriptor from "file:///opt/wildfly/standalone/data/fs1/" to "file:///storage/fs1/"

and mount

-v /var/data/fs1:/storage/fs1


?


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

nutun

unread,
Nov 15, 2019, 9:15:30 AM11/15/19
to dcm4che
I have tried this but did not succeeded.

I might be missing some thing or did not get exactly how to run mount command (i.e -v /var/data/fs1:/storage/fs1). Can you please explain step by step procedure to run mounting command?

Gunter Zeilinger

unread,
Nov 19, 2019, 6:36:51 AM11/19/19
to dcm...@googlegroups.com
$ docker run --network=dcm4chee_default --name arc \
            -p 8080:8080 \
            -p 8443:8443 \
            -p 9990:9990 \
            -p 9993:9993 \
            -p 11112:11112 \
            -p 2762:2762 \
            -p 2575:2575 \
            -p 12575:12575 \
            -e POSTGRES_DB=pacsdb \
            -e POSTGRES_USER=pacs \
            -e POSTGRES_PASSWORD=pacs \
            -e WILDFLY_WAIT_FOR="ldap:389 db:5432" \
            -v /etc/localtime:/etc/localtime:ro \
            -v /etc/timezone:/etc/timezone:ro \
            -v /var/local/dcm4chee-arc/wildfly:/opt/wildfly/standalone \
            -v /var/data/fs1:/storage/fs1 \
            -d dcm4che/dcm4chee-arc-psql:5.19.1
d3352f445d6f84836af881eeffb694ea662ae0e760480245083067d7dbb2cad8

$ ls -l /var/data
total 4
drwxr-xr-x 2 root root 4096 Nov 19 12:24 fs1

$ sudo chown 1023:1023 /var/data/fs1

Screenshot from 2019-11-19 12-16-51.png

$ storescu -cDCM4CHEE@localhost:11112 ~/testdata/MESA-storage-A_11_5_0/modality/CT/CT1
Scanning files to send
...........
Scanned 11 files in 0.049s (=4ms/file)
:

$ find /var/data/fs1
/var/data/fs1
/var/data/fs1/2019
/var/data/fs1/2019/11
/var/data/fs1/2019/11/19
/var/data/fs1/2019/11/19/60ECF1C6
/var/data/fs1/2019/11/19/60ECF1C6/5FC6786A
/var/data/fs1/2019/11/19/60ECF1C6/5FC6786A/C3FC27A9
/var/data/fs1/2019/11/19/60ECF1C6/5FC6786A/2F2AD6C4
/var/data/fs1/2019/11/19/60ECF1C6/5FD48FEB
/var/data/fs1/2019/11/19/60ECF1C6/5FD48FEB/92D42186
/var/data/fs1/2019/11/19/60ECF1C6/5FD48FEB/FC865606
/var/data/fs1/2019/11/19/60ECF1C6/5FD48FEB/27EBE7F0
/var/data/fs1/2019/11/19/60ECF1C6/5FD48FEB/6662D109
/var/data/fs1/2019/11/19/60ECF1C6/5FD48FEB/37E81AE7
/var/data/fs1/2019/11/19/60ECF1C6/5FD48FEB/D8537623
/var/data/fs1/2019/11/19/60ECF1C6/5FD48FEB/56588691
/var/data/fs1/2019/11/19/60ECF1C6/5FD48FEB/672DA3C6
/var/data/fs1/2019/11/19/60ECF1C6/5FD48FEB/700FA4BD


nutun

unread,
Nov 20, 2019, 1:46:17 AM11/20/19
to dcm4che
Thank you guntrze for your detailed reply
Reply all
Reply to author
Forward
0 new messages