You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,3 +39,32 @@ Once running the REST Interface can be tested at `http://localhost:<desired_port
39
39
## Deploying Applications
40
40
41
41
You can either install your application in `apps` for REST-Python to serve them, or deploy them with a separate server (e.g., NodeJS). REST-Python supports cross-domain responses to REST and Websocket requests to facilitate dual- or multi-server configurations to completely decouple the REDHAWK environment from the web application environment. (See [Docker-REDHAWK's](http://github.com/GeonTech/docker-redhawk)`geontech/redhawk-webserver` image.)
42
+
43
+
## Testing
44
+
45
+
If you would like to test REST-Python changes in a functional domain, download Docker-CE and Docker Compose for your operating system. The process takes 3 parts:
46
+
47
+
1. Your locally-built instance of the webserver image
48
+
2. Running the `tests/docker-compose.yml` stack with your webserver image
49
+
3. Using `docker-compose exec` to start the tests script.
50
+
51
+
> Note: Verify the Dockerfile version of the parent image (`FROM...`) and the compose file vs. the version of REDHAWK you want to test against. You can export `REDHAWK_VERSION` set to that version prior to running `docker-compose` to simplify changing versions of the infrastructure.
If you make further changes and want to update the webserver image and container (the service is `rest` in the compose file), you can recreate the container without tearing down the entire compose by doing the following:
64
+
65
+
```
66
+
docker-compose stop rest
67
+
docker-compose up --build -d rest
68
+
```
69
+
70
+
You would then repeat the `exec` command from above.
0 commit comments