TO BE DONE
bjuretko / docker-baikal-infcloud Goto Github PK
View Code? Open in Web Editor NEWCalDAV/CardDAV Server with dockerized lighthttpd + baikal + sqlite + infcloud bundle
CalDAV/CardDAV Server with dockerized lighthttpd + baikal + sqlite + infcloud bundle
TO BE DONE
Shouldnt it say make run args="--restart always --detach" for detached start ?
Hi @bjuretko, do you have this working, as I would be interested in a docker like this.
I cannot run make
on my NAS (asustor) as I do not have any. Therefore the following command does not build the docker:
To build the Docker image just call
make
Before, you had the following command listed as well:
build --tag "alpine-infcloud-baikal:3.5-0.13.1-0.4.6" --tag "alpine-infcloud-baikal:latest" .
Why did you delete it? It was the only method to build the docker image for me.
See branch chore/support-php7
for the current status. I currently got an error when adding new calenders for users to baikal:
PDOException: SQLSTATE[HY000]: General error: 1 table calendars has no column named principaluri in /var/www/baikal/Core/Frameworks/Flake/Core/Database.php:180
Stack trace:
#0 /var/www/baikal/Core/Frameworks/Flake/Core/Database.php(180): PDO->query('INSERT INTO cal...')
#1 /var/www/baikal/Core/Frameworks/Flake/Core/Database.php(40): Flake\Core\Database->query('INSERT INTO cal...')
#2 /var/www/baikal/Core/Frameworks/Flake/Core/Model/Db.php(91): Flake\Core\Database->exec_INSERTquery('calendars', Array)
#3 /var/www/baikal/Core/Frameworks/Baikal/Model/User.php(160): Flake\Core\Model\Db->persist()
#4 /var/www/baikal/Core/Frameworks/Formal/Form.php(226): Baikal\Model\User->persist()
#5 /var/www/baikal/Core/Frameworks/BaikalAdmin/Controller/Users.php(193): Formal\Form->execute()
#6 /var/www/baikal/Core/Frameworks/BaikalAdmin/Controller/Users.php(40): BaikalAdmin\Controller\Users->actionNew()
#7 /var/www/baikal/Core/Frameworks/Flake/Core/Render/Container.php(62): BaikalAdmin\Controller\Users->execute()
#8 /var/www/baikal/Core/Frameworks/Flake/Controller/Page.php(83): Flake\Core\Render\Container->execute()
#9 /var/www/baikal/Core/Frameworks/BaikalAdmin/WWWRoot/index.php(92): Flake\Controller\Page->render()
#10 {main}
The column principaluri
of table calendars
is missing in the database. See
Same problem arises with mysql (see docker-compose.yml - you need to uncomment mysql service).
Adding adressbooks is fine, users are added as well...
maybe you have an Idea?
Originally posted by @bjuretko in #1 (comment)
Any chance adding the latest version to hub.docker.com? It would make the deployment and update through portainer easier.
I am trying to setup Traefik
to work with docker-baikal-infcloud
, following the docker-compose script in this repo. I am changing the ports to 8800
, but I cannot make it work. This is my modified docker-compose script for traefik:
version: "2"
services:
traefik:
image: traefik:1.7-alpine
restart: always
ports:
- "8888:8888"
volumes:
- /etc/ssl/private/acme.json:/acme.json
- /var/run/docker.sock:/var/run/docker.sock
command:
- --defaultentrypoints=http,https
- --entrypoints=Name:http Address::8888 TLS Redirect.EntryPoint:https
- --entrypoints=Name:https Address::8800
# - --accesslog
- --acme
# - --acme.acmelogging
# Staging CA server for testing/demo purposes
# - --acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory
- [email protected]
- --acme.entrypoint=https
- --acme.httpchallenge
- --acme.httpchallenge.entrypoint=http
- --acme.onhostrule=true
- --acme.storage=/acme.json
- --docker
When I go to https://host.com:8888/baikal/html/admin/
it does make an HTTPS connection and I have to accept the certificates but then redirects me to plain HTTP. It seems this is very close to be a working Traefik docker that could be very useful with this repo.
Update readme with setup instructions
Add notes on image build (dev, build from git repo, tagging, export)
Add notes for well-known redirects
Notes on DAVx5 for Android
Settings of docker container and volume
Reverse Proxy setup on DSM to use https (TLS)
Firewall settings to close Port 8800 from the container for outbound connections
Backup of shared volume data
Tried to build it again, receiving many errors. Could you help maybe?
php7-mbstring (missing):
required by: world[php7-mbstring]
php7-mysqli (missing):
required by: world[php7-mysqli]
php7-openssl (missing):
required by: world[php7-openssl]
php7-pdo (missing):
required by: world[php7-pdo]
php7-pdo_mysql (missing):
required by: world[php7-pdo_mysql]
php7-pdo_sqlite (missing):
required by: world[php7-pdo_sqlite]
php7-session (missing):
required by: world[php7-session]
php7-sqlite3 (missing):
required by: world[php7-sqlite3]
php7-xml (missing):
required by: world[php7-xml]
php7-xmlreader (missing):
required by: world[php7-xmlreader]
php7-xmlwriter (missing):
required by: world[php7-xmlwriter]
sqlite (missing):
required by: world[sqlite]
su-exec (missing):
required by: world[su-exec]
tzdata (missing):
required by: world[tzdata]
unzip (missing):
required by: world[unzip]
wget (missing):
required by: world[wget]
The command '/bin/sh -c apk --no-cache update && apk --no-cache upgrade && apk --no-cache add wget ca-certificates unzip lighttpd sqlite tzdata su-exec php7-cgi php7-sqlite3 php7-dom php7-openssl php7-pdo php7-pdo_sqlite php7-xml php7-xmlreader php7-xmlwriter php7-json php7-pdo_mysql php7-mysqli php7-ctype php7-session php7-mbstring && cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && echo ${TIMEZONE} > /etc/timezone && date && wget -O baikal.zip -q ${URL_BAIKAL} && unzip baikal.zip -d ${WEBROOT}/ && rm baikal.zip && wget -O infcloud.zip -q ${URL_INFCLOUD} && unzip infcloud.zip -d ${WEBROOT}/ && rm infcloud.zip && apk del -rf --purge unzip wget ca-certificates tzdata && sed -ie "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=1/g" /etc/php7/php.ini && mkdir ${WEBROOT}/.well-known' returned a non-zero code: 22
cgi.fix_pathinfo=0
in php.ini
I am getting error 403 when accessing http://localhost:8800/baikal/html/admin/ . It seems that the directory has been made as admin, while the docker does not have such priviledges. Deleting and re-creating the WEBROOT/docker-baikal-infcloud/baikal solved it.
The same is happening when creating the database:
Validation error
The FOLDER containing the DB file is not writable, and it has to.
Please give write permissions on folder /var/www/baikal/Specific/db
This make me think, would it be possible to build and also run it with GID 100 UID 1000 by default, setting it in ENV?
I try to link this with my already existing host MySQL database. However, whenever I try to bind the volume /usr/builtin/var/lib/mysql:/var/lib/mysql
, I get the following error on the admin page:
Exception: Fatal error: no connection to a database is available. in /var/www/baikal/Core/Frameworks/Baikal/Core/Tools.php:67
Stack trace:
#0 /var/www/baikal/Core/Frameworks/Baikal/Framework.php(80): Baikal\Core\Tools::assertBaikalIsOk()
#1 /var/www/baikal/Core/Frameworks/BaikalAdmin/Framework.php(35): Baikal\Framework::bootstrap()
#2 /var/www/baikal/html/admin/index.php(53): BaikalAdmin\Framework::bootstrap()
#3 {main}
Hi how do a mount the infloud config.js file with a docker folder?
I have already tried this -v /baikal-data/infcloud-config:/var/www/infcloud/config
But it didn’t work
Is there a way to share Calendars?
Maybe you can check this out http://sabre.io/dav/caldav-sharing/
Trying to rebuild this and getting this strange error:
---> Using cache
---> e4c07d6f4b64
Step 11/18 : COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
ERROR: Service 'baikal' failed to build: COPY failed: stat /volume1/.@plugins/AppCentral/docker-ce/docker_lib/tmp/docker-builder235021056/lighttpd.conf: no such file or directory
It always tries to copy into a different folder, which is based on the docker-compose.yaml read-only, and the file is just not there. I followed all the steps in the tutorial.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.