Skip to content

Commit

Permalink
Merge pull request #129 from EBISPOT/dev
Browse files Browse the repository at this point in the history
update stable with plenty of changes from dev
  • Loading branch information
henrietteharmse authored Mar 29, 2023
2 parents e7aba11 + dccde5b commit c416ff8
Show file tree
Hide file tree
Showing 90 changed files with 3,599 additions and 42,960 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build & publish zooma images

on:
push:
branches: [ "dev", "stable" ]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push zooma Docker image
run: |
docker build -t ghcr.io/ebispot/zooma:${{ github.sha }} .
docker tag ghcr.io/ebispot/zooma:${{ github.sha }} ghcr.io/ebispot/zooma:${{ github.ref_name }}
docker push --all-tags ghcr.io/ebispot/zooma
16 changes: 0 additions & 16 deletions .gitlab-ci.yml

This file was deleted.

6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ ENV OJDBC6="https://www.oracle.com/webapps/redirect/signon?nexturl=https://downl
RUN wget $OJDBC6 -O /lib/ojdbc6.jar \
&& mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dpackaging=jar -Dversion=11.2.0.4 -Dfile=/lib/ojdbc6.jar \
&& test /root/.m2/repository/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar
RUN mvn install:install-file -DcreateChecksum=true -Dpackaging=jar -Dfile=/opt/zooma_github/zooma-lodestar/lib/jena-core-2.12.0.jar -DgroupId=org.apache.jena -DartifactId=jena-core -Dversion=2.12.0
RUN mvn install:install-file -DcreateChecksum=true -Dpackaging=jar -Dfile=/opt/zooma_github/zooma-lodestar/lib/jena-arq-2.12.0.jar -DgroupId=org.apache.jena -DartifactId=jena-arq -Dversion=2.12.0
RUN mvn install:install-file -DcreateChecksum=true -Dpackaging=jar -Dfile=/opt/zooma_github/zooma-lodestar/lib/lode-core-api-1.3.jar -DgroupId=ebi-lode -DartifactId=lode-core-api -Dversion=1.3
RUN mvn install:install-file -DcreateChecksum=true -Dpackaging=jar -Dfile=/opt/zooma_github/zooma-lodestar/lib/lode-virtuoso-impl-1.3.jar -DgroupId=ebi-lode -DartifactId=lode-virtuoso-impl -Dversion=1.3
RUN mvn install:install-file -DcreateChecksum=true -Dpackaging=jar -Dfile=/opt/zooma_github/zooma-ui/lib/jackson-mapper-asl-1.5.3.jar -DgroupId=org.codehaus.jackson -DartifactId=jackson-mapper-asl -Dversion=1.5.3
RUN mvn install:install-file -DcreateChecksum=true -Dpackaging=jar -Dfile=/opt/zooma_github/zooma-ui/lib/jackson-core-asl-1.5.3.jar -DgroupId=org.codehaus.jackson -DartifactId=jackson-core-asl -Dversion=1.5.3
RUN cd /opt/zooma_github && mvn clean package
RUN mkdir /opt/tmp && unzip /opt/zooma_github/zooma-builder-app/target/zooma-builder.zip -d /opt/tmp
RUN cp /opt/zooma_github/zooma-ui/target/zooma.war /usr/local/tomcat/webapps/
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ ZOOMA is an application for discovering optimal ontology mappings, developed by

## Deploying with Docker

The preferred method of deployment for ZOOMA is using Docker. First, create the
necessary volumes:
The preferred method of deployment for ZOOMA is using Docker. If you would like to deploy **the entire OntoTools stack** (OLS, OxO, and ZOOMA), check out the [OntoTools Docker Config](https://github.com/EBISPOT/ontotools-docker-config) repository. If you would like to deploy **ZOOMA only**, read on.

First, create the necessary volumes:

docker volume create --name=zooma-config

Then, start ZOOMA:

docker run -d --name zooma -p 8009:8080 -v zooma-config:/root/.zooma/config ebispot/zooma:latest
docker run -d --name zooma -p 8009:8080 -v zooma-config:/root/.zooma/config ebispot/zooma:stable

You should now be able to access ZOOMA at `http://localhost:8080`.
You should now be able to access ZOOMA at `http://localhost:8009`.

To configure ZOOMA, first stop the docker container:

Expand Down
64 changes: 64 additions & 0 deletions ols-client/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>zooma2</artifactId>
<groupId>uk.ac.ebi.fgpt</groupId>
<version>2.1.11-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>ols-client</artifactId>
<groupId>uk.ac.ebi.pride.utilities</groupId>
<version>2.9</version>

<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${org.slf4j.version}</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${org.slf4j.version}</version>
</dependency>
<!-- TODO - Review Spring Framework dependencies after issue PLIBT-138 is closed -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<!-- <version>4.2.5.RELEASE</version>-->
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<!-- <version>4.2.5.RELEASE</version>-->
<version>${org.springframework.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-context-support</artifactId>-->
<!-- &lt;!&ndash; <version>4.2.5.RELEASE</version>&ndash;&gt;-->
<!-- <version>${org.springframework.version}</version>-->
<!-- </dependency>-->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.7.3</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.commons</groupId>-->
<!-- <artifactId>commons-lang3</artifactId>-->
<!-- <version>3.4</version>-->
<!-- </dependency>-->
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package uk.ac.ebi.pride.utilities.ols.web.service.client;

import org.springframework.web.client.RestClientException;
import uk.ac.ebi.pride.utilities.ols.web.service.model.Ontology;
import uk.ac.ebi.pride.utilities.ols.web.service.model.Term;

import java.util.List;

/**
* @author Yasset Perez-Riverol ([email protected])
* Cration date 01/03/2016
*/
public interface Client {
/**
* This function retrieve the list of Ontologies in the OLS. Each ontology contain the summary description
* about the ontology including name, IDs, etc.
* @return List of ontologies.
*/
// Zooma
List<Ontology> getOntologies() throws RestClientException;


/**
* This function retrieve all the terms that contains in the name the partialName.
* @param partialName Substring to lookup in the name term
* @param ontologyId Ontology term
* @param reverseKeyOrder sort the hash in a reverse order
* @return list of terms.
*/
// Zooma
List<Term> getTermsByName(String partialName, String ontologyId, boolean reverseKeyOrder) throws RestClientException;

/**
* Retrieve an specific ontology information for an ID
* @param ontologyId ontology Identifier
* @return Ontology result.
* @throws RestClientException if there are problems connecting to the REST service.
*/
// Zooma
Ontology getOntology(String ontologyId) throws RestClientException;
}
Loading

0 comments on commit c416ff8

Please sign in to comment.