https://github.com/dmitryduev/cftda
Caltech Center for Time Domain Astronomy public website
https://github.com/dmitryduev/cftda
Last synced: about 2 months ago
JSON representation
Caltech Center for Time Domain Astronomy public website
- Host: GitHub
- URL: https://github.com/dmitryduev/cftda
- Owner: dmitryduev
- Created: 2018-04-12T00:44:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T08:36:11.000Z (about 7 years ago)
- Last Synced: 2025-02-08T11:15:53.162Z (3 months ago)
- Language: JavaScript
- Size: 11.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Caltech Center for Time Domain Astronomy
## Deploy with Docker.
TODO: move to docker-compose.yml### Create persistent volumes for db and media files (if it has not been created yet)
```bash
docker volume create cftda-db
docker volume create cftda-media
```### build and start the container
```bash
docker build -t cftda-server -f Dockerfile .
docker run -d -p 8005:8005 --restart always --name cftda-server -v cftda-db:/cftda-db -v cftda-media:/cftda-media -it cftda-server
# test-start:
docker run --rm -p 8005:8005 --name cftda-server -v cftda-db:/cftda-db -v cftda-media:/cftda-media -it cftda-server
```You can attach (as root) to a running Docker container like this:
```bash
docker exec -u root -i -t cftda-server /bin/bash
```If you have a (pre-)populated `sqlite3` db or want to reuse the one from this repo,
copy it over to the persistent volume:
```bash
cp db.sqlite3 /cftda-db
```Analogously, do the same for the media files:
```bash
cp -r media/* /cftda-media
```