Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 25DCD200B92 for ; Wed, 28 Sep 2016 11:31:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2489C160AD4; Wed, 28 Sep 2016 09:31:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6C501160AB4 for ; Wed, 28 Sep 2016 11:31:47 +0200 (CEST) Received: (qmail 1602 invoked by uid 500); 28 Sep 2016 09:31:46 -0000 Mailing-List: contact user-help@guacamole.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@guacamole.incubator.apache.org Delivered-To: mailing list user@guacamole.incubator.apache.org Received: (qmail 1591 invoked by uid 99); 28 Sep 2016 09:31:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 09:31:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0C81FC0E29 for ; Wed, 28 Sep 2016 09:31:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id HPfUrj2MxODX for ; Wed, 28 Sep 2016 09:31:41 +0000 (UTC) Received: from ns1.horiba.co.jp (ns1.horiba.co.jp [202.250.32.2]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id 13C0C5FC73 for ; Wed, 28 Sep 2016 09:31:40 +0000 (UTC) Received: from ns2b.horiba.co.jp (ns2b.horiba.co.jp [202.250.36.23]) by ns1.horiba.co.jp (Postfix) with ESMTP id 867CD888C8 for ; Wed, 28 Sep 2016 18:31:33 +0900 (JST) Received: from SRHDC1.SRH.local ([149.240.170.254]) by ns2b.horiba.co.jp (8.12.11/8.12.11) with ESMTP id u8S9VWcw001636 for ; Wed, 28 Sep 2016 18:31:32 +0900 Received: from SRHDC1.SRH.local ([fe80::6c34:22f8:200d:757b]) by SRHDC1.SRH.local ([fe80::6c34:22f8:200d:757b%10]) with mapi id 14.03.0319.002; Wed, 28 Sep 2016 10:31:31 +0100 From: Andy Pattrick To: "user@guacamole.incubator.apache.org" Subject: RE: Apply theme extension to docker container Thread-Topic: Apply theme extension to docker container Thread-Index: AQHSFN67s+oAQSEsgUah8Imd9OrkdaCMfE0AgAIv0BY= Date: Wed, 28 Sep 2016 09:31:30 +0000 Message-ID: <0B640BC754C823498D4BFFC8F94A25F601BF4E84@SRHDC1.SRH.local> References: <0B640BC754C823498D4BFFC8F94A25F601BB6898@SRHDC1.SRH.local>, In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [81.129.177.252] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 archived-at: Wed, 28 Sep 2016 09:31:48 -0000 Thanks for the detailed explanation Mike. I understand now. I'll try to giv= e that a go when I have a moment. Cheers Andy. ________________________________________ From: Mike Jumper [mike.jumper@guac-dev.org] Sent: 27 September 2016 02:06 To: user@guacamole.incubator.apache.org Subject: Re: Apply theme extension to docker container On Thu, Sep 22, 2016 at 7:36 AM, Andy Pattrick w= rote: > Hi, > > I'm trying to apply the example theme extension jar from this thread > https://sourceforge.net/p/guacamole/discussion/1110834/thread/be2a6785/ t= o > my running guacamole docker container. This is to customise the logo and > title etc as supported by https://glyptodon.org/jira/browse/GUAC-587 > > I copy the example jar file to my container /root/.guacamole/extensions/ > using docker cp and I can see the file is there after the copy but nothin= g > changes when I reload the web page. I figured that the web server has to = be > restarted somehow to load up the new images and translations. > > If I stop and start the docker container then the jar file vanishes from = the > folder. > > I tried copying the jar file and then immediately doing a docker commit t= o > create my own customised image but again when I run this in a container t= he > jar file has vanished! > > Does anyone know what I'm doing wrong? Why is the extension jar file > vanishing? How do I apply the example extension to my docker container? > The .jar file is vanishing because the startup script for the Guacamole Docker container recreates GUACAMOLE_HOME every time the container starts, auto-generating the configuration and copying in any required extensions based on the environment variables set when the container was created. There are WIP changes which will allow you to define a base GUACAMOLE_HOME which the Docker container will use as a template prior to generating its own configuration. You can use that to provide your own extension(s) or arbitrary config: https://issues.apache.org/jira/browse/GUACAMOLE-100 Those changes will not be making their way to git master until the release is finally out (we are under code freeze until then), but you can give them a shot as-is by using branch containing the changes: https://github.com/mike-jumper/incubator-guacamole-client/tree/docker-guaca= mole-home With the above, the "GUACAMOLE_HOME" environment variable can be used to specify an arbitrary location to be copied into the real GUACAMOLE_HOME just prior to auto-generating the configuration. GUACAMOLE_HOME will still be wiped out each time the image starts, but your custom GUACAMOLE_HOME will remain untouched and will still be used as a basis. If you mount a local directory within the image and specify that for GUACAMOLE_HOME, then external changes will be reflected within the image whenever it is restarted, and things should be pretty convenient. - Mike=