Initial commit
This commit is contained in:
11
vendor/github.com/hyperhq/hypercli/contrib/desktop-integration/README.md
generated
vendored
Normal file
11
vendor/github.com/hyperhq/hypercli/contrib/desktop-integration/README.md
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
Desktop Integration
|
||||
===================
|
||||
|
||||
The ./contrib/desktop-integration contains examples of typical dockerized
|
||||
desktop applications.
|
||||
|
||||
Examples
|
||||
========
|
||||
|
||||
* Chromium: ./chromium/Dockerfile shows a way to dockerize a common application
|
||||
* Gparted: ./gparted/Dockerfile shows a way to dockerize a common application w devices
|
||||
36
vendor/github.com/hyperhq/hypercli/contrib/desktop-integration/chromium/Dockerfile
generated
vendored
Normal file
36
vendor/github.com/hyperhq/hypercli/contrib/desktop-integration/chromium/Dockerfile
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
# VERSION: 0.1
|
||||
# DESCRIPTION: Create chromium container with its dependencies
|
||||
# AUTHOR: Jessica Frazelle <jess@docker.com>
|
||||
# COMMENTS:
|
||||
# This file describes how to build a Chromium container with all
|
||||
# dependencies installed. It uses native X11 unix socket.
|
||||
# Tested on Debian Jessie
|
||||
# USAGE:
|
||||
# # Download Chromium Dockerfile
|
||||
# wget http://raw.githubusercontent.com/docker/docker/master/contrib/desktop-integration/chromium/Dockerfile
|
||||
#
|
||||
# # Build chromium image
|
||||
# docker build -t chromium .
|
||||
#
|
||||
# # Run stateful data-on-host chromium. For ephemeral, remove -v /data/chromium:/data
|
||||
# docker run -v /data/chromium:/data -v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
# -e DISPLAY=unix$DISPLAY chromium
|
||||
|
||||
# # To run stateful dockerized data containers
|
||||
# docker run --volumes-from chromium-data -v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
# -e DISPLAY=unix$DISPLAY chromium
|
||||
|
||||
# Base docker image
|
||||
FROM debian:jessie
|
||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||
|
||||
# Install Chromium
|
||||
RUN apt-get update && apt-get install -y \
|
||||
chromium \
|
||||
chromium-l10n \
|
||||
libcanberra-gtk-module \
|
||||
libexif-dev \
|
||||
--no-install-recommends
|
||||
|
||||
# Autorun chromium
|
||||
CMD ["/usr/bin/chromium", "--no-sandbox", "--user-data-dir=/data"]
|
||||
31
vendor/github.com/hyperhq/hypercli/contrib/desktop-integration/gparted/Dockerfile
generated
vendored
Normal file
31
vendor/github.com/hyperhq/hypercli/contrib/desktop-integration/gparted/Dockerfile
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# VERSION: 0.1
|
||||
# DESCRIPTION: Create gparted container with its dependencies
|
||||
# AUTHOR: Jessica Frazelle <jess@docker.com>
|
||||
# COMMENTS:
|
||||
# This file describes how to build a gparted container with all
|
||||
# dependencies installed. It uses native X11 unix socket.
|
||||
# Tested on Debian Jessie
|
||||
# USAGE:
|
||||
# # Download gparted Dockerfile
|
||||
# wget http://raw.githubusercontent.com/docker/docker/master/contrib/desktop-integration/gparted/Dockerfile
|
||||
#
|
||||
# # Build gparted image
|
||||
# docker build -t gparted .
|
||||
#
|
||||
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
# --device=/dev/sda:/dev/sda \
|
||||
# -e DISPLAY=unix$DISPLAY gparted
|
||||
#
|
||||
|
||||
# Base docker image
|
||||
FROM debian:jessie
|
||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||
|
||||
# Install Gparted and its dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gparted \
|
||||
libcanberra-gtk-module \
|
||||
--no-install-recommends
|
||||
|
||||
# Autorun gparted
|
||||
CMD ["/usr/sbin/gparted"]
|
||||
Reference in New Issue
Block a user