Comments (3)
Docker API does produce enough information (barely) to do this conversion. A few things worthy of note:
- Listing exposed ports is not exactly a clear part of the API, and appears inconsistent for container listings (as opposed to individual container JSON).
- While docker-java does exist, it uses Jackson to map JSON to fields in a way that doesn't handle API changes well. It's also synchronous, but that's probably not as big a deal because looking up this info on the fly probably isn't a good idea.
- All the names are prefixed with "/" for some reason. Also, the API allows multiple names, even though neither the CLI or API allow you to set multiple names.
- Docker container names are case sensitive, but domain name labels are not. All valid domain name labels seem to be valid docker container names though, which is good news. Domain name labels have a maximum length of 63 ASCII characters, which Docker is fine with.
from dit4c.github.io.
Work on this now forms dit4c/dit4c-gatehouse#1.
from dit4c.github.io.
Works fine with gatehouse and this nginx config fragment:
server {
listen localhost:80;
server_name localhost;
root /usr/share/nginx/html;
location / {
auth_request /auth;
auth_request_set $upstreamport $upstream_http_x_upstream_port;
proxy_pass http://127.0.0.1:$upstreamport;
error_page 403 =204 /forbidden;
}
location /auth {
internal;
proxy_pass http://127.0.0.1:8080/auth;
proxy_pass_request_body off;
proxy_set_header Host $host;
proxy_set_header Content-Length "";
proxy_set_header X-Original-URI $request_uri;
}
location /forbidden {
internal;
return 204;
}
}
from dit4c.github.io.
Related Issues (20)
- Change DIT4C "Projects" to be called "Containers" HOT 1
- Users should be able to download containers HOT 2
- dit4c-machineshop should authenticate non-GET requests
- Work out how portal reverse proxy will send traffic to the right VM HOT 1
- Revise UI to handle multiple compute nodes HOT 1
- Get Greg to give usability feedback HOT 1
- Combine dit4c software into a single repository
- iPython should be in a virtualenv
- DIT4C needs better documentation
- Track down why term.js returns 502 occasionally HOT 1
- Terminals cease to exist sometimes HOT 5
- Consider replacing TTY.js HOT 4
- Haven't caught the case where a user tries to create a new container without a name HOT 1
- No resolver issue HOT 3
- Handle expired keys in cookies better HOT 1
- IPython Notebook seems to hang more often than it should HOT 1
- Should be able to zoom terminal independently of other tools on the the container. HOT 1
- RStudio requests sometimes 504 timeout HOT 2
- tty-lean.js default port should not take precedence over config HOT 1
- Explore Octave options HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dit4c.github.io.