You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2019/11/20 17:22:07 UTC

[whimsy] branch docker_mount_home created (now c814bfe)

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a change to branch docker_mount_home
in repository https://gitbox.apache.org/repos/asf/whimsy.git.


      at c814bfe  have docker mount users home directory

This branch includes the following new commits:

     new c814bfe  have docker mount users home directory

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[whimsy] 01/01: have docker mount users home directory

Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch docker_mount_home
in repository https://gitbox.apache.org/repos/asf/whimsy.git

View the commit online:
https://github.com/apache/whimsy/commit/c814bfecc73ede5655e14e356537e639eb9746a3

commit c814bfecc73ede5655e14e356537e639eb9746a3
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Nov 20 12:20:54 2019 -0500

    have docker mount users home directory
    
    This may provide access to CA certificates?
---
 Rakefile                   | 6 ++++++
 docker/docker-compose.yaml | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/Rakefile b/Rakefile
index 0ac387d..8d983d7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -284,6 +284,12 @@ namespace :docker do
   end
 
   task :entrypoint do
+    home = ENV['HOST_HOME']
+    if home and not File.exist? home
+      mkdir_p File.dirname(home)
+      symlink '/root', home
+    end
+
     sh 'ruby -I lib -r whimsy/asf -e "ASF::LDAP.configure"'
     sh 'apache2ctl -DFOREGROUND'
   end
diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml
index 16dded2..b22a9cd 100644
--- a/docker/docker-compose.yaml
+++ b/docker/docker-compose.yaml
@@ -5,8 +5,8 @@ services:
     build: .
     ports: 
       - "1999:80"
+    environment:
+      - "HOST_HOME=$HOME"
     volumes:
       - ../..:/srv
-      - $HOME/.subversion:/root/.subversion
-      - $HOME/.gitconfig:/root/.gitconfig
-      - $HOME/.ssh:/root/.ssh
+      - $HOME:/root