Skip to content

Commit 5c60963

Browse files
committed
Reverting Cloud docker changes
1 parent 982f6ab commit 5c60963

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docker/sas-solr-cloud/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ RUN mvn $MVN_ARGS package
99
# runnable container stage
1010
FROM tomcat:9-jre11 AS runstage
1111
# 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/*
1413
# copy SAS from build image
1514
COPY --from=buildstage /usr/src/sas/target/simpleAnnotationStore /usr/local/tomcat/webapps/ROOT
16-
COPY --from=buildstage /usr/src/sas /usr/src/sas
1715
# copy properties
1816
COPY docker/sas-solr-cloud/sas.properties /usr/local/tomcat/webapps/ROOT/WEB-INF
1917

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+
2023
# use default port and entrypoint

docker/sas-solr/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ RUN mvn $MVN_ARGS package
99
# runnable container stage
1010
FROM tomcat:9-jre11 AS runstage
1111
# 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/*
1413
# copy SAS from build image
1514
COPY --from=buildstage /usr/src/sas/target/simpleAnnotationStore /usr/local/tomcat/webapps/ROOT
1615
# copy properties

travis/integration_tests.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ do
5252
running=`docker ps --filter "name=create-collection" |wc -l`
5353
done
5454
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
5755
# Due to the way docker-compose and SOLR works we can't access the SOLR cloud
5856
# from this machine. Instead we have to run the test within the cluster
5957
docker exec --workdir /usr/src/sas simpleannotationserver_web_1 /usr/bin/mvn test

0 commit comments

Comments
 (0)