Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Flux links settings #608

Closed
wants to merge 21 commits into from
Closed

Flux links settings #608

wants to merge 21 commits into from

Conversation

TeckniX
Copy link
Contributor

@TeckniX TeckniX commented Jun 9, 2015

Containers can now be linked together!

Example:

  • Create Hello-world-nginx container
  • Create MariaDB container and update env setting for MYSQL_ROOT_PASSWORD to start the container
  • Link hello-world-nginx to mariaDB via the links settings.
  • Login to the hellow-world-nginx container and confirm env settings, which should be something like:
/# env
MARIADB_PORT=tcp://172.17.0.3:3306
MARIADB_PORT_3306_TCP=tcp://172.17.0.3:3306
HOSTNAME=1e54cecd0c2f
SHLVL=1
HOME=/root
MARIADB_NAME=/hello-world-nginx/mariadb
MARIADB_ENV_MARIADB_VERSION=10.0.19+maria-1~wheezy
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
MARIADB_PORT_3306_TCP_ADDR=172.17.0.3
MARIADB_ENV_MYSQL_ROOT_PASSWORD=mariaaa
PWD=/
MARIADB_PORT_3306_TCP_PORT=3306
MARIADB_PORT_3306_TCP_PROTO=tcp
MARIADB_ENV_MARIADB_MAJOR=10.0

@jmorganca
Copy link
Contributor

Great! Taking a look! Thanks @TeckniX

@jmorganca jmorganca force-pushed the master branch 4 times, most recently from b256b02 to 35ab197 Compare June 13, 2015 21:29
@TeckniX
Copy link
Contributor Author

TeckniX commented Jun 29, 2015

All updated - let me know if anything seems out of place

@jmorganca
Copy link
Contributor

Taking another look - sorry for the delay since June.

@FrenchBen
Copy link
Contributor

The code probably needs another update, since a few things were changes since then

@caiofbpa
Copy link

Is there any chance Kinematic automatically reads linking configuration from docker-compose.yml somewhere?

@FrenchBen
Copy link
Contributor

@caiofbpa If the link was created via command line, Kitematic should pick it up too - The issue however is that if any changes are made to the container within Kitematic, there's a good chance that link will disappear.
Reading docker-compose YML files is on the 'Future' list :)

@nVitius
Copy link

nVitius commented Sep 8, 2015

@JeffDM I just tested this locally after merging in master; it still works and the tests pass. Any updates on getting this merged in?

@FrenchBen
Copy link
Contributor

@nVitius Thanks for checking the branch and confirming that it works as expected 👍 - I just merged the latest master into this.

@nVitius
Copy link

nVitius commented Sep 11, 2015

The type-ahead probably shouldn't show the current container as an option. Though, if @TeckniX isn't working on this anymore, it's something that could be added after (if?) this is merged.

@FrenchBen
Copy link
Contributor

@nVitius Good catch, I didn't think about typing in the current container name, as it seems that the user would understand that this isn't correct. I've got access to the repo and will make the adjustments next week.

Thanks!

@uatec
Copy link

uatec commented Oct 4, 2015

@FrenchBen So did you get a chance to make those changes?

@FrenchBen
Copy link
Contributor

@uatec It's on my list - I've been traveling and didn't get a chance to do anything with it. Thanks for the reminder 👍

@FrenchBen
Copy link
Contributor

Closing this in favor of networking introduced in 1.9

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants