Git Product home page Git Product logo

linshare-docker's Introduction

Linshare-Docker

Docker is available here and docker-compose here. Make sure that these are installed on your system before starting.

  • Docker can be installed with the following lines on most distros :
$ curl -sSL https://get.docker.com | sudo curl
  • docker-compose :

you can install it according to the offcial documentaion here

Presentation

Deploy a Linshare instance with ease using Docker and docker-compose

This docker-compose aims to make possible to quickly run a Linshare appliance. It consists of several containers :

  • Tomcat with Linshare server
  • Postgresql for the server
  • MongoDB for the server
  • Apache2 with Linshare Admin's interface
  • Apache2 with Linshare User's interface
  • Apache2 with Linshare Upload request's interface
  • Apache2 acting as a reverse-proxy for the above (except Postgresql & MongoDB)
  • Thumbnail server to generate preview for input files on Linshare
  • Opensmtp server configured in relay mode
  • ClamAV server to be used by Tomcat
  • LDAP directory containing some sample users. see
  • An init container: it will create a domain with a connexion to the embedded LDAP.

Most of the containers can be configured to suits your needs, the available settings are either already used (and you have just to replace them) or commented out. Automatic upgrades for data used by containers is not available.

How to use it

# use this line to launch it
$ docker-compose up -d

# Once containers are created and running in backgroup, you must check if they are running properly:
$ docker-compose ps
# If a container exits with an error code different than 0, it means it failed.
# In this case, you should take a look to the container.

# use this line to see logs for all containers
$ docker-compose logs

# use this line to stop
$ docker-compose stop

# use this line to delete previously created containers
$ docker-compose down

# use this line to delete all data created by containers (reset all modifications)
$ sudo rm -fr data

By default the containers are listenning to linshare.local so you may have to add the following lines in your hosts file :

127.0.0.1   admin.linshare.local user.linshare.local linshare.local traefik.linshare.local webmail.linshare.local upload-request.linshare.local docs.linshare.local

And all uses the https protocol via the port 443.

Quick start

Once everything is running, you can start using LinShare home page.

If you do not want to use the init container, you can setup the link with the LDAP manually with the following guide:

  1. Browse to admin.linshare.local and log in using
  2. Select DomainLDAP connections
    • Click on the '+' icon
    • Fill the fields with your LDAP credentials
    • Hit Save
  3. Select DomainDomain patterns
    • In Model selector chose default-pattern-demo
    • Fill the field Name
    • Hit Save
  4. Select DomainManage domains
    • Click on the '+' button after LinShareRootDomain
    • Fill the fields Identifier, Name and Description
    • Leave Inter-domains communication rules to DefaultDomainPolicy
    • Select the wanted settings for the remaining fields
    • Click on Add provider
    • Select the previous created elements in step 2 and step 3 for each fields and provide your Base dn in the last one
    • Hit Save
  5. You can now go user.linshare.local and start using your LDAP users.
firstName lastName mail
Abbey CURRY [email protected]
Amy WOLSH [email protected]
Anderson WAXMAN [email protected]
Cornell ABLE [email protected]
Dawson WATERFIELD [email protected]
Felton GUMPER [email protected]
Grant BIG [email protected]
Nick DERBIES [email protected]
Peter WILSON [email protected]
Walker MCCALLISTER [email protected]
- password : secret

External users: They only have access to the webmail. They could be used as external contacts for anonymours URL, Upload request or LinShare guests

mail Password
[email protected] password1
[email protected] password2
[email protected] password3
[email protected] password4
[email protected] password5
[email protected] password1
[email protected] password2
[email protected] password3
[email protected] password4
[email protected] password5

License

View license information for the software contained in this image.

Supported Docker versions

User Feedback

Documentation

Official Linshare documentation is available here : Linshare Configuration Guide (pdf format).

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue.

linshare-docker's People

Contributors

alamartiniere-linagora avatar fmartin-linagora avatar mjebahi avatar rockymeadow avatar shepilov avatar tolstoyfafa avatar wboudiche avatar yazidsebahi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linshare-docker's Issues

Docker Version Error

root@fileserver:~/linshare-docker# docker-compose up -d
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the services key, or omit the version key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

How do I resolve this.

Linshare Docker for ARM?

Hi,

Is it possible to provide a Linshare Container compilation and Docker-compose file for ARM-based Systems?

Thanks
DaC

Creating users

Hi ! I apologize in advance for my lack of know-how.

I cannot figure out how to use this software for the life of me. I wanted to follow the guide in the readme, but it seems to be outdated, referring options that do not exist or changed names / location.

I am trying to create users but cannot find an "add" button in Users.
I have created a TLD, a sub domain, and a Guest domain, and still can't add users.
I tried using the init container as is, in order to create a domain with an LDAP linked to it, but again it seemed to do nothing.
Then I tried to add the LDAP manually, but I am at a loss with the "filtres utilisateur". None of the LDAP identities show in Users.

I just want to create accounts for my coworkers and allow them to share files between them. Is there a guide somewhere for this ?

