https://github.com/databio/bioterms
Content and Dockerfile for the bioterms.org site
https://github.com/databio/bioterms
Last synced: 4 months ago
JSON representation
Content and Dockerfile for the bioterms.org site
- Host: GitHub
- URL: https://github.com/databio/bioterms
- Owner: databio
- Created: 2018-11-05T14:05:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-11T13:39:34.000Z (about 7 years ago)
- Last Synced: 2025-09-11T10:15:53.840Z (10 months ago)
- Language: HTML
- Homepage: http://bioterms.org
- Size: 78.1 KB
- Stars: 1
- Watchers: 15
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BioTerms
BioTerms.org is a community initiative to define and promote schemas for structured epigenome annotation data. More details can be found at [bioterms.org](http://bioterms.org).
## Contents
This repo contains the JSON-LD schemas served by bioterms.org. It also includes a Dockerfile to create a Docker image running Apache2 web server serving these schemas. If you decide to build the Docker image and serve the contents as a Docker container, please edit the `httpd.conf` file found in the `docker/apache_conf` sub directory -- make sure that the port and DNS name are correct, as the Apache web server is set up to use virtual hosts to run the website and serve the schemas.
The actual JSON-LD schemas are in the `docker/schemas` subdirectory.
## How to change/add html/js/css and other contents
Add whatever it is you want to add to the `docker/contents/` sub-dir. The contents of this directory get copied into `/usr/local/apache2/htdocs` in the container.
## How to run the image
```
cd docker
docker build -t bioterms-docker-image .
docker run -dit --name bioterms -p 8889:80 bioterms-docker-image:latest
```
The above will expose port 8889 (which is what we use to serve the contents on). In our setup we use Traefik (https://traefik.io/) to run multiple domains on the same machine (episb.org, bioterms.org etc.), all as Docker images. Traefik will take care of all the port/DNS forwarding in this scenario.
You can then stop the container with:
```
docker stop bioterms
```
## How to serve the contents without a Docker image
If you have a dedicated machine to run Apache and want to serve the contents, make use to use the included httpd.conf file - copy it into the appropriate Apache conf directory (e.g. /etc/httpd/conf or /usr/local/apache2/conf) and make sure to edit the file to reflect the correct DocumentRoot and ServerRoot directories. The schemas/ sub directory and its contents should be copied into /var/www/html (or /usr/local/apache2/htdocs, or wherever DocumentRoot is set to point). After starting Apache, it should serve all the schemas properly. Do not forget to comment out the VirtualHost section or change it to make it appropriate for your situation.