File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,15 @@ RUN mvn $MVN_ARGS package
9
9
# runnable container stage
10
10
FROM tomcat:9-jre11 AS runstage
11
11
# remove tomcat default webapps and create data directory
12
- RUN rm -r /usr/local/tomcat/webapps/* && \
13
- mkdir /annotation-data
12
+ RUN rm -r /usr/local/tomcat/webapps/*
14
13
# copy SAS from build image
15
14
COPY --from=buildstage /usr/src/sas/target/simpleAnnotationStore /usr/local/tomcat/webapps/ROOT
16
- COPY --from=buildstage /usr/src/sas /usr/src/sas
17
15
# copy properties
18
16
COPY docker/sas-solr-cloud/sas.properties /usr/local/tomcat/webapps/ROOT/WEB-INF
19
17
18
+ # Used for testing:
19
+ COPY . /usr/src/sas
20
+ RUN apt-get update && apt-get -y install maven
21
+ COPY docker/sas-solr-cloud/sas.properties /usr/src/sas/src/test/resources/test.properties
22
+
20
23
# use default port and entrypoint
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ RUN mvn $MVN_ARGS package
9
9
# runnable container stage
10
10
FROM tomcat:9-jre11 AS runstage
11
11
# remove tomcat default webapps and create data directory
12
- RUN rm -r /usr/local/tomcat/webapps/* && \
13
- mkdir /annotation-data
12
+ RUN rm -r /usr/local/tomcat/webapps/*
14
13
# copy SAS from build image
15
14
COPY --from=buildstage /usr/src/sas/target/simpleAnnotationStore /usr/local/tomcat/webapps/ROOT
16
15
# copy properties
Original file line number Diff line number Diff line change 52
52
running=` docker ps --filter " name=create-collection" | wc -l`
53
53
done
54
54
docker exec -t solr1 /opt/docker-solr/scripts/wait-for-solr.sh --max-attempts 10 --wait-seconds 5 --solr-url http://0.0.0.0:8983/
55
- docker ps
56
- docker logs simpleannotationserver_web_1
57
55
# Due to the way docker-compose and SOLR works we can't access the SOLR cloud
58
56
# from this machine. Instead we have to run the test within the cluster
59
57
docker exec --workdir /usr/src/sas simpleannotationserver_web_1 /usr/bin/mvn test
You can’t perform that action at this time.
0 commit comments