Skip to content

Commit e9af33b

Browse files
Merge pull request #136 from EBISPOT/dev
Survey banner and docker fix
2 parents 667e74f + 0c81b3a commit e9af33b

File tree

6 files changed

+87
-34
lines changed

6 files changed

+87
-34
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.tar.gz filter=lfs diff=lfs merge=lfs -text

.github/workflows/docker.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build & publish zooma images
33
on:
44
push:
55
branches: [ "dev", "stable" ]
6+
pull_request:
7+
branches:
8+
- dev
69

710
env:
811
REGISTRY: ghcr.io
@@ -17,6 +20,11 @@ jobs:
1720
steps:
1821
- name: Checkout repository
1922
uses: actions/checkout@v2
23+
with:
24+
lfs: true
25+
26+
- name: Pull Git LFS files
27+
run: git lfs pull
2028

2129
- name: Log in to the Container registry
2230
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
@@ -28,5 +36,10 @@ jobs:
2836
- name: Build and push zooma Docker image
2937
run: |
3038
docker build -t ghcr.io/ebispot/zooma:${{ github.sha }} .
31-
docker tag ghcr.io/ebispot/zooma:${{ github.sha }} ghcr.io/ebispot/zooma:${{ github.ref_name }}
39+
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
40+
TAG="PR-${{ github.event.pull_request.number }}"
41+
else
42+
TAG="${{ github.ref_name }}"
43+
fi
44+
docker tag ghcr.io/ebispot/zooma:${{ github.sha }} ghcr.io/ebispot/zooma:${TAG}
3245
docker push --all-tags ghcr.io/ebispot/zooma

Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@ ENV ZOOMA_OPTS="-Xms1g -Xmx4g"
66
RUN mkdir /opt/zooma_github /opt/zooma
77
RUN apt-get update && apt-get install -y nano maven
88
COPY . /opt/zooma_github/
9+
10+
RUN rm -rf /root/.m2/
11+
RUN tar -xvzf /opt/zooma_github/ols-client/lib/m2directory.tar.gz -C /root/
12+
913
ENV OJDBC6="https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/utilities_drivers/jdbc/11204/ojdbc6.jar"
1014
RUN wget $OJDBC6 -O /lib/ojdbc6.jar \
1115
&& mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dpackaging=jar -Dversion=11.2.0.4 -Dfile=/lib/ojdbc6.jar \
1216
&& test /root/.m2/repository/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar
17+
1318
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
1419
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
1520
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
1621
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
1722
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
1823
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
24+
1925
RUN cd /opt/zooma_github && mvn clean package
2026
RUN mkdir /opt/tmp && unzip /opt/zooma_github/zooma-builder-app/target/zooma-builder.zip -d /opt/tmp
2127
RUN cp /opt/zooma_github/zooma-ui/target/zooma.war /usr/local/tomcat/webapps/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ZOOMA is an application for discovering optimal ontology mappings, developed by
77

88
## Deploying with Docker
99

10-
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.
10+
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
1111

1212
First, create the necessary volumes:
1313

ols-client/lib/m2directory.tar.gz

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:5ead688d4717b109b0f0314b6126481244915bd7378184d2b6a4a80c8c1d87bc
3+
size 540467695

zooma-ui/src/main/frontend/src/pages/Home.tsx

