Fix build on master after depending on external libgsystem

We forgot to update the #include lines, and didn't notice because
our repos still contained the relevant header.

Closes #401
data: Have 'cockpit' systemd unit files be what starts cockpit

Less suprise and complexity for people trying out Cockpit or
using it temporarily. We want them to be able to do:

 # systemctl start cockpit

And have cockpit work.

Closes #398

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
configure.ac: We don't use gtk-doc, don't require it to build

Closes #396

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
daemon: Disable unreliable test of CPU usage

This is hard to predict currently, and leads to sporadic failures
when building in mock or elsewhere. Needs work, but lets disable
for now.

Closes #397

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
* Added todo comment
build: Don't dist generated sources

Don't distribute the sources generated by gdbus-codegen or glib-mkenums.
These break the build on systems that are disimilar from the one that
'make dist' was run on.

Closes #399

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
configure.ac: Locate com.redhat.lvm2.xml interface during configure

Fixes #197

This is needed to prevent the previous patch from breaking 'make
distcheck' as $(datadir) was defined to a non-system value.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Ignore some build output
web: Don't ignore changes in meta data of containers and images.

The meta data of containers and images was only recorded the first
time we saw a given id, and never updated.

One symptom was that changes to the RepoTags of an image would not be
noticed, and new images that start out as "<none>:<none>" would never
be listed even if they later get a name, such as with "docker commit".

Closes #404

Reviewed-by: Stef Walter <stefw@redhat.com>
Fixes the unit file called by com.redhat.Cockpit

Closes #403

Signed-off-by: Stef Walter <stefw@redhat.com>
 * Removed an unrelated fix that caused 'make distcheck' fail
ws: Don't redirect to TLS when accessing as localhost

Allow localhost to access over pure HTTP. This makes demoing and
testing cockpit easier.

Closes #400

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
Add dependency on libxslt

There was a build regression due to the removal of
BuildRequires: gtk-doc
in bd902d3a5f5f503a8b343f8cb946754b081fc734 which was implicitly
pulling in libxslt.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #407
daemon: Zero unlimited memory limits in CGroupMonitor

When memory cgroups have no limit, they set to G_MAXSIZE of the number
of bits of the platform. This is much easier to detect in C code than
in javascript, so set these to zero (ie: no memory limit) in
CGroupMonitor.

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
daemon: Add tracking of CPU shares into CGroupMonitor

This lets us see changes in this setting.

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
web: Load default Memory, CPU, TTY settings from image config

Closes #379

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
web: Refactor sliders into MemorySlider and CpuSlider objects

We want to use these sliders in multiple places. make them real
objects, albeit private to the docker code.

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
web: Read Docker container memory limit from CGroupMonitor

It could have changed since the container was launched, so don't
use the container config. We want to be able to react to changes
in the system appropriately.

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
web: Pull docker formatting of CPU and memory into util funcs

Once we start displaying this on the details page we need to
have this be cleaner.

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
 * Although didn't apply one comment
web: Implement changing docker resources while cgroup running

Implement a rudimentary way of changing the memory limit and CPU
priority while the cgroup is running.

Closes #405
Fixes #402

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
 * Although didn't split out some minor code
web: Set minimum scales for graph row bars on containers pages

These prevent things like 4 MiB from taking up the whole width
of the column.

Fixes #393

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
web: Shorten container image names

Reviewed-by: Stef Walter <stefw@redhat.com>