source: grass/trunk/README

Last change on this file was 73216, checked in by neteler, 6 years ago

version bump: grass76 -> grass77 related updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id
  • Property svn:mime-type set to text/plain
File size: 3.3 KB
Line 
1GRASS GIS Development Subversion repository
2
3##########################################################
4How to get write access here?
5
6Write access is only granted to developers who agree to abide by
7RFC2 - Legal aspects of code contributions
8 http://trac.osgeo.org/grass/wiki/RFC/2_LegalAspectsOfCodeContributions
9and the code submission guidelines
10 http://trac.osgeo.org/grass/wiki/Submitting
11
12This needs to be communicated to a GRASS developer. S/he will
13then possibly propose you to the GRASS Project Steering committee
14after a period of evaluation. For details, see
15 http://trac.osgeo.org/grass/wiki/RFC
16
17Once write access is granted, you, the new developer need to
18obtain an "osgeo_id" at http://www.osgeo.org/osgeo_userid
19If you already have an "osgeo_id" but forgot it, search for it at
20Search at http://www.osgeo.org/cgi-bin/ldap_web_search.py
21
22##########################################################
23How to compile GRASS:
24 See INSTALL file.
25
26Yes, you should really read INSTALL.
27
28##########################################################################
29How to generate the 'Programmer's Manual':
30
31This needs doxygen (http://www.doxygen.org) and optionally
32Graphviz dot (http://www.research.att.com/sw/tools/graphviz/).
33
34To build the GRASS programmer's documentation, run
35 make htmldocs
36or to generate documentation as single html file (recommended for simple reading)
37 make htmldocs-single
38here. This takes quite some time. The result is in lib/html/index.html
39which refers to further document repositories in
40 lib/vector/html/index.html
41 lib/db/html/index.html
42 lib/gis/html/index.html
43
44The master file is: ./grasslib.dox where all sub-documents have to
45be linked into.
46
47To generate the documents in PDF format, run
48 make pdfdocs
49
50An online version is available at:
51https://grass.osgeo.org/programming7/
52
53## Docker
54
55Build using the downloaded source code (in the directory with the
56source code):
57
58 docker build -t grassgis77 .
59
60A test run (assuming you have existing GRASS GIS location; it can be downloaded from
61https://grass.osgeo.org/sampledata/north_carolina/nc_basic_spm_grass7.zip)
62
63 # case 1: launching in the grassdata directory in which the location is stored:
64 docker run -it --rm --user=$(id -u):$(id -g) --volume $(pwd):/data --env HOME=/data/ grassgis77 \
65 grass --text nc_spm_08_grass7/user1 --exec g.region -p
66
67 # case 2: launching anywhere
68 docker run -it --rm --user=$(id -u):$(id -g) --volume /your/test/grassdata/:/data --env HOME=/data/ grassgis77 \
69 grass /data/nc_basic_spm/PERMANENT --exec g.region -p
70
71Note that the first `grassgis77` is the name of the image while the second
72`grass` is the name of the executable.
73
74To run the tests (again assuming local location):
75
76 docker run -it --rm --user=$(id -u):$(id -g) --volume /your/test/grassdata/:/data --env HOME=/data/ -w /code/grass \
77 grassgis77 grass /data/nc_basic_spm/PERMANENT --exec \
78 python -m grass.gunittest.main \
79 --location nc_basic_spm --location-type nc
80
81Note: If you compiled locally before building the Docker image, you may
82encounter problems as the local configuration and locally compiled file
83are copied to and used in the Docker image. To make sure you don't have
84this issue, clean all the compiled files from the source code:
85
86 make distclean
Note: See TracBrowser for help on using the repository browser.