Commit bc4dfb57 authored by root's avatar root
Browse files

Create docker container for the project

parent 52ba207e
version: '3.5'
services:
policyengine:
build:
context: ./policyengine
container_name: 'policyengine-container'
ports:
- 8080:8080
networks:
- policyengine
networks:
policyengine:
FROM openjdk:11-jdk-slim
WORKDIR tmp
COPY *.jar policyengine.jar
#COPY etc/datavaults.properties /etc/datavaults.properties
ENTRYPOINT ["java","-jar","policyengine.jar"]
...@@ -120,9 +120,9 @@ public class PolicyService { ...@@ -120,9 +120,9 @@ public class PolicyService {
} }
JSONObject accessPolicyasJSON = new JSONObject(); JSONObject accessPolicyAsJSON = new JSONObject();
try{ try{
accessPolicyasJSON = new JSONObject(accessPolicyasString); accessPolicyAsJSON = new JSONObject(accessPolicyasString);
} }
catch(Exception e){ catch(Exception e){
System.out.println("Error"); System.out.println("Error");
......
...@@ -276,7 +276,7 @@ public class HttpUtils { ...@@ -276,7 +276,7 @@ public class HttpUtils {
authParams.put("client_id", authClientId); authParams.put("client_id", authClientId);
authParams.put("client_secret", authClientSecret); authParams.put("client_secret", authClientSecret);
authParams.put("grant_type", authGrantType); authParams.put("grant_type", authGrantType);
authParams.put("username", username); authParams.put("username", username);
authParams.put("password", password); authParams.put("password", password);
......
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