+62-32
Original file line numberDiff line numberDiff line change
@@ -73,41 +73,71 @@ export default class Home extends Component<Props, State> {
7373

7474
return (
7575
<main>
76-
<Row>
77-
<h3>Query</h3>
78-
<Column small={12} medium={12}>
79-
<p>Use the text box to find possible ontology mappings for free text terms in the ZOOMA repository of curated annotation knowledge. You can add one term (e.g. 'Homo sapiens') per line. If you also have a type for your term (e.g. 'organism'), put this after the term, separated by a tab.
80-
If you are new to ZOOMA, take a look at our getting started guide.</p>
81-
</Column>
82-
<Column small={12} medium={12}>
83-
<Row>
76+
<Row>
77+
<div className="mt-4">
78+
<div style={{
79+
backgroundColor: '#b2dce8',
80+
padding: '12px 24px',
81+
borderRadius: '8px',
82+
marginBottom: '16px',
83+
textAlign: 'justify',
84+
overflowX: 'auto'
85+
}}>
86+
<p>
87+
Do data resources managed by EMBL-EBI and our collaborators make a difference to your
88+
work? <br/><br/>
89+
Please take 10 minutes to fill in our annual user survey, and help us make the case for
90+
why sustaining open data resources is critical for life sciences research.<br/><br/>
91+
Survey link: <a href="https://www.surveymonkey.com/r/HJKYKTT?channel=[webpage]"
92+
target="_blank">https://www.surveymonkey.com/r/HJKYKTT?channel=[webpage]</a>
93+
</p>
94+
</div>
95+
</div>
96+
</Row>
97+
<Row>
98+
<h3>Query</h3>
8499
<Column small={12} medium={12}>
85-
<Row className="align-right">
86-
<a onClick={this.onClickShowExamples}>
87-
Show me some examples...
88-
</a>
100+
<p>Use the text box to find possible ontology mappings for free text terms in the ZOOMA
101+
repository of curated annotation knowledge. You can add one term (e.g. 'Homo sapiens') per
102+
line. If you also have a type for your term (e.g. 'organism'), put this after the term,
103+
separated by a tab.
104+
If you are new to ZOOMA, take a look at our getting started guide.</p>
105+
</Column>
106+
<Column small={12} medium={12}>
107+
<Row>
108+
<Column small={12} medium={12}>
109+
<Row className="align-right">
110+
<a onClick={this.onClickShowExamples}>
111+
Show me some examples...
112+
</a>
113+
</Row>
114+
</Column>
115+
</Row>
116+
<Row>
117+
<textarea style={{minHeight: '300px'}} value={this.state.query}
118+
onChange={this.onEditQuery}></textarea>
89119
</Row>
90120
</Column>
91-
</Row>
92-
<Row>
93-
<textarea style={{minHeight: '300px'}} value={this.state.query} onChange={this.onEditQuery}></textarea>
94-
</Row>
95-
</Column>
96-
</Row>
97-
<Row>
98-
<h3>Datasources</h3>
99-
<Column small={12} medium={12}>
100-
<p>ZOOMA maps text to ontology terms based on curated mappings from selected datasources (more preferred), and by searching ontologies directly (less preferred). Here, you can select which curated datasources to use, optionally ranked in order of preference. You can also select which ontologies to search directly.</p>
101-
</Column>
102-
<Column small={12} medium={12}>
103-
{
104-
this.state.datasources &&
105-
this.state.datasourceConfig &&
106-
<Datasources datasources={this.state.datasources} datasourceConfig={this.state.datasourceConfig} onConfigChanged={this.onDatasourceConfigChanged} />
107-
}
108-
</Column>
109-
</Row>
110-
<br/>
121+
</Row>
122+
<Row>
123+
<h3>Datasources</h3>
124+
<Column small={12} medium={12}>
125+
<p>ZOOMA maps text to ontology terms based on curated mappings from selected datasources (more
126+
preferred), and by searching ontologies directly (less preferred). Here, you can select
127+
which curated datasources to use, optionally ranked in order of preference. You can also
128+
select which ontologies to search directly.</p>
129+
</Column>
130+
<Column small={12} medium={12}>
131+
{
132+
this.state.datasources &&
133+
this.state.datasourceConfig &&
134+
<Datasources datasources={this.state.datasources}
135+
datasourceConfig={this.state.datasourceConfig}
136+
onConfigChanged={this.onDatasourceConfigChanged}/>
137+
}
138+
</Column>
139+
</Row>
140+
<br/>
111141
<Row className="align-center">
112142
<button className="button large"
113143
disabled={this.state.searching}

0 commit comments

Comments
 (0)