SAP / SapMachine

An OpenJDK release maintained and supported by SAP
https://sapmachine.io
GNU General Public License v2.0
505 stars 92 forks source link

Using SapMachine in Cloud Foundry Apt Buildpack #777

Closed gregorwolf closed 3 years ago

gregorwolf commented 3 years ago

Hello SAP Machine Team,

I try to use SapMachine in the Cloud Foundry Apt Buildpack. Additional dependencies can be specified via an apt.yaml file. I've used the Installation documentation for Linux as my reference and created:

---
keys:
- https://dist.sapmachine.io/debian/sapmachine.old.key
- https://dist.sapmachine.io/debian/sapmachine.key
repos:
- deb http://dist.sapmachine.io/debian/amd64/ stable main
packages:
- sapmachine-11-jdk

but unfortunately the build of my module failed with the following error message:

E: The repository 'http://dist.sapmachine.io/debian/amd64/ stable Release' does not have a Release file.

I've also tried http://dist.sapmachine.io/debian/ and http://dist.sapmachine.io/. But always with the simmilar result. Looking forward for a tip how to specify the SapMachine repository.

The project where I want to use it is available at pg-beershop. It shows how to use the cds-pg and cds-dbm modules to deploy a SAP Cloud Application Programming Model application to SAP Cloud Platform - Cloud Foundry.

Best regards Gregor

reshnm commented 3 years ago

Hi Gregor,

the correct repository is deb http://dist.sapmachine.io/debian/amd64/ ./ and not deb http://dist.sapmachine.io/debian/amd64/ stable main.

See https://github.com/SAP/SapMachine/wiki/Installation#-linux

Best regards Rene

gregorwolf commented 3 years ago

Thank you Rene. Works like a charm.

reshnm commented 3 years ago

Awesome, glad I could help :-)