Open-EO / openeo-r-udf

PoC implementation for running User-defined functions (UDFs) in R on EO data in cloud back-ends
Apache License 2.0
2 stars 2 forks source link

/customizer: workflow #9

Open przell opened 4 years ago

przell commented 4 years ago

Hi Florian, I have just tried to customize our r-udf-server using the /customizer workflow. I have the base r-udf-service running on port 5555 I went into /customizer/docker-compose.yml and changed the container_name: to r-udf-bfast. Everything else I left as it is in the dev branch currently and ran in /customizer: docker-compose up -d. I got an error:

ERROR: Named volume "libraries.json:/opt/..." is used in service "r-udf-child-service" but  no declaration was found in the volumes section.

I added to the end of the docker-compose.yml

volumes:
  libraries.json:

I ran docker-compose up -d again. I got an error:

Error for r-udf-bfast Cannot start sevice r-udf-child-service: driver failed programming external connectivity on endpoint r-udf-bfast (asdfaf...): Bind for 0.0.0.0:5555 failed: port is already allocated.

I stopped the normal container via docker stop r-udf-service I started the customized r-udf-bfast again via docker-compose up -d in the /customizer directory. It started.

But: When I checked the ip:5555/packages in the browser I got an 404.

I restarted the base udf-service. In /customizer/docker-compose.yml I changed the port to:

ports:
  - "5556:5556"

Then restarted the r-udf-bfast container. It runs. But: I cant access ip:5556/packages

przell commented 4 years ago

For now I have installed bfast in the r-udf-server like this: docker exec <dockername> R -e "install.packages('bfast',repos='https://cran.rstudio.com/')" It is also recognized by the /packages endpoint.