Projects/Docker based pluggable webservices for RPI: Difference between revisions

From Playful Exploration
Jump to navigation Jump to search
Line 49: Line 49:
|}
|}


== Usage ==
== Usage/Steps ==
# Install Docker on the RPI
=== Install Docker ===
# ...
[https://www.playfulexploration.com/wiki/index.php?title=Install/Docker#Installation_on_Raspberian Install Docker on the RPI.]
 
=== Build and spawn: Nginx Container ===
Build docker image by referencing git, no need to clone first:
<syntaxhighlight lang=bash>
docker build -t playfulexploration/rpi-nginx https://github.com/playfulexploration/rpi-docker.git#master:rpi-nginx
</syntaxhighlight>
 
Create a network named 'nw' and run the the nginx container.
<syntaxhighlight lang=bash>
docker network create nw
docker run -d --restart=always --name nginx -h nginx --net=nw -p 80:80 -p 443:443 playfulexploration/rpi-nginx
</syntaxhighlight>
 
Use a web-browser and navigate to your RPI. Nginx should respond with an HTML page saying 'Welcome to nginx!'.
<syntaxhighlight lang=bash>
curl http://localhost
</syntaxhighlight>
 
=== Build and spawn: InfluxDB Container ===
 
=== Other notes ===
Clone all:
<syntaxhighlight lang=bash>
git clone https://github.com/playfulexploration/rpi-docker.git
</syntaxhighlight>

Revision as of 06:33, 4 September 2016

Goal

Create an extensible Nginx configuration for docker based pluggable webservices.

Create docker based web services as needed for different projects

Related links:

Project Repositories

github : https://github.com/playfulexploration/rpi-docker - Dockerfiles used to create docker images
dockerhub : https://hub.docker.com/r/playfulexploration/rpi-docker/ - Docker images

Docker Images and Status

Dockerfile Status Detail
rpi-nginx In progress Starts nginx as docker service. Still needs conf file.
rpi-influxdb In progress Starts influxdb as docker service. Needs configuration for ease of use.
rpi-nlp On hold Starts Stanford's Natural Language Processor as Web Service. Runs out of memory on RPI3.
rpi-grafana Not started
rpi-mosquitto Not started
rpi-nodered Not started
add more here...

Usage/Steps

Install Docker

Install Docker on the RPI.

Build and spawn: Nginx Container

Build docker image by referencing git, no need to clone first:

docker build -t playfulexploration/rpi-nginx https://github.com/playfulexploration/rpi-docker.git#master:rpi-nginx

Create a network named 'nw' and run the the nginx container.

docker network create nw
docker run -d --restart=always --name nginx -h nginx --net=nw -p 80:80 -p 443:443 playfulexploration/rpi-nginx

Use a web-browser and navigate to your RPI. Nginx should respond with an HTML page saying 'Welcome to nginx!'.

curl http://localhost

Build and spawn: InfluxDB Container

Other notes

Clone all:

git clone https://github.com/playfulexploration/rpi-docker.git