Re: [Discuss] Container to deploy a web service

2018-11-08 Thread Tom Luo
Hi, all, Thanks for answers. I just feel docker should support the feature to hide all details inside the container and just expose a port. I know I can compile to python code from .py to .pyc. But the python byte code is not that difficult to reverse engineering. Thanks, Tom On Thu, Nov 8,

Re: [Discuss] Container to deploy a web service

2018-11-08 Thread Jason Normand
one other thing is if you if you are providing a container or vm you could precompile all or some of the python. On Thu, Nov 8, 2018 at 10:05 AM Rich Pieri wrote: > On Thu, 8 Nov 2018 02:34:42 -0500 > Tom Luo wrote: > > > Basically, what I need is to provide a port for customers to access > >

Re: [Discuss] Container to deploy a web service

2018-11-08 Thread Rich Pieri
On Thu, 8 Nov 2018 02:34:42 -0500 Tom Luo wrote: > Basically, what I need is to provide a port for customers to access > the service. At the same time, I don't want customers to see my code. > > What should I do? Any ideas? The Docker host can see everything in the container. The customer

Re: [Discuss] Container to deploy a web service

2018-11-08 Thread Jason Normand
Dan, I fully agree, I was mostly making the point that in docker everything is shared with the host system. its possible to obscure things, but that all depends on how savy and motivated the users are. in the end docker is a open system, build by people with an open source mentality. there are

Re: [Discuss] Container to deploy a web service

2018-11-08 Thread Dan Ritter
Jason Normand: > from a strictly technical perspective, in order to make something like this > work in docker you would need to set up some kind of runtime decryption. > basically your system would need to read encrypted files from the volume > then decrypt them into a memory based storage

Re: [Discuss] Container to deploy a web service

2018-11-08 Thread Jason Normand
from a strictly technical perspective, in order to make something like this work in docker you would need to set up some kind of runtime decryption. basically your system would need to read encrypted files from the volume then decrypt them into a memory based storage (harder thought not impossible

Re: [Discuss] Container to deploy a web service

2018-11-08 Thread Dan Ritter
Tom Luo: > Hi, all, > > I developed a software which provide a web service. > When I deploy the software in customer's machines, I don't want them to see > the source code. > I tried to use docker, but I found out that docker cannot provide password > protection. The customer can still see the

Re: [Discuss] Container to deploy a web service

2018-11-08 Thread David Kramer
If you open up the service port (let's say it's running on 8080) but limit SSH login to a key only you have, then they should be able to use the service without seeing in the docker image at all. On 11/8/18 2:34 AM, Tom Luo wrote: Hi, all, I developed a software which provide a web service.