Any help is appreciated.

Won't start

The linshare_backend is throwing a java exception based on

java.io.FileNotFoundException: /etc/linshare/id_rsa (No such file or directory)
java.io.FileNotFoundException: /etc/linshare/id_rsa.pub

Had a trawl through the code and instructions can't see where to put these.

syntax errors and permission denied errors in docker-compose deployment

Hello and first let me thank you for your work in developing linshare. The open source community really needed this!

I'm trying to host this and have noticed some errors preventing it from starting up. In particular:

linshare_frontend | httpd: Could not open configuration file /usr/local/apache2/conf/httpd.conf: Permission denied
linshare_backend | cp: failed to access ‘/etc/linshare/log4j.properties’: Permission denied
linshare_mongodb | chown: cannot read directory '/data/db': Permission denied
linshare_smtp | warn: /etc/smtpd/smtpd.conf: Permission denied
linshare_ui-admin | AH00526: Syntax error on line 15 of /usr/local/apache2/conf/extra/linshare-ui-admin.conf:
linshare_ui-admin | SSLCertificateFile: file '/usr/local/apache2/conf/server.crt' does not exist or is empty
linshare_ui-user | AH00526: Syntax error on line 17 of /usr/local/apache2/conf/extra/linshare-ui-user.conf:
linshare_ui-user | SSLCertificateFile: file '/usr/local/apache2/conf/server.crt' does not exist or is empty
linshare_database | mkdir: cannot create directory ‘/var/lib/postgresql/data/pgdata’: Permission denied

For full log: https://pastebin.com/xNB3AkwK

Thank you,
Michael

Docker-compose failed to bring up fronted with following error

docker-compose up failed with error...

linshare_clamav | ClamAV update process started at Fri Jan 26 16:10:11 2018
linshare_clamav | WARNING: Your ClamAV installation is OUTDATED!
linshare_clamav | WARNING: Local version: 0.99.2 Recommended version: 0.99.3
linshare_clamav | DON'T PANIC! Read http://www.clamav.net/documents/upgrading-clamav
linshare_clamav | main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
linshare_clamav | LibClamAV Warning: **************************************************
linshare_clamav | LibClamAV Warning: *** The virus database is older than 7 days! ***
linshare_clamav | LibClamAV Warning: *** Please update it as soon as possible. ***
linshare_clamav | LibClamAV Warning: **************************************************
linshare_ui-admin | [Fri Jan 26 16:10:11.465983 2018] [mpm_event:notice] [pid 1:tid 140012694574976] AH00489: Apache/2.4.29 (Unix) configured -- resuming normal operations
linshare_ui-admin | [Fri Jan 26 16:10:11.468225 2018] [core:notice] [pid 1:tid 140012694574976] AH00094: Command line: 'httpd -D FOREGROUND'
linshare_smtp | info: OpenSMTPD 5.7.3p2 starting
linshare_smtp | info: startup
linshare_frontend | AH00534: httpd: Configuration error: No MPM loaded.

backend sed error

Hi all
How can I resolve this error in the backend container?

sed: couldn't edit /etc/linshare/log4j.properties: not a regular file

Thanks!

Customization for notification emails

Hello, I have up and running LinShare based on this docker compose configuration.

Product version: 3.2.0
Core version: 2.2.2

I tried to customize notification emails layout and footer, so I created a new layout, footer, and configuration for my domain then modified them. Configuration looks consistent, but I continue receiving emails with the hardcoded layout. For example, here's the actual footer: https://github.com/linagora/linshare-core/blob/master/src/main/java/org/linagora/linshare/core/notifications/config/FooterCopyrightResource.java. I'm sure because it's not equal to the default footer for the LinShareRootDomain in the DB.

Could you please let me know what kind of problem this is?

Old version

Hey,
I have a problem. When logging in as an administrator, several features are not accessible.
IMG-20220531-WA0026

JWT key not present

hi,

Since the version 5.1 of the docker file, the jwt is not present in docker image

Best way to run LinShare using Docker?

What is the supported mechanism for running a production LinShare service using the Docker images that are published on Docker Hub?

Are there plans to update this docker-compose file and associated container references so that the service can be upgraded with a simple "docker-compose up && docker-compose restart"?

The docker-compose.yml deployment method worked very well for bringing up a quick instance of LinShare. We are testing the service using this right now. As mentioned in the readme, "Automatic upgrades for data used by containers is not available." I attempted to update the docker-compose.yml with the latest docker images available on Docker Hub, but this failed. I was also not able to get the service running on the newest versions of the containers after deleting all of my data and attempting to start from scratch.

Thank you for the help!

linshare_clamav not updating, maybe causing issues

After starting docker-compose and connect to the UI, I just get a blank page with a tiny 404 message in the top left corner.

According to docker-compose ps, everything is fine.

          Name                         Command                       State                            Ports
