https://github.com/drmacro/docker-basexhttp
A docker image for Basex including the BaseX HTTP Server
https://github.com/drmacro/docker-basexhttp
Last synced: 6 months ago
JSON representation
A docker image for Basex including the BaseX HTTP Server
- Host: GitHub
- URL: https://github.com/drmacro/docker-basexhttp
- Owner: drmacro
- Created: 2016-01-29T19:38:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-11T19:23:21.000Z (over 9 years ago)
- Last Synced: 2025-01-29T21:54:52.779Z (over 1 year ago)
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BaseX Dockerfile
This repository contains **Dockerfile** of [BaseX](http://basex.org/) for [Docker](https://www.docker.com/).
## Installation
1. Install [Docker](https://www.docker.com/).
2. Simplest is to download our [automated build](https://hub.docker.com/r/basex/docker-basexhttp/) by running `docker pull basex/basexhttp`
Otherwise, you could clone this repository by running `git clone git@github.com:dirkk/docker-basexhttp.git` and build the docker image `docker build -t basexhttp .`
## Usage
docker run -p 80:8984 --rm -it --name=basexhttp basex/basexhttp
This will run BaseX with the HTTP port listening on port 80 (the default HTTP port).
### Attach persistent/shared directories
docker run -p 80:8984 -p 1984:1984 --name basexhttp -v :/data -v :/repo -v :/webapp --rm -it basex/basexhttp
This will attach your directories (which you have to define in the `<>` parts) as data, repo and restxq directories, respectively.
Also, it will bind the BaseX server port, so you can access the BaseX Server using a BaseX Client.
If you want to start the process in the background you can use the flag `-d` and drop the `--rm -it` flags.
Open `http://localhost` in your browser to see your RESTXQ page.
Under Windows and OS X you need to use the IP address of the Docker machine, which you can get using the command:
~~~~
docker-machine ip default
~~~~
E.g.: `http://192.168.99.100:80`
## Use a different BaseX version
We do use tagged automated builds, so you can download a different docker build at our [build page](https://registry.hub.docker.com/u/dirkk/basexhttp/builds_history/261655/). For example, to use BaseX 8.2 you can issue
docker pull basex/basexhttp:8.2