Skip to content

pdssp/planet_crs_registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Planet CRS Registry

https://img.shields.io/github/v/tag/pdssp/planet_crs_registry

https://img.shields.io/github/v/release/pdssp/planet_crs_registry?include_prereleases

The coordinates reference system registry for solar bodies

Stable release

To install Planet CRS Registry, run this command in your terminal:

$ docker pull pdssp/planet_crs_registry # get the image

From sources (without virtual environment)

The sources for Planet CRS Registry can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/pdssp/planet_crs_registry

Or download the tarball:

$ curl -OJL https://github.com/pdssp/planet_crs_registry/tarball/master

Once you have a copy of the source, you can install it with:

$ make  # install in the system root
$ make user # or Install for non-root usage

From sources (with virtual environment)

The sources for Planet CRS Registry can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/pdssp/planet_crs_registry

Or download the tarball:

$ curl -OJL https://github.com/pdssp/planet_crs_registry/tarball/master

Once you have a copy of the source, you can install it with:

$ make prepare-dev
$ source .planet_crs_registry # Use the virtual environment
$ make

Development

$ git clone https://github.com/pdssp/planet_crs_registry
$ cd planet_crs_registry
$ make prepare-dev
$ source .planet_crs_registry
$ make install-dev

To get more information about the preconfigured tasks:

$ make help

Usage

To use Planet CRS Registry in a project:

planet_crs_registry

Docker

$ docker pull pdssp/planet_crs_registry # get the image

Run the registry as Http

$ docker run -p 8080:8080 pdssp/planet_crs_registry

Run the registry as Https

Create the SSL certificate

$ mkdir -p /tmp/conf
$ cd /tmp/conf
$ mkcert -cert-file cert.pem -key-file key.pem 0.0.0.0 localhost 127.0.0.1 ::1

Edit the configuration file

$ vi /tmp/conf/planet_crs_registry.conf

And set the configuration file as follows:

[HTTPS]
host = 0.0.0.0
port = 5000
ssl_keyfile = key.pem
ssl_certfile = cert.pem

Create the container

$ docker run --name=pdssp-planet-crs-registry -p 5000:5000 -v /tmp/conf:/conf pdssp/planet-crs-registry

Run the registry as both Http and Https

Create the SSL certificate

$ mkdir -p /tmp/conf
$ cd /tmp/conf
$ mkcert -cert-file cert.pem -key-file key.pem 0.0.0.0 localhost 127.0.0.1 ::1

Edit the configuration file

$ vi /tmp/conf/planet_crs_registry.conf

And set the configuration file as follows:

[HTTP]
host = 0.0.0.0
port = 8080

[HTTPS]
host = 0.0.0.0
port = 5000
ssl_keyfile = key.pem
ssl_certfile = cert.pem

Create the container

$ docker run --name=pdssp-planet-crs-registry -p 5000:5000 -p 8080:8080 -v /tmp/conf:/conf pdssp/planet-crs-registry

Stop the registry

$ docker stop pdssp-planet-crs-registry

Restart the registry

$ docker start pdssp-planet-crs-registry

Run tests

$make tests

Author

πŸ‘€ Jean-Christophe Malapert

🀝 Contributing

Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/pole-surfaces-planetaires/planet_crs_registry/issues). You can also take a look at the [contributing guide](https://github.com/pole-surfaces-planetaires/planet_crs_registry/blob/master/CONTRIBUTING.rst)

πŸ“ License

This project is [GNU Lesser General Public License v3](https://github.com/pole-surfaces-planetaires/planet_crs_registry/blob/master/LICENSE) licensed.