https://github.com/dmitryduev/ztf-alerts-demo
For the ZTF Summer School 2018
https://github.com/dmitryduev/ztf-alerts-demo
Last synced: about 2 months ago
JSON representation
For the ZTF Summer School 2018
- Host: GitHub
- URL: https://github.com/dmitryduev/ztf-alerts-demo
- Owner: dmitryduev
- Created: 2018-07-17T19:21:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T04:15:26.000Z (over 2 years ago)
- Last Synced: 2024-10-07T12:42:24.719Z (8 months ago)
- Language: Jupyter Notebook
- Homepage: https://github.com/ZwickyTransientFacility/ztfss18
- Size: 144 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### ZTF alerts demo
#### Download and install Docker and Robo 3T
- Download and install the appropriate version of Docker from [here](https://www.docker.com/community-edition).
You will need to create an account on their website.
- Download and install Robo 3T from [here](https://robomongo.org/download).
We will use it to connect to the database.#### Fetch, build, and run the code
Clone the repo and cd to the directory:
```bash
git clone https://github.com/dmitryduev/ztf-alerts-demo.git
cd ztf-alerts-demo
```Create a persistent Docker volume for MongoDB:
```bash
docker volume create alert-fetcher-mongo-volume
```Launch the MongoDB container. Feel free to change u/p for the admin
```bash
docker run -d --restart always --name alert-fetcher-mongo -p 27018:27017 -v alert-fetcher-mongo-volume:/data/db \
-e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=mongoadminsecret \
mongo:latest
```Build and launch the alert-fetcher container. Bind-mount a directory on the host machine to store the alerts:
```bash
cd alert-fetcher
docker build -t alert-fetcher -f Dockerfile .
docker run -v /path/to/store/alerts:/alerts \
--name alert-fetcher -d --link alert-fetcher-mongo:mongo -it alert-fetcher
```