Posts by slobberbone

    For information in OMV 2.X
    To fix the trouble, I've made these changes in the /usr/chare/openmediavault/engined/rpc/docker.inc file, in function : getSettings():


    PHP: docker.inc
    $cmd = "docker --version 2>&1";
    OMVUtil::exec($cmd, $out, $res);
    if (!preg_match('/^Docker version.*$/', $out[0], $matches)) {
    $dockerVersionInfo = "Docker not installed";
    } else {
    $dockerVersion = $matches[1];
    $cmd = "docker version";

    After that, a simple :
    service openmediavault-engine restart and it works !

    Teampass : TeamPass is a Passwords Manager dedicated for managing passwords in a collaborative way


    Status
    :!: Test in progress


    Description
    Project : http://teampass.net/
    Private service alternative : https://lastpass.com/
    Official Docker image : https://store.docker.com/community/images/teampass/teampass/


    Docker prerequisite


    NGinx prerequisite



    Teampass Service Access


    Then you should be able to access to Teampass container directly with the following url : https://your.openmediavault.org/teampass/


    Backup


    Troubles
    If you have any trouble linked to this docker image procedure, please open a new discussion then I'll link it here.

    SCM-Manager : The easiest way to share and manage your Git, Mercurial and Subversion repositories over http
    Status
    :?: To validate - In use


    Description
    Project : https://www.scm-manager.org/
    Private service alternative : https://github.com/
    Official Docker image : https://hub.docker.com/r/sdorra/scm-manager/


    Docker prerequisite


    NGinx prerequisite



    SCM Manager Service Access


    Then you should be able to access to Scm-manager container directly with the following url : https://your.openmediavault.org/scm/


    Backup


    Troubles
    If you have any trouble linked to this docker image procedure, please open a new discussion then I'll link it here.

    Transmission throw VPN : Transmission is a cross-platform BitTorrent client
    Status
    :thumbup: Validated - In use


    Description
    Project : http://transmissionbt.com/about/
    Private service alternative :
    Non-Official Docker image : https://hub.docker.com/r/haugene/transmission-openvpn and https://hub.docker.com/r/haugene/transmission-openvpn-proxy



    Docker prerequisite


    Network and main container. Why should I create a network and the container linked to it ? Because we will use the vpn connection of this container wiith others : Jackett, SickBeard and couchPotato


    As you can see, we don't map any port. How to acces to Transmission ??? Throw a nginx proxy linked to the transmission-network.



    NGinx prerequisite



    Transmission Service Access


    Then you should be able to access to Transmission container directly with the following url : https://your.openmediavault.org/transmission/ and set your login/password !


    Backup


    Troubles
    If you have any trouble linked to this docker image procedure, please open a new discussion then I'll link it here.

    Shaarli : The personal, minimalist, super-fast, database free, bookmarking service
    Status
    :thumbup: Validated - in use


    Description
    Project : https://github.com/shaarli/Shaarli/
    Private service alternative : https://del.icio.us/
    Official Docker image : https://store.docker.com/community/images/shaarli/shaarli


    Docker prerequisite


    NGinx prerequisite



    Shaarli Service Access


    Then you should be able to access to Shaarli container directly with the following url : https://your.openmediavault.org/shaarli/


    Backup



    Troubles
    :!: If you have any trouble linked to this docker image procedure, please open a new discussion then I'll link it here.

    As I already said here : Plugin Docker is a non-maintained docker plugin. The work done by Nicjo814 it's just great !
    The plugin works like a charm ! Plugin main discussion here : Docker GUI plugin now stable


    Once the plugin installed, you have some preferred images you can get in the plugin. One of them is done by me (scm-manager). It's fully compatible with openmediavault, because I've done the necessary in the dockerfile to have a subdirectory to allow nginx redirection.
    With that way, you can keep openmediavault uri (and https) and redirect to the docker port/protocol. But, I need to maintain the docker file and so the docker project linked to the code source of the original project ... it can be sometimes a lot of work, and if nobody do this job on the docker images you want, if you don't know how to make your own ... there is no solution.


    So, may be not for all docker images, but for most of them, you should be able to redirect a subdirectory to the root of the container ... after some research, this is the way how to do this, with this procedure, you don't have to modify the docker image, just redirect all from a subdirectory to the container (most of the time, the container answer on the root).


    So, If I take the following service named my_docker_service, you have to pull image : maintenainer/my_docker_service tag : latest)


    After running the container from this image (exposing port : 80 ; mapped port 80XX) in this example.
    You have to add the following file /etc/nginx/openmediavault-webgui.d/my_docker_service.conf

    Code: /etc/nginx/openmediavault-webgui.d/my_docker_service.conf
    location /my_docker_service {
    rewrite ^/my_docker_service(/.*)$ $1 break;
    proxy_pass http://localhost:80XX;
    proxy_set_header Host localhost:80XX;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_redirect default;
    }



    I just reload nginx :


    Bash
    service nginx reload

    Then you should be able to access to Shaarli container directly with the following url : https://your.openmediavault.org/my_docker_service/ instead of : http://your.openmediavault.org:8032/


    By this way, no need to duplicate my_docker_service github repository to adapt the image then publish it on docker repository ...


    So I purpose you to add in this discussion all docker images checked by this way and create a docker service catalog omv-compatible !

    hi @happyreacer, I'm working on a solution about it. I'm trying to have a repository to use with OMV through the nginx server from omv. The idea is to have a subfolder https://omv_ip/owncloud/ for example, wich redirect to a container ...


    I have the screen configuration but after that, no way to connect or display the index.php ... but I think it's a redirection nginx problem !

    @nicjo814


    For the postremove in the first docker package, i've done something like that to know the state of container :


    With a loop like this :

    Code
    for x in "$(docker ps -q | xargs docker inspect --format '{{.Name}}' $1)"; do
    echo "$x container will be treated"
    CONTAINER=$(echo "$x" | sed -e "s/\///g")
    stopContainer
    echo "$x container is stopped but not removed"
    done


    if that can help you about the command to call !

    Really good job for this plugin ! You have done all what I don't have the time to do ! :) !!! A real gui for OMV !!! It's perfect !


    Just a little bug I've got, no way to pull an image like _/owncloud probably because of the "_" ! Finaly, just use owncloud ^^


    One last time : really good job for all OMV + plugins it's just perfect to have a complete NAS at home and also to manage a dedicated server !!!


    Thanks a lot !


    PS Is it possible to make a monthly donation to the projet ? (I don't see anything about on http://www.openmediavault.org/donate.html ) ?

    Hi folks !


    Don't know why, but I haven't any news from OMV forum by mail with your answers ... sorry for that


    @nicjo814 : no problem to use this thread ! Your work looks perfect !!!!!
    It's better that I've made, so hope know yours will be the referent one !!!!????

    @inta : To add login/password on dockerui you can do someting like that :


    Add a htpasswd file with the user admin and the password you want :

    Code
    apt-get install apache2-utils
    htpasswd -c /etc/nginx/htpasswd admin


    Then add few lines in the dockerui config file like that :

    Code
    nano /etc/nginx/openmediavault-webgui.d/openmediavault-docker-site.conf



    Reload Nginx configuration :

    Code
    service nginx reload

    In fact, I'm thinking about something ...


    I'll separate dopcker plugin and dockerui to another plugin ...
    Docker will be dependancy of dockerui plugin. And i would be able to have a configuration page (expose port, expose directory name of the container, login/password for apache authentication and a checkbox to run/stop a service launching the docker container and may be another checkbox for always-restart option when OMV started. It would be better and all other plugins by docker should be use the same template of pages/plugin ...


    Just one thing, for now I've no idea to do that ... (the plugin part)