Fix shebang and rename container and script.

This commit is contained in:
Andris Raugulis
2018-09-04 15:45:55 +03:00
parent 2c222deccb
commit 7e09f5771f
2 changed files with 6 additions and 8 deletions
+4 -6
View File
@@ -25,17 +25,15 @@ is also required.
## docker ## docker
Build image Build Docker image before running container:
``` ```
docker build -t openconnect . docker build -t gp-okta .
``` ```
Fill gp-okta.conf with information you want to provide
launch docker with: Edit gp-okta.conf and launch Docker container:
``` ```
sh launch.sh sh run-docker.sh
``` ```
it will ask for username/password/second auth if not filled in gp-okta.conf
## configuration ## configuration
+2 -2
View File
@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
conf_username=`grep username gp-okta.conf | awk -F \= '{print $2}' | tr -d " "` conf_username=`grep username gp-okta.conf | awk -F \= '{print $2}' | tr -d " "`
conf_password=`grep password gp-okta.conf | awk -F \= '{print $2}' | tr -d " "` conf_password=`grep password gp-okta.conf | awk -F \= '{print $2}' | tr -d " "`
@@ -61,4 +61,4 @@ docker run \
-e GP_USERNAME=${GP_USERNAME} \ -e GP_USERNAME=${GP_USERNAME} \
-v /etc/resolv.conf:/etc/resolv.conf \ -v /etc/resolv.conf:/etc/resolv.conf \
-v ${PWD}:/openconnect/gp-okta \ -v ${PWD}:/openconnect/gp-okta \
openconnect gp-okta