much friendlier packaging

This commit is contained in:
Aidan Hahn 2019-05-23 17:03:40 -07:00
parent 9eb18219cb
commit f13e16ebd5
No known key found for this signature in database
GPG key ID: 327711E983899316
2 changed files with 17 additions and 4 deletions

View file

@ -21,8 +21,8 @@ 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:
```
$ ./JobServ/bin/jobserv-server (port) server.crt private.pem ca.crt
$ ./JobServ/bin/jobserv-client private.pem client.crt ca.crt (hostname) (port) (command) (arguments)
$ ./server.sh (port)
$ ./client.sh (hostname) (port) (command) (arguments)
```
alternatively, for guidance:
@ -33,5 +33,4 @@ $ ./JobServ/bin/jobserv-client help
# 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)
(TODO: job control module tests)
Currently that includes a test of certificate based authentication (Mutual TLS) and unit tests for the thread safe process control module

View file

@ -106,3 +106,17 @@ cp resources/client/client.crt staging/client/
cp resources/client/private.pem staging/client/
cp resources/server/ca.crt staging/client/
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}"
EOF
chown +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"
EOF
chown +x staging/server/server.sh