forked from GMOD/docker-apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
21 lines (19 loc) · 958 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -ex
cd /apollo/ && \
echo '@import url("cpt.css");' >> client/apollo/css/main.css && \
cp /apollo/cpt.css client/apollo/css/cpt.css && \
./apollo deploy && \
cp /apollo/annot.json /apollo/web-app/jbrowse/plugins/WebApollo/json/annot.json && \
cp /apollo/annot.json /apollo/jbrowse-download/plugins/WebApollo/json/annot.json && \
cp /apollo/annot.json /apollo/client/apollo/json/annot.json && \
cp /apollo/AnnotTrack.js /apollo/client/apollo/js/View/Track/AnnotTrack.js && \
cp /apollo/AnnotTrack.js /apollo/web-app/jbrowse/plugins/WebApollo/js/View/Track/AnnotTrack.js && \
cp /apollo/AnnotTrack.js /apollo/jbrowse-download/plugins/WebApollo/js/View/Track/AnnotTrack.js && \
./apollo clean-all && ./apollo deploy && \
# Move to tmp dir
cp /apollo/target/apollo*.war /tmp/apollo.war && \
# remove cruft from image
rm -rf /apollo/ || true && \
# move the war back to standard location
mv /tmp/apollo.war /apollo/