Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Weigel committed Feb 1, 2019
1 parent 515c13e commit bcd10e1
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 31 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
tmp/
node_modules/*
*~
pkg/
pkg/bin
pkg/dist
pkg/python
pkg/tgz
pkg/GITHUB_TOKEN
public/data/QinDenton/
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,11 @@ A list of catalogs that are served using this sofware is given at [http://hapi-s
<a name="Installation"></a>
## 2. Installation

A [Docker image](https://cloud.docker.com/repository/docker/rweigel/hapi-server) as well as [Binary packages](https://github.com/hapi-server/server-nodejs/releases) are available for OS-X x64, Linux x64, and Linux ARMv7l (e.g., Rasberry Pi).
[Binary packages](https://github.com/hapi-server/server-nodejs/releases) are available for OS-X x64, Linux x64, and Linux ARMv7l (e.g., Rasberry Pi).

Installation and startup commands are given below the binary packages and docker image. See the [Development](#Development) section for instructions on installing from source.

Docker:
A [Docker image](https://cloud.docker.com/repository/docker/rweigel/hapi-server) is also available.

```
docker pull rweigel/hapi-server:v0.9.4
docker run -dit --name hapi-server-0.9.4 --expose 8999 -p 8999:8999 rweigel/hapi-server:v0.9.4
docker exec -it hapi-server-v0.9.4 ./hapi-server
```
Installation and startup commands are given below the binary packages and docker image. See the [Development](#Development) section for instructions on installing from source.

OS-X x64:

Expand All @@ -68,6 +62,14 @@ Linux ARMv7l:
./hapi-server --open
```

Docker:

```
docker pull rweigel/hapi-server:v0.9.4
docker run -dit --name hapi-server-0.9.4 --expose 8999 -p 8999:8999 rweigel/hapi-server:v0.9.4
docker exec -it hapi-server-v0.9.4 ./hapi-server
```

<a name="Examples"></a>
## 2. Examples

Expand Down Expand Up @@ -279,7 +281,7 @@ The default configuration file is `conf/config.json` and this location changed u
To set variables using environment variables, use, e.g.,
```
PYTHONEXE=/opt/python/bin/python ./hapiserver
PYTHONEXE=/opt/python/bin/python ./hapi-server
```
Variables set as environment variable take precendence over those set in `conf/config.json`.
Expand All @@ -299,7 +301,7 @@ All relative paths in commands in metadata files are relative to the directory w
For example, if
```
/tmp/hapi-server-0.9.4
/tmp/hapi-server
```
is executed from `/home/username`, the file
Expand Down Expand Up @@ -441,7 +443,7 @@ The server node has the form
The `id` is by default the name of the server configuration file, e.g.,
```
./hapiserver --file metadata/TestData.json
./hapi-server --file metadata/TestData.json
```
then `id=TestData` and `prefix=TestData`.
Expand Down Expand Up @@ -587,6 +589,9 @@ git clone https://github.com/hapi-server/server-nodejs
# Install dependencies
cd server-nodejs; npm install
# Start server
node server.js
# Run tests
node test/test.js
```
Expand Down
10 changes: 6 additions & 4 deletions pkg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@ node:
# Don't need to do for OS-X as it ships with OS. Smaller Linux
# distros don't include Python, so have it in case needed.
# TODO: Finish python.py.
python: python.py
cp python.py python/
cd python/; pyinstaller python.py --onefile
#cp python/dist/python bin/python-$(OS)

pv=`python --version 2>&1 | cut -d' ' -f2`
python:
cd python/; mkdir tmp; cp python.py tmp/
cd python/tmp; pyinstaller python.py --onefile
cp python/tmp/dist/python bin/python-$(pv)-$(OS)

files:
rm -rf dist/hapi-server-$(VERSION)
Expand Down
14 changes: 0 additions & 14 deletions pkg/python.py

This file was deleted.

0 comments on commit bcd10e1

Please sign in to comment.