vpicavet / docker-3dgis

A full OpenSource 3D GIS stack for easy setup with Docker
GNU General Public License v2.0
4 stars 2 forks source link

Docker image can`t be runed. #2

Closed LVladymyr closed 8 years ago

LVladymyr commented 8 years ago

Docker image can`t be runed. It leaves in cycle after runing and write next messages:

xxx@yyy:~/Projects/docker-3dgis$ docker run --rm -p 5423:5432 -p 80:80 --name 3dgis_test oslandia/3dgis /sbin/my_init*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/init_db_script.sh...
Waiting for PostgreSQL to run...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 10
./run: 3: ./run: source: not found
Jan 20 07:56:04 9a0aaa70de32 syslog-ng[20]: syslog-ng starting up; version='3.5.3'
PostgreSQL running, initializing database.
./run: 3: ./run: source: not found
CREATE ROLE
Creating a new empty database...
CREATE DATABASE
./run: 3: ./run: source: not found
WARNING:  type input function pointcloud_abs_in should not be volatile
WARNING:  type output function pointcloud_abs_out should not be volatile
CREATE TYPE
Database initialized. Connect from host with :
psql -h localhost -p <PORT> -U pggis -W pggis
Get <PORT> value with 'docker ps'
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found
./run: 3: ./run: source: not found

Although, base image oslandia/pggis sarts correctly.

I`m not good with linux developing and python. But I think the issue in _/sbin/myinit in next lines

info("Booting runit daemon...")
        pid = os.spawnl(os.P_NOWAIT, "/usr/bin/runsvdir", "/usr/bin/runsvdir",
                "-P", "/etc/service")
LVladymyr commented 8 years ago

@vpicavet I fixed this fault and shared the changes with pull request