-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: build, deploy, unpack, & run scripts...
Delete oldest file once we have ${directory.storage.maxcount} files in storage Clean up large temp file in finally block
- Loading branch information
1 parent
cf7067a
commit 362ebd5
Showing
12 changed files
with
105 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
.settings | ||
.vscode | ||
target/ | ||
lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
# dods-harvester | ||
# dods-harvester | ||
|
||
#### Build, deploy, and run | ||
```bash | ||
./build.sh && ./push-deploy.sh | ||
``` | ||
Then `ssh` to `maracoos-tds-harvest` and | ||
```bash | ||
cd /opt/dods-harvester | ||
./unpack-deploy.sh && ./run-harvester.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
mvn clean | ||
mvn install dependency:copy-dependencies | ||
mvn package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
mv target/dods-harvester*.jar target/dependency | ||
cd target/dependency | ||
tar -czf dods-harvester.tar.gz ./* | ||
scp dods-harvester.tar.gz maracoos-tds-harvest:/opt/dods-harvester/ | ||
rm -f dods-harvester.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
java -cp ".:lib/*" com.rpsgroup.HarvesterMain | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
|
||
<appender name="FILE" class="ch.qos.logback.core.FileAppender"> | ||
|
||
<file>/var/log/harvest/harvest.log</file> | ||
|
||
<encoder> | ||
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n | ||
</pattern> | ||
</encoder> | ||
|
||
</appender> | ||
|
||
<appender name="STDOUT" | ||
class="ch.qos.logback.core.ConsoleAppender"> | ||
|
||
<encoder> | ||
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n | ||
</pattern> | ||
</encoder> | ||
|
||
</appender> | ||
|
||
<root level="trace"> | ||
|
||
<appender-ref ref="FILE" /> | ||
<appender-ref ref="STDOUT" /> | ||
|
||
</root> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
rm -rf $(ls | grep -vE '(\.sh|tar\.gz)') | ||
tar -xf ./*.tar.gz | ||
rm -f ./*.tar.gz | ||
unzip dods-harvester*.jar | ||
mkdir lib/ | ||
mv *.jar lib/ | ||
|