Skip to content

Commit

Permalink
[frontend] Add host to the Peek status bar
Browse files Browse the repository at this point in the history
to show which host the request is serving in the HA mode.
This required that we add the hostname package to the base docker image.
  • Loading branch information
ChrisBr committed Jun 7, 2018
1 parent 27afdcf commit a9ad4f1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-files/base/Dockerfile.42.3
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN echo 'solver.allowVendorChange = true' >> /etc/zypp/zypp.conf; \
# Install requirements for all our containers
RUN zypper -n install --no-recommends --replacefiles \
make gcc gcc-c++ patch curl vim vim-data psmisc \
timezone ack glibc-locale sudo aaa_base
timezone ack glibc-locale sudo aaa_base hostname

# Add our bootstrap script
ADD docker-bootstrap.sh /root/bin/docker-bootstrap.sh
Expand Down
1 change: 1 addition & 0 deletions src/api/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ gem 'feature'
# for profiling
gem 'peek'
gem 'peek-dalli'
gem 'peek-host'
gem 'peek-mysql2'
# for kerberos authentication
gem 'gssapi', require: false
Expand Down
3 changes: 3 additions & 0 deletions src/api/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ GEM
concurrent-ruby-ext
dalli
peek
peek-host (1.0.0)
peek
peek-mysql2 (1.2.0)
concurrent-ruby
concurrent-ruby-ext
Expand Down Expand Up @@ -462,6 +464,7 @@ DEPENDENCIES
nokogiri
peek
peek-dalli
peek-host
peek-mysql2
poltergeist
pry (>= 0.9.12)
Expand Down
1 change: 1 addition & 0 deletions src/api/config/initializers/peek.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Peek.into Peek::Views::Mysql2
Peek.into Peek::Views::Dalli
Peek.into Peek::Views::Host

0 comments on commit a9ad4f1

Please sign in to comment.