-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving UI support to build in consul UI
- Loading branch information
Showing
2 changed files
with
1 addition
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
FROM gliderlabs/consul-agent:0.6 | ||
ADD ./config /config/ | ||
ADD https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_web_ui.zip /tmp/webui.zip | ||
RUN cd /tmp && mkdir /ui && unzip webui.zip -d /ui && rm webui.zip | ||
ENTRYPOINT ["/bin/consul", "agent", "-server", "-config-dir=/config"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"ui_dir": "/ui", | ||
"server": true, | ||
"ui": true, | ||
"dns_config": { | ||
"allow_stale": false | ||
} | ||
|
09e7dba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove the adding of /ui directory in the docker file? Connection to port 8500 of the consul_server container now gets page not found error.
09e7dba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grieke host:8500/ui should function
The ui_dir command is telling it where to find the ui data on disk. This should not be needed now that we are using the ui=true setting
09e7dba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The /ui directory is not in the container image anymore. Are you not going to continue building the ui into the server image?
09e7dba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hashicorp/consul#1543
09e7dba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see also changelog for 0.6.1 regarding
-ui
https://github.com/hashicorp/consul/blob/master/CHANGELOG.md#061-january-6-201609e7dba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't seem to find anything that references my question in those links. Is the ui already part of the consul_server container and you don't need to specify -ui-dir anymore, just -ui?
09e7dba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct if you read hashicorp/consul#1543 you will see it says the UI assets are now in the binary.
09e7dba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick response to my question, removing the -ui-dir fixed my issue! Sorry I could not find that on my own :(. You saved me a lot of time!