Allow Docker Container Access Behind Proxy

In the previous post, I’ve described how to build an image when you’re behind a proxy. Now, if your container needs access to the internet for e.g. downloading python dependencies, you’ll need to give it explicitly. The way to do it is via -e parameter (environment) of docker run. You can either make it verbose, […]

Use Docker Behind Proxy on Windows 8

The other day I had to install Docker at work, aka behind a corporate proxy (on Windows 8). While the docker installer is stand-alone and all is good, dealing with the VM is a different matter… The problem popped up when I tried to create a Django image and pip install failed miserably. To get […]

Pass Through a Corporate Proxy in Java

TL;DR: There’s no easy way to create a proxy :) I’ve tried for a while to build a way to request something through a proxy, for testing an emulated android app. The solution came from Octavian who kindly provided me a snippet to run once per app lifetime. It tackles the problem from two fronts: […]

Inject Proxy Settings in Selenium/Chrome

I have the following situation: I’m behind a corporate proxy and I need to run a test accessing an external website. To do this, I’ve picked up chrome/chromium as driver of choice. My current solution implies an authentication via plugin. The plugin The chrome plugin is essentially 2 files: a manifest file a JS containing […]

Set Different Gradle Configurations

TL;DR: create a global file (in <HOME>/.gradle or GRADLE_USER_HOME if defined). Place there the system specific configuration. The other day I had the unpleasant surprise that Android Studio replicated my proxy settings into and got committed to Git. Including a password (which has since became obsolete). Since my other environment doesn’t use a […]

Install and Use Package Control Behind Proxy

TL;DR: Install Package Control manually. Add the proxy settings to the configuration file as described in step 2 below. Today I’ve had to install Sublime Text 3 again on a new computer. Package control didn’t want to install due to my proxy settings (I was getting a 407 error code – Proxy authentification required). I […]

Set Up Concourse Behind a Proxy

TL;DR: Most important thing is to find out if your proxy mangles/removes headers. If yes, then you need to contact your IT department. I’ve got the following error: Get net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) Prerequisites In order to get Concourse CI working, you need to : Install […]

Gradle(w) and Proxy Authentication

The recent updates in Android Studio eliminate the possibility of passing JVM arguments to gradle. That’s quite unfortunate because I quite liked my solution and now I was getting a (not) nice Connection refused message… So I had to find a different solution. Environment Variable As always, everything related to Java can be configured via […]

Gradle and Proxy Authentication in Android Studio

Update: This is obsolete as Android Studio is going to eliminate JVM arguments for gradle. See this post for a more future-proof approach. The other day I did an exercise to install Android Studio (“AS” henceforth) (0.8.4 at the moment of writing) and create a project with gradle in an environment with an authenticated proxy. […]

Scroll to top