Skip to content

Make Docker flexible by supporting command args#28

Merged
aarranz merged 2 commits intoWirecloud:masterfrom
jason-fox:feature/flexible-docker
Mar 27, 2019
Merged

Make Docker flexible by supporting command args#28
aarranz merged 2 commits intoWirecloud:masterfrom
jason-fox:feature/flexible-docker

Conversation

@jason-fox
Copy link
Copy Markdown
Contributor

@jason-fox jason-fox commented Mar 27, 2019

Amend the Dockerfile so a developer can build sources based on their own repository and branches

docker build -t wirecloudx . --build-arg GITHUB_ACCOUNT=<my-account>  --build-arg GITHUB_REPOSITORY=<your repo> --build-arg SOURCE_BRANCH=<your branch>

Default functionality without build-args is as previously.

Related to Wirecloud/wirecloud#392

docker build -t wirecloudx . --build-arg GITHUB_ACCOUNT=<my-account>  --build-arg GITHUB_REPOSITORY=<your repo> --build-arg SOURCE_BRANCH=<your branch>
Copy link
Copy Markdown
Member

@aarranz aarranz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as long as you change the default value for the SOURCE_BRANCH

Comment thread dev/Dockerfile Outdated

ARG GITHUB_ACCOUNT=Wirecloud
ARG GITHUB_REPOSITORY=wirecloud
ARG SOURCE_BRANCH=master
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This develop image should use develop by default 😉.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 89c35a3

@aarranz aarranz merged commit 1611d06 into Wirecloud:master Mar 27, 2019
@jason-fox jason-fox deleted the feature/flexible-docker branch April 12, 2019 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants