Skip to content

Commit 51c547f

Browse files
Merge pull request #42 from InformaticsMatters/issue38_update_keycloak
#38 update keycloak and fix search container to use rdkit correctly
2 parents e8b1d96 + c6090c8 commit 51c547f

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ For more information see:
2626

2727
* [Talk at 2018 RDKit UGM](https://github.com/rdkit/UGM_2018/blob/master/Lightning/tim_dudgeon_fragment-network.pdf).
2828
* [Informatics Matters website](https://www.informaticsmatters.com/pages/fragment_network.html)
29+
* [Fragnet Search application](https://fragnet.informaticsmatters.com/)
2930

3031
## Building (CI)
3132
The project containers are built automatically using GitHub Actions
@@ -45,9 +46,9 @@ web app.
4546
Test the container using the [docker-compose.yml](docker-compose.yml)
4647
file:
4748

48-
docker-compose -f docker-compose-test.yml up
49+
docker-compose up
4950

50-
This uses a sample Neo4j database with a small amount of data.
51+
This uses a sample Neo4j database with a small amount of data. It takes a short time to initialise.
5152

5253
## Official deployments
5354
Official deployments (to Kubernetes) use AWX and our [fragnet-ansible]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ services:
2525
# This container runs the REST API that queries the test database.
2626
# Some useful queries are:
2727
# export FRAGNET_SERVER=http://localhost
28-
# curl $FRAGNET_SERVER:8080/fragnet-search/rest/v2/search/suppliers
2928
# curl $FRAGNET_SERVER:8080/fragnet-search/rest/ping
29+
# curl $FRAGNET_SERVER:8080/fragnet-search/rest/v2/search/suppliers
3030
# curl "$FRAGNET_SERVER:8080/fragnet-search/rest/v2/search/neighbourhood/OC(Cn1ccnn1)C1CC1?hac=3&rac=1&hops=2"
3131
# curl "$FRAGNET_SERVER:8080/fragnet-search/rest/v2/search/availability/OC(Cn1ccnn1)C1CC1"
3232
# curl "$FRAGNET_SERVER:8080/fragnet-search/rest/v2/search/expand/OC(Cn1ccnn1)C1CC1?hacMin=5&hacMax=10&racMin=3&racMax=3&hops=2"

fragnet-search/build.gradle

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,30 +118,27 @@ test {
118118
tasks.test.dependsOn("startNeoContainer")
119119
tasks.test.finalizedBy("stopNeoContainer")
120120

121-
task copyKeycloakJars(type: Copy) {
122-
from "../lib/keycloak-2.1.0-jars-tomcat8"
123-
into "build/libs/keycloak-2.1.0-jars-tomcat8/"
124-
include "*.jar"
125-
}
126121

127122
task buildDockerFile(type: Dockerfile) {
128123

129124
dependsOn = [
130-
war,
131-
copyKeycloakJars
125+
war
132126
]
133127

134128
destFile = project.file('build/Dockerfile')
135129
from "informaticsmatters/rdkit-tomcat-debian:Release_2019_09"
136130
label(['maintainer': 'Tim Dudgeon "[email protected]"'])
137131

138132
// include the keycloak adapters
139-
runCommand('''mkdir keycloak && cd keycloak && curl -s -o keycloak.tar.gz\
140-
https://downloads.jboss.org/keycloak/3.4.3.Final/adapters/keycloak-oidc/keycloak-tomcat8-adapter-dist-3.4.3.Final.tar.gz &&\
133+
runCommand('''mkdir keycloak &&\
134+
cd keycloak &&\
135+
curl -s -o keycloak.tar.gz\
136+
https://downloads.jboss.org/keycloak/10.0.2/adapters/keycloak-oidc/keycloak-tomcat-adapter-dist-10.0.2.tar.gz &&\
141137
tar xfz keycloak.tar.gz &&\
142138
rm keycloak.tar.gz &&\
143139
mv *.jar $CATALINA_HOME/lib &&\
144-
cd $CATALINA_HOME && rm -rf keycloak''')
140+
cd $CATALINA_HOME &&\
141+
rm -rf keycloak''')
145142

146143
addFile('./libs/fragnet-search*.war', "/usr/local/tomcat/webapps/")
147144
// need to unpack the zip as we need to mess with the keycloak related jars

0 commit comments

Comments
 (0)