Help Center/ ServiceStage/ User Guide (ME-Abu Dhabi Region)/ FAQs/ How Do I Handle Docker Application Dependency?
Updated on 2022-12-05 GMT+08:00

How Do I Handle Docker Application Dependency?

Symptom

If I want to Run a node program in the microservice docker. The program depends on node-gyp. How do I install the dependency before compiling the program?

The environment does not have the permission to access the external network. Therefore, the dependency cannot be obtained from the external network. You need to compile the node program in advance.

Solution

  1. Compile your project.
  2. Compress the compiled project into a .zip package.
  3. Upload the package to OBS and use the application management function of ServiceStage.

    When creating a component, select Node.js 8 during running.