Skip to content

Commit c08a1bd

Browse files
authored
BUILDING.md: update how start the container
Clarified instructions for running the dCache container and corrected minor text formatting.
1 parent 4030e00 commit c08a1bd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

BUILDING.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ phase with the _rpm_ profile on _modules/srm-client_ module, i.e.:
7575
DEB packages have not been defined for srmclient.
7676

7777
The generated packages can be found in the target directory of the
78-
respectively module. RPMs are in the RPMS subdirectory.
78+
respective module. RPMs are in the RPMS subdirectory.
7979

8080

8181
The dCache tarball package is build by packaging the _packages/tar_
@@ -97,6 +97,14 @@ profile for the `tar` packaging:
9797
mvn clean package -am -pl packages/tar -P container
9898

9999

100+
To run
101+
102+
podman run -ti --name my-dcache --rm -u 0:0 -v `pwd`/my-layout.conf:/opt/dcache/etc/layouts/docker-layout.conf:Z -v `pwd`/pool:/pool:Z dcache/dcache:11.0 my-domain
103+
104+
The container runs dcache as uid 994 and gid 1000. The argument `-u 0:0` tells podman to run it as root, which is mapped to the local user that starts the container.
105+
The argument passed to the container is the dcache domain to start. In the example above, it will start the domain `my-domain` defined in the local layout file
106+
`my-layout.conf`. If no argument is provided, that domain with the container hostname (value returned by the hostname command inside the container) is started.
107+
100108
The system-test module
101109
----------------------
102110

0 commit comments

Comments
 (0)