Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

HOTFIX for cli param parsing. - #243

Merged
SvenDowideit merged 3 commits into
boot2docker:masterfrom
SvenDowideit:fix-cli-param-parse-order
Sep 3, 2014
Merged

SvenDowideit merged 3 commits into
boot2docker:masterfrom
SvenDowideit:fix-cli-param-parse-order

Conversation

@SvenDowideit

Copy link
Copy Markdown
Contributor

both of these commits break what I was trying to acheive, but leave some code for it there. I'm combining #240 and #241 in this PR and then will add a third to clean up

@SvenDowideit

Copy link
Copy Markdown
Contributor Author

this needs to essentially back out the entire change from SvenDowideit@751e7b9, and then call driver.ConfigFlags(&B2D, flags) for all drivers (because parsing to find out the driver, and then reparsing seems not to work the way i expected)

@gmlewis

gmlewis commented Aug 28, 2014

Copy link
Copy Markdown
Contributor

LGTM

@SvenDowideit SvenDowideit changed the title Fix cli param parse order WIP Fix cli param parse order Sep 1, 2014
@SvenDowideit
SvenDowideit force-pushed the fix-cli-param-parse-order branch from 210b6b3 to 3876198 Compare September 2, 2014 02:02
@SvenDowideit SvenDowideit changed the title WIP Fix cli param parse order HOTFIX for cli param parsing. Sep 2, 2014
@SvenDowideit

Copy link
Copy Markdown
Contributor Author

This PR makes the boot2docker config, profile file parsing and boot2docker help work again.

It is needed for 1.2.1, and then for 1.3 we can look at something like #245 where we remove toml and pflags and replace it with docker/pkgs/mflags

@gmlewis @tianon

@SvenDowideit SvenDowideit mentioned this pull request Sep 2, 2014
@gmlewis

gmlewis commented Sep 2, 2014

Copy link
Copy Markdown
Contributor

Are the local copies of verbose actually used anywhere?
Otherwise, LGTM

@SvenDowideit

Copy link
Copy Markdown
Contributor Author

I hope so - that was one of the bugs that came with the hypervisor driver extraction PR

@tianon

tianon commented Sep 2, 2014

Copy link
Copy Markdown
Contributor

LGTM

SvenDowideit pushed a commit that referenced this pull request Sep 3, 2014
@SvenDowideit
SvenDowideit merged commit d23e71f into boot2docker:master Sep 3, 2014
@prologic

prologic commented Sep 9, 2014

Copy link
Copy Markdown

Has a release for this been done yet?

@dekz

dekz commented Sep 28, 2014

Copy link
Copy Markdown

Is this fixed?

# d35fa59d096d613eae93c1f4b2ac81096ba70705
~GOPATH/src/github.com/boot2docker/boot2docker-cli:master % BOOT2DOCKER_PROFILE=~/.boot2docker/profile $GOPATH/bin/boot2docker-cli init --lowerip=192.168.59.105 --hostip=192.168.59.5
~GOPATH/src/github.com/boot2docker/boot2docker-cli:master % BOOT2DOCKER_PROFILE=~/.boot2docker/profile $GOPATH/bin/boot2docker-cli up --lowerip=192.168.59.105 --hostip=192.168.59.5
Waiting for VM and Docker daemon to start...
..
Started.

To connect the Docker client to the Docker daemon, please set:
    export DOCKER_HOST=tcp://192.168.59.103:2375

I don't seem to be able to override the lowerip or hostip with either CLI or profile file.

@adamdecaf adamdecaf mentioned this pull request Oct 6, 2014
@SvenDowideit

Copy link
Copy Markdown
Contributor Author

I don't know the release timeline, but it sounds like 1.3.0 will be out in the next few days.

@gregory

gregory commented Oct 16, 2014

Copy link
Copy Markdown

+1 export BOOT2DOCKER_PROFILE=~/.boot2docker/profileworks fine.
doc needs to be improved though @SvenDowideit with this:
boot2docker config | tail -22 >~/.boot2docker/profile

@SvenDowideit

Copy link
Copy Markdown
Contributor Author

@gregory how come ? (if you mean the # boot2docker profile filename: /Users/sven/.boot2docker/profile line - some sensible person added a # to the front now ;)

@gregory

gregory commented Oct 16, 2014

Copy link
Copy Markdown

yeah, that's what i meant :)

SvenDowideit pushed a commit to SvenDowideit/boot2docker-cli that referenced this pull request Nov 10, 2014
…-readme

Add some directions about how to perform "mkfs.btrfs" in a privileged container
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.

7 participants