Added some documentation and copyright notice.

parent bb51bdb7
...@@ -41,16 +41,14 @@ Subdirectories: ...@@ -41,16 +41,14 @@ Subdirectories:
webserver: webserver:
htdocs: Web pages containing the VR software and documentation. htdocs: Web pages containing the VR software and documentation.
cgi-bin: cgi scripts to create suitable config files from a material number. cgi-bin: cgi scripts to create suitable config files from a material
(material id from NOMAD Encyclopedia or NOMAD schema from Archive).
See Readme.md in this folder for details
containerization:
Docker container running the VR webservices Docker container running the VR webservices
# install docker See Readme.md in this folder for details
# add your NOMAD username and password in webserver/pass
# build container
sudo docker build -t nomadvr .
# run container
sudo docker run -d -p 8080:8080 nomadvr
# Test e.g. with you.rip.add.res:8080/cgi-bin/NOMAD/material?109702
RemoteVisualization: NOMAD2xyz app RemoteVisualization: NOMAD2xyz app
Transforms a json from encyclopedia or archive into an XYZ file Transforms a json from encyclopedia or archive into an XYZ file
......
# Copyright 2018 Atte Silanpää
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# note, copy this file to VR-demos folder first # note, copy this file to VR-demos folder first
FROM bitnami/apache:2.4 FROM bitnami/apache:2.4
...@@ -9,7 +23,7 @@ COPY ./webserver/pass /opt/bitnami/apache/ ...@@ -9,7 +23,7 @@ COPY ./webserver/pass /opt/bitnami/apache/
# allow cgi-bin # allow cgi-bin
RUN sed -i 's%#LoadModule cgid_module modules/mod_cgid.so%LoadModule cgid_module modules/mod_cgid.so%' /opt/bitnami/apache/conf/httpd.conf RUN sed -i 's%#LoadModule cgid_module modules/mod_cgid.so%LoadModule cgid_module modules/mod_cgid.so%' /opt/bitnami/apache/conf/httpd.conf
# add wget. gzip, curl, tar are there by default # add wget and zip. gzip, curl, tar are there by default
USER root USER root
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y wget \ && apt-get install -y wget \
......
Docker file to build a container to perform the VR conversion webservices Docker file to build a container to perform the VR conversion webservices
* Check ../webserver/README.md
* copy the Dockerfile to .. (VR-demos -folder) * copy the Dockerfile to .. (VR-demos -folder)
* install docker * install docker
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment