Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Iturraspe Barturen, Urtza
PolicyEngine
Commits
bc4dfb57
Commit
bc4dfb57
authored
Aug 31, 2021
by
root
Browse files
Create docker container for the project
parent
52ba207e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Docker_Tecnalia_PolicyEngine/docker-compose.yml
0 → 100644
View file @
bc4dfb57
version
:
'
3.5'
services
:
policyengine
:
build
:
context
:
./policyengine
container_name
:
'
policyengine-container'
ports
:
-
8080:8080
networks
:
-
policyengine
networks
:
policyengine
:
Docker_Tecnalia_PolicyEngine/policyengine/Dockerfile
0 → 100644
View file @
bc4dfb57
FROM
openjdk:11-jdk-slim
WORKDIR
tmp
COPY
*.jar policyengine.jar
#COPY etc/datavaults.properties /etc/datavaults.properties
ENTRYPOINT
["java","-jar","policyengine.jar"]
Docker_Tecnalia_PolicyEngine/policyengine/policyengine.jar
0 → 100644
View file @
bc4dfb57
File added
src/main/java/com/tecnalia/DVPolicyEngine/service/PolicyService.java
View file @
bc4dfb57
...
...
@@ -120,9 +120,9 @@ public class PolicyService {
}
JSONObject
accessPolicy
a
sJSON
=
new
JSONObject
();
JSONObject
accessPolicy
A
sJSON
=
new
JSONObject
();
try
{
accessPolicy
a
sJSON
=
new
JSONObject
(
accessPolicyasString
);
accessPolicy
A
sJSON
=
new
JSONObject
(
accessPolicyasString
);
}
catch
(
Exception
e
){
System
.
out
.
println
(
"Error"
);
...
...
src/main/java/com/tecnalia/DVPolicyEngine/utils/HttpUtils.java
View file @
bc4dfb57
...
...
@@ -276,7 +276,7 @@ public class HttpUtils {
authParams
.
put
(
"client_id"
,
authClientId
);
authParams
.
put
(
"client_secret"
,
authClientSecret
);
authParams
.
put
(
"grant_type"
,
authGrantType
);
authParams
.
put
(
"username"
,
username
);
authParams
.
put
(
"username"
,
username
);
authParams
.
put
(
"password"
,
password
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment