distribution instructions in readme, easy run scripts in staging folders

This commit is contained in:
Aidan Hahn 2019-05-23 17:07:43 -07:00
parent f13e16ebd5
commit 3538cac0d8
No known key found for this signature in database
GPG key ID: 327711E983899316
2 changed files with 13 additions and 10 deletions

View file

@ -21,16 +21,19 @@ After build, the programs can be found in the staging folder.
After changing directory to the 'staging/client' folder or the 'staging/server' folder, either program can be run as follows:
```
$ ./server.sh (port)
$ ./client.sh (hostname) (port) (command) (arguments)
$ ./server (port)
$ ./client (hostname) (port) (command) (arguments)
```
alternatively, for guidance:
```
$ ./JobServ/bin/jobserv-server
$ ./JobServ/bin/jobserv-client help
$ ./server
$ ./client help
```
# Distribution
At this point you can copy the staging/client or staging/server folders to any environment in which their Certificate CN's are valid.
# Testing
Running the gradle test task, or the buildwrapper will run all junit tests.
Currently that includes a test of certificate based authentication (Mutual TLS) and unit tests for the thread safe process control module

View file

@ -109,14 +109,14 @@ cp -r resources/* staging/test/
echo "[+] Adding wrapper script for client"
# This could also be a .desktop file without much more work.
cat << EOF > staging/client/client.sh
./JobServ/bin/jobserv-client "${@:4}"
cat << EOF > staging/client/client
./JobServ/bin/jobserv-client private.pem client.crt ca.crt \$@
EOF
chown +x staging/client/client.sh
chmod +x staging/client/client.sh
echo "[+] Adding wrapper script for server"
# This could also be a .desktop file without much more work.
cat << EOF > staging/server/server.sh
./JobServ/bin/jobserv-server "$1"
cat << EOF > staging/server/server
./JobServ/bin/jobserv-server \$1 server.crt private.pem ca.crt
EOF
chown +x staging/server/server.sh
chmod +x staging/server/server.sh