Skip to content

Commit

Permalink
modernizing the thredds radar server
Browse files Browse the repository at this point in the history
  • Loading branch information
julienchastang committed May 5, 2023
1 parent 430e528 commit 7363a1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 60 deletions.
27 changes: 1 addition & 26 deletions .org/vms/thredds-aws/readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ We will be making heavy use of the ~Unidata/science-gateway~ git repository.
From the =~/science-gateway/vms/thredds-aws= directory:

#+BEGIN_SRC shell :tangle no :exports code
docker build -t unidata/nexrad-tds-docker:latest .
docker build -t unidata/thredds-docker:<5-version> .
#+END_SRC

** Start TDS With Docker and docker-compose
Expand Down Expand Up @@ -102,31 +102,6 @@ You will need Apache Tomcat and TDS log directories:
mkdir -p /logs/tds/
#+END_SRC

** S3Objects Directory
:PROPERTIES:
:CUSTOM_ID: h-F6EBEBDF
:END:

*** Create S3Objects Directory
:PROPERTIES:
:CUSTOM_ID: h-763C22DA
:END:

Files served out of S3 are first written to local file system, then served via THREDDS.

#+BEGIN_SRC shell :tangle ../../../vms/thredds-aws/thredds-aws-install.sh
mkdir -p ~/S3Objects
#+END_SRC

*** Scour S3Objects Directory
:PROPERTIES:
:CUSTOM_ID: h-483C35F9
:END:

#+BEGIN_SRC shell :tangle ../../../vms/thredds-aws/thredds-aws-install.sh
(crontab -l ; echo "*/5 * * * * find ~/S3Objects -mindepth 1 -mmin +15 -delete")| crontab -
#+END_SRC

** SSL Certificate
:PROPERTIES:
:CUSTOM_ID: h-0B00E7AE
Expand Down
4 changes: 2 additions & 2 deletions vms/thredds-aws/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: '3'

services:
thredds-production:
image: unidata/nexrad-tds-docker:4.6.20
image: unidata/thredds-docker:<5-version>
container_name: thredds
# restart: always
ports:
Expand All @@ -23,9 +23,9 @@ services:
# HTTPS
- ./files/keystore.jks:/usr/local/tomcat/conf/keystore.jks
- ./files/server.xml:/usr/local/tomcat/conf/server.xml
- ./files/web.xml:/usr/local/tomcat/conf/web.xml
# AWS TDS Nexrad server
- ~/tdsconfig/:/usr/local/tomcat/content/thredds/
- ~/S3Objects/:/usr/local/tomcat/temp/S3Objects/
- ~/files/credentials:/usr/local/tomcat/.aws/credentials
env_file:
- "compose${THREDDS_COMPOSE_ENV_LOCAL}.env"
36 changes: 4 additions & 32 deletions vms/thredds-aws/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
- [Supply Contact and Host Information in threddsConfig.xml](#h-615B0684)
- [TDS log Directories](#h-F52D01A2)
- [Create log Directories](#h-99E9AD76)
- [S3Objects Directory](#h-F6EBEBDF)
- [Create S3Objects Directory](#h-763C22DA)
- [Scour S3Objects Directory](#h-483C35F9)
- [SSL Certificate](#h-0B00E7AE)
- [Ports 80, 443 and 8443](#h-1541998B)
- [docker-compose.yml](#h-B1EEBC0A)
Expand Down Expand Up @@ -49,7 +46,7 @@ git clone https://github.com/Unidata/science-gateway ~/science-gateway
From the `~/science-gateway/vms/thredds-aws` directory:

```shell
docker build -t unidata/nexrad-tds-docker:latest .
docker build -t unidata/thredds-docker:<version> .
```


Expand Down Expand Up @@ -109,31 +106,6 @@ mkdir -p /logs/tds/
```


<a id="h-F6EBEBDF"></a>

## S3Objects Directory


<a id="h-763C22DA"></a>

### Create S3Objects Directory

Files served out of S3 are first written to local file system, then served via THREDDS.

```shell
mkdir -p ~/S3Objects
```


<a id="h-483C35F9"></a>

### Scour S3Objects Directory

```shell
(crontab -l ; echo "*/5 * * * * find ~/S3Objects -mindepth 1 -mmin +15 -delete")| crontab -
```


<a id="h-0B00E7AE"></a>

## SSL Certificate
Expand Down Expand Up @@ -169,9 +141,9 @@ version: '3'

services:
thredds-production:
image: unidata/nexrad-tds-docker:latest
image: unidata/thredds-docker:5.5-SNAPSHOT
container_name: thredds
# restart: always
restart: always
ports:
- "80:8080"
- "443:8443"
Expand All @@ -187,9 +159,9 @@ services:
# HTTPS
- ./files/keystore.jks:/usr/local/tomcat/conf/keystore.jks
- ./files/server.xml:/usr/local/tomcat/conf/server.xml
- ./files/web.xml:/usr/local/tomcat/conf/web.xml
# AWS TDS Nexrad server
- ~/tdsconfig/:/usr/local/tomcat/content/thredds/
- ~/S3Objects/:/usr/local/tomcat/temp/S3Objects/
- ~/files/credentials:/usr/local/tomcat/.aws/credentials
env_file:
- "compose${THREDDS_COMPOSE_ENV_LOCAL}.env"
Expand Down

0 comments on commit 7363a1d

Please sign in to comment.