Open ghost opened 8 years ago
Are you calling from client or server side?
Anyway you'll have to manually modify your own patch here. Well you probably should do a PR of sorts in the new port over at kadirahq. I think they added or are adding custom docker image support. Basically I would add something like...
Docker exec npm install ______
To the start.sh after the docker run commands https://github.com/arunoda/meteor-up/blob/mupx/templates/linux/start.sh
Or maybe use rcp to tramsfer the missing files but they need to be the right binaries for the target platform. In that case maybe the Docker command adds a mount point needed for copying through into the Docker container.
I need to run lftp commands from my Meteor app, so I am using the ftps NPM module( https://www.npmjs.com/package/ftps) to do so.
In my local testing environment, everything works fine.
In production, on an EC2 Ubuntu instance, inside my mupx docker container, the lftp command cannot be found (I've checked using FS existsSync, among other tests). I originally was using the apt-get version of lftp, but that version is too old (and didn't work for my app anyway), so I downloaded the latest version and compiled it on the server hosting my app. I confirmed it works correctly by running it on the command line on the server hosting my application.
However, I can't get my app to recognize the lftp command (located at: /usr/local/bin/lftp) at all. I keep getting issues when trying to run it as a spawned child process. I've scoured the issues section here on GitHub for mupx, as well as looked into issues with spawn. After vigorous testing, I am certain the issue is that the lftp command cannot be found inside the docker container. I have tried various suggestions such as setting environment variables and pseudo-hacks to mupx. Nothing seems to work..
If I want to run external, compiled Unix programs, such as lftp, from within my app inside its docker container, how do I do so?