-
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 readme docs for development and fix scripts
- Loading branch information
1 parent
ffcdc02
commit ad62a97
Showing
3 changed files
with
94 additions
and
33 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
[[ -f ./.env ]] && export $(grep -v '^#' .env | xargs) | ||
|
||
if [ -f .env ]; then | ||
source .env | ||
fi | ||
docker exec -it "${CONTAINER_NAME:-erddap}" bash -c "cd webapps/erddap/WEB-INF/ && bash GenerateDatasetsXml.sh -verbose $*" \ |
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,30 @@ | ||
# see the .env file to set the variables used here | ||
version: "2" | ||
services: | ||
erddap: | ||
image: "axiom/docker-erddap:2.23-jdk17-openjdk" | ||
restart: always | ||
container_name: ${CONTAINER_NAME:-erddap} | ||
platform: linux/x86_64 | ||
env_file: | ||
- .env | ||
ports: | ||
- "${HOST_PORT:-8090}:8080" | ||
volumes: | ||
- "./erddap/conf/robots.txt:/usr/local/tomcat/webapps/ROOT/robots.txt" | ||
- "./erddap/content:/usr/local/tomcat/content/erddap" | ||
- "./erddap/data:/erddapData" | ||
- "${DATASETS_DIR:-./datasets}:/datasets" | ||
- "./datasets.d:/datasets.d:ro" | ||
- "./init.d:/init.d" | ||
# - "/mnt/efs/algex:/algae_explorer" | ||
- "./datasets.d:/datasets.d" | ||
healthcheck: | ||
test: | ||
[ | ||
"CMD", | ||
"curl", | ||
"-f", | ||
"http://localhost:${HOST_PORT}/erddap/index.html" | ||
] | ||
interval: 10s |