Git Product home page Git Product logo

Comments (4)

lmangani avatar lmangani commented on July 28, 2024 1

Oh its a lot easier than that if you build the container using the npm modules you want, ie:

build

FROM node:12-alpine

RUN npm install --unsafe-perm -g @pastash/pastash @pastash/filter_app_audiocodes

EXPOSE 514
CMD [ "pastash", "--config_file=/pastash.conf" ]

compose

pastash:
    image: your_pastash
    container_name: pastash
    volumes:
      - ./pastash.conf:/pastash.conf

from pastash.

lmangani avatar lmangani commented on July 28, 2024

Hi @Wolffis - Please attach your Dockerfile to get assistance.

from pastash.

Wolffis avatar Wolffis commented on July 28, 2024

It's the default Dockerfile from Github

https://github.com/sipcapture/paStash/blob/next/Dockerfile

I have not really identified what could help in installing @pastash/filter_app_audiocodes other that of course

COPY pastash_sonus.conf /config/

I also tried to update the package.json with

npm install --unsafe-perm @pastash/filter_app_audiocodes

and it did add some dependencies, but it did not help in running the program. The problem might be related to zmq installation as there is even build_zmq.sh script added to the files...

from pastash.

lmangani avatar lmangani commented on July 28, 2024

FYI some of the warnings for zmq etc are not breaking, the application works as long as you don't use those built in modules. As per above, the best way to build in a container is using the npm skimmed version. I hope this helps!

from pastash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.