Skip to content
Snippets Groups Projects
Commit bc4dfb57 authored by root's avatar root
Browse files

Create docker container for the project

parent 52ba207e
No related branches found
No related tags found
No related merge requests found
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"]
File added
......@@ -120,9 +120,9 @@ public class PolicyService {
}
JSONObject accessPolicyasJSON = new JSONObject();
JSONObject accessPolicyAsJSON = new JSONObject();
try{
accessPolicyasJSON = new JSONObject(accessPolicyasString);
accessPolicyAsJSON = new JSONObject(accessPolicyasString);
}
catch(Exception e){
System.out.println("Error");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment