Commit e71f7d6d authored by femiadeyemi's avatar femiadeyemi
Browse files

use the correct variable the dockerfile and start.sh

Motivation:

Inside the dockerfile the variable name for the client
secret was mistyped. Also start shell file wasn't able
to pass the secret to the jar file.

Modification:

- fix the mistyped in the dockerfile
- set the value of the client-secret by using the
    spring variable

Result:

User can now be authenticated.

Target: master
parent 6c87ea78
Pipeline #45343 failed with stages
in 17 minutes and 50 seconds
FROM adoptopenjdk:11-jre-hotspot
COPY target/hm-server-package.tar hms.tar
EXPOSE 8080
CMD tar -xvf hms.tar -C ./ && cd ./hm-server/bin && ./start.sh -s $UNITY_CLIENT_SECRET
CMD tar -xvf hms.tar -C ./ && cd ./hm-server/bin && ./start.sh -s $CLIENT_SECRET
......@@ -4,4 +4,4 @@ do
s) secret=${OPTARG};;
esac
done
java -Xms256m -Xmx512m -server -jar -Dsceret=$secret ../lib/helmholtz-marketplace-server-0.0.1-SNAPSHOT.jar
\ No newline at end of file
java -Xms256m -Xmx512m -server -jar ../lib/helmholtz-marketplace-server-0.0.1-SNAPSHOT.jar --spring.security.oauth2.client.registration.unity.client-secret=$secret
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment