-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from xspanger3770/docker_or_something_idk
Dockerize GQ Server
- Loading branch information
Showing
6 changed files
with
159 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#Fun fact: I've never felt an earthquake in my life | ||
#Fri Nov 10 14:33:39 CET 2023 | ||
displayTime=true | ||
oldEventsOpacity=100.0 | ||
stationIntensityVisibilityZoomLevel=0.2 | ||
focusOnEvent=true | ||
alertLocal=true | ||
fpsIdle=30 | ||
displayHomeLocation=true | ||
hypocenterDetectionResolution=212.0 | ||
stationsTriangles=false | ||
alertGlobal=true | ||
displayMagnitudeHistogram=true | ||
alertRegion=true | ||
alertGlobalMag=6.0 | ||
selectedDateFormatIndex=0 | ||
intensityScaleIndex=0 | ||
reduceRevisions=true | ||
alertRegionMag=3.5 | ||
selectedEventColorIndex=0 | ||
alertLocalDist=200.0 | ||
use24HFormat=true | ||
displayClusters=false | ||
cinemaModeOnStartup=true | ||
distanceUnitsIndex=0 | ||
displayAdditionalQuakeInfo=false | ||
jumpToAlert=true | ||
hypocenterCorrectThreshold=50.0 | ||
displayCoreWaves=false | ||
displayAlertBox=true | ||
shakingLevelIndex=0 | ||
strongShakingLevelScale=0 | ||
shakingLevelScale=0 | ||
strongShakingLevelIndex=5 | ||
recalibrateOnLaunch=true | ||
oldEventsTimeFilterEnabled=false | ||
lastServerIP=0.0.0.0 | ||
parallelHypocenterLocations=true | ||
confidencePolygons=false | ||
displaySystemInfo=true | ||
displayArchivedQuakes=true | ||
homeLon=0.0 | ||
logsStoreTimeMinutes=5 | ||
maxEvents=300 | ||
oldEventsMagnitudeFilter=4.0 | ||
pWaveInaccuracyThreshold=2200.0 | ||
hideDeadStations=false | ||
cinemaModeSwitchTime=10 | ||
homeLat=0.0 | ||
stationsSizeMul=1.0 | ||
lastServerPORT=38000 | ||
enableSound=true | ||
oldEventsMagnitudeFilterEnabled=false | ||
antialiasing=false | ||
oldEventsTimeFilter=24.0 | ||
cinemaModeReenable=true | ||
minimumStationsForEEW=6 | ||
maxArchivedQuakes=100 | ||
cinemaModeZoomMultiplier=100 | ||
alertRegionDist=1000.0 | ||
useOldColorScheme=false | ||
reportsEnabled=false |
Binary file not shown.
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,37 @@ | ||
FROM ubuntu:22.04 | ||
LABEL authors="xspanger3770" | ||
|
||
# Update the package list and install essential dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
openjdk-17-jdk \ | ||
maven \ | ||
build-essential \ | ||
curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install NVIDIA CUDA Toolkit | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ | ||
apt-get install -y \ | ||
nvidia-cuda-toolkit \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Set environment variables for CUDA | ||
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH | ||
ENV PATH=/usr/local/cuda/bin:$PATH | ||
|
||
|
||
# Set the working directory inside the container | ||
WORKDIR /usr/src/app | ||
|
||
# Copy the application JAR file into the container at the working directory | ||
COPY out/artifacts/GlobalQuakeServer/GlobalQuakeServer_v0.10.0_pre5.jar . | ||
|
||
# Copy station database and configuration files | ||
COPY Container ./.GlobalQuakeServerData | ||
|
||
# Copy CUDA library | ||
COPY GQHypocenterSearch/build/lib ./lib | ||
|
||
# Run GQ Server | ||
CMD ["java", "-jar", "-Dtinylog.writer.level=debug", "-Djava.library.path=./lib", "GlobalQuakeServer_v0.10.0_pre5.jar", "--headless"] |
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
6 changes: 6 additions & 0 deletions
6
GlobalQuakeCore/src/main/java/globalquake/ui/ProgressUpdateFunction.java
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 @@ | ||
package globalquake.ui; | ||
|
||
@FunctionalInterface | ||
public interface ProgressUpdateFunction { | ||
void update(String status, int value); | ||
} |
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