distribution instructions in readme, easy run scripts in staging folders
This commit is contained in:
parent
f13e16ebd5
commit
3538cac0d8
2 changed files with 13 additions and 10 deletions
11
README.md
11
README.md
|
|
@ -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:
|
After changing directory to the 'staging/client' folder or the 'staging/server' folder, either program can be run as follows:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ./server.sh (port)
|
$ ./server (port)
|
||||||
$ ./client.sh (hostname) (port) (command) (arguments)
|
$ ./client (hostname) (port) (command) (arguments)
|
||||||
```
|
```
|
||||||
alternatively, for guidance:
|
alternatively, for guidance:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ./JobServ/bin/jobserv-server
|
$ ./server
|
||||||
$ ./JobServ/bin/jobserv-client help
|
$ ./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
|
# Testing
|
||||||
Running the gradle test task, or the buildwrapper will run all junit tests.
|
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
|
Currently that includes a test of certificate based authentication (Mutual TLS) and unit tests for the thread safe process control module
|
||||||
|
|
|
||||||
|
|
@ -109,14 +109,14 @@ cp -r resources/* staging/test/
|
||||||
|
|
||||||
echo "[+] Adding wrapper script for client"
|
echo "[+] Adding wrapper script for client"
|
||||||
# This could also be a .desktop file without much more work.
|
# This could also be a .desktop file without much more work.
|
||||||
cat << EOF > staging/client/client.sh
|
cat << EOF > staging/client/client
|
||||||
./JobServ/bin/jobserv-client "${@:4}"
|
./JobServ/bin/jobserv-client private.pem client.crt ca.crt \$@
|
||||||
EOF
|
EOF
|
||||||
chown +x staging/client/client.sh
|
chmod +x staging/client/client.sh
|
||||||
|
|
||||||
echo "[+] Adding wrapper script for server"
|
echo "[+] Adding wrapper script for server"
|
||||||
# This could also be a .desktop file without much more work.
|
# This could also be a .desktop file without much more work.
|
||||||
cat << EOF > staging/server/server.sh
|
cat << EOF > staging/server/server
|
||||||
./JobServ/bin/jobserv-server "$1"
|
./JobServ/bin/jobserv-server \$1 server.crt private.pem ca.crt
|
||||||
EOF
|
EOF
|
||||||
chown +x staging/server/server.sh
|
chmod +x staging/server/server.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue