Hi Florian,

I think you can integrate the PostGIS service into the service folder of the 
cli [1].

You could also place the init script in there and map the folder as a volume as 
you did.
Do you see a problem with this integration?

An advantage would be that users can have a look at the script and change 
things if necessary.

Philipp 

[1] 
https://github.com/apache/incubator-streampipes-installer/tree/master/cli/services
 
<https://github.com/apache/incubator-streampipes-installer/tree/master/cli/services>

> On 22. May 2020, at 19:42, Florian Micklich <mickl...@apache.org> wrote:
> 
> Hiho,
> 
> I want to start implementing a new service for the StreamPipes
> installer called postgis which, as the name suggests, uses PostGIS [1].
> 
> This service is intended for a geo-sink as well as for some internal
> use in certain Geo-PE's.
> 
> 
> Therefore I created already a docker-compose file and also an initial
> setup script (for testing I had to comment out some parts)
> 
> 
>   version: "2.0"
> 
>   services:
>     postgis:
>       image: postgis/postgis
>       ports:
>         - 54321:5432
>       environment:
>          POSTGRES_USER: geo_streampipes
>          POSTGRES_PASSWORD: [LIKEPOSTGRES]
>       volumes:
>         - ./scripts/init.sql:/docker-entrypoint-initdb.d/01_init.sql
>       # extra_hosts:
>       #   - host.docker.internal:${HOST_DOCKER_INTERNAL}
>       # networks:
>       #   spnet:
> 
>   volumes:
>     postgis:
> 
>   # networks:
>   #   spnet:
>   #     external: true
> 
> 
> So how can this be part of the StreamPipes installer as a service?
> 
> Another option would be to create an own docker "streampipes_postgis"
> image and the initial script would be already implemented.
> 
> The own image would be nicer and cleaner in my point of view.
> 
> What do you think?
> 
> 
> Greetings
> Florian
> 

.........................................................
M. Sc. Philipp Zehnder
Wissenschaftlicher Mitarbeiter | Research Scientist
Information Process Engineering (IPE)
 
FZI Forschungszentrum Informatik
Haid-und-Neu-Str. 10–14 
76131 Karlsruhe, Germany
Tel.: +49 721 9654-805
Fax: +49 721 9654-806

zehn...@fzi.de <mailto:zehn...@fzi.de>
https://www.fzi.de/mitarbeiter/philipp-zehnder
 
.........................................................
FZI Forschungszentrum Informatik
Stiftung des bürgerlichen Rechts
Stiftung Az: 14-0563.1 Regierungspräsidium Karlsruhe
Vorstand: Prof. Dr. Andreas Oberweis, Jan Wiesenberger, Prof. Dr.-Ing. J. 
Marius Zöllner
Vorsitzender des Kuratoriums: Ministerialdirigent Günther Leßnerkraus
.........................................................

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to