Commit 82fd2bcb authored by priit's avatar priit

docker kirjeldus

parent b42d3f57
# Projekti käivitamine dockeriga
# Projekti käivitamine dockeriga (Ubuntu)
* Paigalda Docker: http://docs.docker.com/engine/installation/
* KÄIVITA REDIS SERVER
......@@ -6,19 +8,29 @@ $ docker run --name kl_redis -d redis
* Lae alla keeleliin-wrapper-service Dockerfile
* Loo dockeri Image fail
* Vajadusel lisa Dockerfile lisakirjeldusel vajalike programmide jaoks või paigalda need hiljem käsitsi
* Loo dockeri Image fail (kl_wrapper_name - Image nimi)
$ docker build -t kl_wrapper_name .
* Loo seadistust teenuse faili jaoks dockeri väline kaust
$ mkdir -p /wrapper/concat
* Käivita loodud kl_wrapper_name
$ docker run --name kl_wrapper_name -it -d --link kl_redis:redis -p 3000:3000 -v /wrapper/concat:/config kl_wrapper_name
* Muuda teenuse seadistusi /wrapper/concat/config.js
* Uuenda teenust
* Soovi korral tee konteineris toiminguid
$ docker exec kl_wrapper_name /src/docker_update.sh
$ docker exec -it kl_wrapper_name bash
* Välju konteinerist: Ctrl+P Ctrl+Q
* Uuenda teenust
$ docker exec kl_wrapper_name /src/docker_update.sh
......@@ -32,10 +32,7 @@ function LocalExecutor() {
var process = spawn(command, commandParams);
logger.debug('Created process: ', process);
session.pid = process.pid;
session.addLog({command: command, attributes: commandParams});
async.waterfall([
......
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