|
@@ -63,7 +63,7 @@ Build using the downloaded source code (in the directory with the
|
|
|
source code):
|
|
|
|
|
|
```
|
|
|
- docker build -t grassgis77 .
|
|
|
+ docker build -t grassgis78 .
|
|
|
```
|
|
|
|
|
|
A test run (assuming you have existing GRASS GIS location; it can be downloaded from
|
|
@@ -71,22 +71,22 @@ A test run (assuming you have existing GRASS GIS location; it can be downloaded
|
|
|
|
|
|
```
|
|
|
# case 1: launching in the grassdata directory in which the location is stored:
|
|
|
-docker run -it --rm --user=$(id -u):$(id -g) --volume $(pwd):/data --env HOME=/data/ grassgis77 \
|
|
|
+docker run -it --rm --user=$(id -u):$(id -g) --volume $(pwd):/data --env HOME=/data/ grassgis78 \
|
|
|
grass --text nc_spm_08_grass7/user1 --exec g.region -p
|
|
|
|
|
|
# case 2: launching anywhere
|
|
|
-docker run -it --rm --user=$(id -u):$(id -g) --volume /your/test/grassdata/:/data --env HOME=/data/ grassgis77 \
|
|
|
+docker run -it --rm --user=$(id -u):$(id -g) --volume /your/test/grassdata/:/data --env HOME=/data/ grassgis78 \
|
|
|
grass /data/nc_basic_spm/PERMANENT --exec g.region -p
|
|
|
```
|
|
|
|
|
|
-Note that the first `grassgis77` is the name of the image while the second
|
|
|
+Note that the first `grassgis78` is the name of the image while the second
|
|
|
`grass` is the name of the executable.
|
|
|
|
|
|
To run the tests (again assuming local location):
|
|
|
|
|
|
```
|
|
|
docker run -it --rm --user=$(id -u):$(id -g) --volume /your/test/grassdata/:/data --env HOME=/data/ -w /code/grass \
|
|
|
- grassgis77 grass /data/nc_basic_spm/PERMANENT --exec \
|
|
|
+ grassgis78 grass /data/nc_basic_spm/PERMANENT --exec \
|
|
|
python -m grass.gunittest.main \
|
|
|
--location nc_basic_spm --location-type nc
|
|
|
```
|