Git Product home page Git Product logo

dockerproxy's People

Contributors

jonstelly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rtanglife

dockerproxy's Issues

The type or namespace name 'Newtonsoft' could not be found (CS0246)

I've tried it on Win10 Entreprise 64bit with Powershell 5.1.14393.1715 but i got the following error :

Error occurred when compiling build script: error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?) (2451,8): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?) (2457,8): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?) (2453,12): error CS0012: The type 'JObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. (2459,12): error CS0012: The type 'JObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.

SQL Server container not visible on localhost:1433

I'm running SQL Server 2016 in a Docker Windows container - I can connect just fine to the SQL server instance in SSMS using the container IP.

I've tried the latest release of DockerProxy as well as building from source, but I can't seem to connect to the SQL server instance from either SSMS or sqlcmd on localhost or 127.0.0.1. DockerProxy seems to indicate that it is working:

15:51:11.162 [] [Information] Proxying - localhost:1433 -> 172.24.220.242:1433

Any ideas?

Why aspnet? [Question]

Just bumped into this. Nice!
I pretty sure that the extra 172. container network is seen as a feature my MS. It does keep some concerns isolated (ie port collisions). And this is really just a dev issue. Any "proper" orchestrator deals with this.

But I'm a dev and this is a pita. So thank you :) But...

Q: Why use aspnetcore at all? Why not a more simple console app that just hosts the ProxyManager?

First auth bug

[User config] error:
Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/setup/app_decoder.py", line 48, in firstLaunchConfig token = res.json()["accessToken"] KeyError: 'accessToken' HOST_BRANDID : https://id-dcr.peugeot.com/mobile-services sitecode: AP_FR_ESP{"returnCode":"AUTHENTICATION_FAILED"}

OTP config aftre trying sms :
'PSACarController' object has no attribute 'myp'

In docker:

2023-04-26 20:23:36 psa_car_controller-3012-psacc-1  | Containerised psa_car_controller loading...
2023-04-26 20:23:36 psa_car_controller-3012-psacc-1  | 2023-04-26 18:23:36,815 :: ERROR :: No config file
2023-04-26 20:23:36 psa_car_controller-3012-psacc-1  | 2023-04-26 18:23:36,817 :: WARNING :: Can't get language
2023-04-26 20:23:37 psa_car_controller-3012-psacc-1  | 2023-04-26 18:23:37,225 :: INFO :: update_data
2023-04-26 20:23:37 psa_car_controller-3012-psacc-1  | 2023-04-26 18:23:37,265 :: INFO ::  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

Installed using Docker

How to

Hello,

I'm experimenting with small python app in windowscore container, app is running on localhost:8888 in container.
And I want to expose it at 9999 on HOST according to all articles docker run -p does not work on widows.

And your program seems to be the only thing which let's to access it from docker HOST at localhost:9999

Do you maybe have step by step guide? because what ever I did
I could not get Proxying ... sentence in console

Do you mind pointing me to guide how to build the project?
executing build.ps1 does not work out of the box.

Can you add a simple example for e.g. python -m http.server 3000 --bind 127.0.0.1 ?

My current challenge is that

python -m http.server 3000 --bind 127.0.0.1 (inside a container)

Is not accessible from windows host side (externally) no matter what I do - I even tried nginx reverse proxy but... maybe I'm just bad at making that work... but have had no success... Whereas

python -m http.server 3000 --bind 0.0.0.0

Works fine using the standard docker-compose.yaml port remapping: -ports "0.0.0.0:3000:3000"

Changing all of my apps to use 0.0.0.0 is not an option for me. I need to make it work without changing my source code of lots of apps.

So your tool seems to provide a possible workaround for this right?
How do I get it to show the "proxying" step in the logs. Cannot make it work (running latest official release on windows 10). Does it matter that I have WSL2 inegrated?

It shows this (so sees the container... just never proxies anything)

image

What does it mean when you say only works with "nat" network? Can you list some steps to make it clear what the prerequisites are to make this work?

Thanks

Just get 404, webapp doesn't seem to deploy

Do I need to install something or should I just be able to run the exe? I get a 404 at localhost:5050 and the webapp doesn't seem to deploy.

Hosting environment: Production
Content root path: C:\DockerProxy-0.1.0.3
Now listening on: http://localhost:5050
Application started. Press Ctrl+C to shut down.

PS: agreed with readme, can't believe docker doesn't provide this functionality itself, or at least mentioning the problem in docs. It's all so confusing because Docker for Windows seems to refers to very different products (virtualbox vs hypervisor, Linux vs windows containers).

File not found during build

I don't know much about dotnet. But i can't build the tool with the powershell script.
Are there any prerequisites?

Thanks
Michael

PS C:\Program Files\docker\DockerProxy> .\build.ps1
Preparing to run build script...
Running build script...
Analyzing build script...
Processing build script...
Installing tools...
Installing addins...
Compiling build script...

========================================
Build
========================================
Executing task: Build
Executing:      dotnet restore -r win10-x64

An error occurred when executing task 'Build'.
Error: The system cannot find the file specified

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.