GithubHelp home page GithubHelp logo

gozy-docker's Introduction

WIP - WIP - WIP - WIP - WIP - WIP - WIP - WIP - WIP - WIP - WIP - WIP

Sample Dockerfile to build an image embedding a Gozy server.

Usage

  • build image: docker build -t gozy .
  • start a container: docker run --rm -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:5984:5984 -p 127.0.0.1:1443:1443 --name "gozy" gozy
  • start a shell inside a running container: docker exec -ti gozy /bin/bash

or

git clone https://github.com/nicolaspernoud/gozy-docker.git
cd gozy-docker
chmod +x ./build-and-start.sh
./build-and-start.sh

Using the default parameters, you should be able to connect to the server on https://cozy.tools:1443 (the certificate is self signed, so so you should manually allow your browser to connect).

gozy-docker's People

Contributors

clochix avatar feliwyn avatar nicolaspernoud avatar nono 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

Watchers

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

gozy-docker's Issues

CouchDB Update Released - build fails

the new couchdb release causes the image build to fail:

https://dist.apache.org/repos/dist/release/couchdb/source/2.2.0/apache -couchdb-2.2.0.tar.gz
runs into a 404, use
https://dist.apache.org/repos/dist/release/couchdb/source/2.3.0/apache -couchdb-2.3.0.tar.gz instead

502 : bad gateway

Hey !

Thank you for providing this image.

I have a 502 Bad Gateway when running build-and-start.sh, anyone can help please ?

./build-and-start.sh
Sending build context to Docker daemon  197.1kB
Step 1/19 : FROM debian:stretch
 ---> f26939cc87ef
Step 2/19 : RUN apt-get update && apt-get --no-install-recommends -y install             ca-certificates             curl             net-tools             nginx             sudo             vim-tiny             build-essential
    pkg-config             erlang             libicu-dev             libmozjs185-dev             libcurl4-openssl-dev
            git
 ---> Using cache
 ---> 27c1cf66df2e
