bbc / digital-paper-edit-infrastructure

Work in progress - BBC News Labs digital paper edit project - AWS infrastructure
Other
1 stars 1 forks source link

Set up Infrastructure to happily run the client and backend servers on Cosmos #3

Closed emettely closed 4 years ago

emettely commented 5 years ago

Context

In the DPE Cosmos instance, we want to make sure that the API and client can co-run and communicate with each other. We therefore need to package each NPM package as an RPM and run them in the Cosmos EC2 instance.

Acceptance Criteria

Be able to access a URL to see the UI and see that the backend server is up.

https://github.com/bbc/bbc-mock-tools#mock-build

emettely commented 5 years ago

To create a meta-package, you still need %files with empty entries to successfully build an RPM. https://www.linuxquestions.org/questions/linux-software-2/how-to-make-rpms-with-dependencies-meta-packages-720481/

You can either specify dependency repositories via repos.d/ directory (as recommended https://github.com/bbc/bbc-mock-tools#mock-build) or you can specify it in mock-build -r <directory>.

$ rpm -qpR digital-paper-edit-0.1.1-1.bbc.el7.x86_64.rpm
dpe-client
dpe-api
cloud-httpd24-ssl-no-certs
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadIsXz) <= 5.2-1
emettely commented 5 years ago

https://github.com/bbc/digital-paper-edit-client/pull/30

emettely commented 4 years ago

Invalid as moved to firebase