-----------------------------------------------------------------------------------------------------------------------------
linshare_backend            /usr/local/bin/start.sh          Up (health: starting)   8080/tcp
linshare_clamav             /bootstrap.sh                    Up                      3310/tcp
linshare_database           docker-entrypoint.sh postgres    Up                      5432/tcp
linshare_docker-socket      /docker-entrypoint.sh hapr ...   Up                      2375/tcp
linshare_home               httpd-foreground                 Up                      80/tcp
linshare_init               /linagora/wait-for-it.sh - ...   Up
linshare_ldap               /container/tool/run              Up                      0.0.0.0:20389->389/tcp, 636/tcp
linshare_mongodb            docker-entrypoint.sh mongo ...   Up                      27017/tcp
linshare_reverse-proxy      /entrypoint.sh traefik           Up                      0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
linshare_smtp               /usr/sbin/smtpd -d               Up                      25/tcp, 587/tcp
linshare_thumbnail-server   java -jar -Djava.io.tmpdir ...   Up (healthy)            8080/tcp, 8081/tcp
linshare_ui-admin           httpd-foreground                 Up (health: starting)   80/tcp
linshare_ui-user            httpd-foreground                 Up (health: starting)   80/tcp

But when I look at the logs, there appear to be some issues with the linshare_camav component.

When the process starts:

linshare_clamav     | Mon Feb 24 06:31:26 2020 -> ClamAV update process started at Mon Feb 24 06:31:26 2020
linshare_clamav     | Mon Feb 24 06:31:26 2020 -> ^Your ClamAV installation is OUTDATED!
linshare_clamav     | Mon Feb 24 06:31:26 2020 -> ^Local version: 0.102.1 Recommended version: 0.102.2

Later this repeats again and again:

linshare_clamav     | Mon Feb 24 06:31:40 2020 -> ^getcvd: Can't download daily.cvd from https://database.clamav.net/daily.cvd
linshare_clamav     | Mon Feb 24 06:31:41 2020 -> Trying again in 5 secs...
linshare_clamav     | Mon Feb 24 06:31:46 2020 -> daily database available for update (local version: 25730, remote version: 25732)
linshare_clamav     | Mon Feb 24 06:31:48 2020 -> ^Download failed (60) Mon Feb 24 06:31:48 2020 -> ^ Message: SSL peer certificate or SSH remote key was no
linshare_clamav     | Mon Feb 24 06:31:48 2020 -> ^getpatch: Can't download daily-25731.cdiff from https://database.clamav.net/daily-25731.cdiff
linshare_clamav     | Mon Feb 24 06:31:48 2020 -> ^Download failed (60) Mon Feb 24 06:31:48 2020 -> ^ Message: SSL peer certificate or SSH remote key was no
linshare_clamav     | Mon Feb 24 06:31:48 2020 -> ^getpatch: Can't download daily-25731.cdiff from https://database.clamav.net/daily-25731.cdiff

What can I do about the clamav issue, and could that be the reason why I cant access the UI?

TLS problem with external connexion on linshare APK

with the docker open on the internet with valid certbot certicate and url,
the front office (UI-user) work ( certificat is good )
but the linshare APK not working ( server url not valid )

the traeffik container say :
time="2022-09-16T11:31:37Z" level=debug msg="http: TLS handshake error from 192.168.1.254:45800: EOF"

( the 5.0 version of docker and log version of APK work )

@fmartin-linagora

Ldap connection

Hey
I can't find the function of ldap connection more when I add my domain the feature of add user provider.
Capture d’écran 2022-06-06 163126
Capture d’écran 2022-06-06 163050

linshare.local dose not resolve

Hello,
i`ve successfully ran docker-compose up -d and edited my hosts file in the host VM which is based on vistualbox and OS is ubuntu 16.04.4 Server. But when i tryed to access by dns name id does not resolve. By ip is fine but this way users and admin panel are not accessible.

I`ve edited my routers config, also not resolving by dns name. Router is tp-link with os openwrt.

Any suggestions are welcome.
Will post configs if needed.

"page not found" from linshare-docker

Hi,
I am setting up the linshare -docker in centos 7. I am getting "page not found" when I hit the http://myvpsipaddress. I am using VPS server. Could you please help me to start debugging this please. where should I look for the logs please.

[root@centos-01 linshare-docker]# docker-compose up -d
Starting linshare_mongodb ... done
Starting linshare_ldap ... done
Starting linshare_init ... done
Starting linshare_thumbnail-server ... done
Starting linshare_docker-socket ... done
Starting linshare_database ... done
Starting linshare_smtp ... done
Starting linshare_home ... done
Starting linshare_reverse-proxy ... done
Starting linshare_clamav ... done
Starting linshare_backend ... done
Starting linshare_ui-user ... done
Starting linshare_ui-admin ... done

I am using the instructions from https://github.com/linagora/linshare-docker
Thanks,
Ajp

How to Upgrade Docker Linshare

I have inherited an instance of Linshare 2.0.4 running in docker containers. I am trying to figure out the best upgrade path to get to the latest 6.x version. Any guidance would be appreciated.

Thanks!

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.