Step 3/19 : RUN cd /tmp &&     curl -LO https://dist.apache.org/repos/dist/release/couchdb/source/2.3.1/apache-couchdb-2.3.1.tar.gz &&     tar xf apache-couchdb-2.3.1.tar.gz &&     cd apache-couchdb-2.3.1 &&     ./configure &&     make release &&     adduser --system             --no-create-home             --shell /bin/bash             --group --gecos
             "CouchDB Administrator" couchdb &&     cp -R rel/couchdb /home/couchdb &&     chown -R couchdb:couchdb /home/couchdb &&     find /home/couchdb -type d -exec chmod 0770 {} \; &&     chmod 0644 /home/couchdb/etc/* &&     mkdir /var/log/couchdb && chown couchdb: /var/log/couchdb
 ---> Using cache
 ---> 471e4c4f76a4
Step 4/19 : RUN sudo -b -i -u couchdb sh -c '/home/couchdb/bin/couchdb >> /var/log/couchdb/couch.log 2>> /var/log/couchdb/couch-err.log' &&     sleep 30 &&     curl -X PUT http://127.0.0.1:5984/_users &&     curl -X PUT http://127.0.0.1:5984/_replicator &&     curl -X PUT http://127.0.0.1:5984/_global_changes
 ---> Using cache
 ---> dcb17875d45d
Step 5/19 : RUN curl -o /usr/local/bin/cozy-stack -L https://github.com/cozy/cozy-stack/releases/download/1.2.5/cozy-stack-linux-amd64 &&     chmod +x /usr/local/bin/cozy-stack &&     adduser --system             --shell /bin/bash
       --group --gecos             "Cozy" cozy &&     mkdir /usr/local/bin/storage &&     chown cozy: /usr/local/bin/storage &&     mkdir /var/log/cozy &&     chown cozy: /var/log/cozy &&     mkdir /var/lib/cozy &&     chown -R cozy: /var/lib/cozy &&     mkdir /etc/cozy &&     curl -o /etc/cozy/cozy.yaml https://raw.githubusercontent.com/cozy/cozy-stack/master/cozy.example.yaml &&     sed -i 's#/path/to/key#/etc/cozy/credentials-key#g' /etc/cozy/cozy.yaml
 ---> Using cache
 ---> 88deb8b4850d
Step 6/19 : RUN chown -R cozy: /etc/cozy
 ---> Using cache
 ---> 4d08ba768b91
Step 7/19 : COPY ./docker_scripts/start.sh /
 ---> Using cache
 ---> f143cc12453a
Step 8/19 : COPY ./docker_scripts/first_start.sh /
 ---> Using cache
 ---> 136599fee778
Step 9/19 : COPY ./docker_scripts/nginx-config /etc/cozy/
 ---> Using cache
 ---> 2a8d683fee98
Step 10/19 : RUN chmod +x /start.sh
 ---> Using cache
 ---> 1983ed63703d
Step 11/19 : RUN chmod +x /first_start.sh
 ---> Using cache
 ---> 417c5b72973b
Step 12/19 : COPY ./konnector-rkt-run.sh /etc/cozy/scripts/
 ---> Using cache
 ---> 3e8b900faba3
Step 13/19 : COPY ./konnector-nsjail-run.sh /etc/cozy/
 ---> Using cache
 ---> d285b5e17d2f
Step 14/19 : COPY ./konnector-node-run.sh /etc/cozy/scripts/
 ---> Using cache
 ---> 046a890d1200
Step 15/19 : RUN chmod +x /etc/cozy/scripts/konnector-rkt-run.sh
 ---> Using cache
 ---> cf2349e7c7a9
Step 16/19 : RUN chmod +x /etc/cozy/konnector-nsjail-run.sh
 ---> Using cache
 ---> 0e461bde721d
Step 17/19 : RUN chmod +x /etc/cozy/scripts/konnector-node-run.sh
 ---> Using cache
 ---> c62f165b01f9
Step 18/19 : EXPOSE 8080 6060 5984 1443
 ---> Using cache
 ---> b5b2e3221418
Step 19/19 : ENTRYPOINT ["/start.sh"]
 ---> Using cache
 ---> fc1b2a46a88d
Successfully built fc1b2a46a88d
Successfully tagged cozy:latest
⋅ Starting CouchDB…
Server Passphrase: Hashed passphrase will be written in /etc/cozy/cozy-admin-passphrase
Passphrase: Confirmation: ⋅ Starting Cozy stack…
Error: open /etc/cozy/credentials-key.enc: no such file or directory
keyfiles written in:
  /etc/cozy/credentials-key.enc
  /etc/cozy/credentials-key.dec
Public port : 1443
⋅ Create instance…
Instance domain : cozy.tools:1443
Instance passphrase: ⋅ Creating instance…
Password:
Failed to create instance for domain cozy.tools:1443
Error: Post http://localhost:6060/instances?Apps=home%2Cdrive%2Cphotos%2Ccollect%2Csettings&ContextName=&DiskQuota=0&Domain=cozy.tools%3A1443&Email=&Locale=&Passphrase=&PublicName=&Settings=&SwiftCluster=0&TOSSigned=&Timezone=&UUID=: dial tcp 127.0.0.1:6060: connect: connection refused
⋅ Creating certificate…
Generating a RSA private key
...................................++++
......................++++
writing new private key to '/etc/cozy/cozy.tools:1443.key'
-----
⋅ Configuring NGinx…
⋅ Starting NGinx…

Address of this Cozy does not exist.

Hi
i have this message on the web page, for the first connexion :
Address of this Cozy does not exist. You may have entered a wrong address form a typing mistake. To make sure, please check the address of your Cozy sent to you by e-mail during its creation.
In the cli , i have :
ERRO[0165] GET /service-worker.js code=404, message=Not Found nspace=http

an idea ? thanks

saving Volume

hello,
is there , in this image, a docker volume independant , where the data are saved : to not lose theme ?
or ine the same idea , a correspondence between volume docker and a host diectory (with -v parameter) ?
Thanks

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.