Giter VIP home page Giter VIP logo

interfaces-docker's Introduction

Interfaces-docker - Interfaces project code running via docker

“Interfaces” will build the bridge between performing arts and computer art. Namely it will capture the dynamics and expression from dance and transport it into the world of code generated art. “Interfaces” wants to trigger, push and moderate a dialog between generative artists and choreographers. The end result – apart from the resulting artworks – will be a data- and knowledgebase loaded with workflow documentation, sample code, converters and scanners and other open source tools that aim to help creators to run their respective part of collaborations between dance and code art. For a generative artist “Interfaces” will provide the dancer to perform in the parameter space of the code. For Choreographers “Interfaces” will open a new stage that has their audience in galleries and on the web.

Further information regarding this project besides of the software part can be found here:

Installation

For any questions regarding installation and setup feel free to visit our Discord ( link above ) and ask questions in the feedback area.

Requirements

As this is a bundle of software wrapped into docker images, you need both docker and docker-compose to install and run this code. A Debian-based Linux distribution is the recommended OS for this, but any OS capable of running Docker should work.

Repository

If you don't plan to develop but use Interfaces, there is no need to fetch the whole git history. Create a flat copy of the repo, e.g. via:

git clone --depth 1 https://github.com/gandie/interfaces-docker.git

Docker installation

Docker engine installation guide

Also install docker-compose wrapper, e.g. using Ubuntu:

apt install docker-compose

Setup Docker environment - Scripted installation ( recommended )

After setting up the requirements, run the installation script:

./StartZopeCompose

This will call the corresponding docker-compose command, which will then download and build the images and set up and run the containers.

After that the webapp should be available on browser via:

http://localhost:80

As port 80 will be exposed on all available network interfaces, you're able to run the webapp from any other device living in the same network via IP-address.

Setup - Upgrades

Upgrading your installation can be done by tearing down the current installation ( removing docker images and containers in the process ) and reinstalling afterwards.

Teardown via:

./TearDown

Warning! As this script assumes that this is the only docker environment installed, it will remove ALL docker images. If you run multiple docker environments make sure to alter the TearDown script before you run it.

In case of upgrades only affecting the webapp ( living in mounts/zoperepo/__root__ ) you don't need to teardown and reinstall, simply override the folder mentioned with a new version and restart the system. On each start of the webapp, the contents of mounts/zoperepo/__root__ will be written into the web application.

Known issues

Application just shows autogenerated default page

Sometimes the first startup may crash, with errors like:

zeo_1           | ZODB.POSException.ConflictError: database conflict error (oid 0x03, class Persistence.mapping.PersistentMapping ...

... resulting into many deleted files visible in the project folder via git status

Reboot the machine, then restore webapp in project folder:

git restore mounts/zoperepo/__root__/

... and restart zeo container:

docker container restart zope-compose_zeo_1

This will trigger a forced rewrite of the webapp and after a few moments it should work as expected.

Links / Software stack in use

List of software used in this project:

Appreciation

  • 7pc for getting this project on the road
  • Klappson for sharing his docker knowledge
  • r1b2art for sharing awesome p5 code pieces

... and of course all the awesome open source projects mentioned in the link list for providing a rock solid open source basis for this project

interfaces-docker's People

Contributors

gandie avatar klappson avatar

Stargazers

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

Watchers

 avatar

interfaces-docker's Issues

zope-compose-haproxy-1 doesn't start up

Describe the bug
zope-compose-haproxy-1 cant be build till the end.

To Reproduce

  1. Followed the read me Instructions
  2. When tryin to build with ./StartZopeCompose Error message occurs added below

Expected behavior

The Package doesn't compose properly because zope-compose-haproxy-1 doesn't start up hence Website cant be started.

Error Message

zope-compose-haproxy-1 | [NOTICE] (9) : haproxy version is 2.4.22-0ubuntu0.22.04.1
zope-compose-haproxy-1 | [NOTICE] (9) : path to executable is /usr/sbin/haproxy
zope-compose-haproxy-1 | [ALERT] (9) : parsing [/etc/haproxy/haproxy.cfg:35] : 'server zope1' : could not resolve address 'zope-compose_zope_1'.
zope-compose-haproxy-1 | [ALERT] (9) : parsing [/etc/haproxy/haproxy.cfg:36] : 'server zope2' : could not resolve address 'zope-compose_zope_2'.
zope-compose-haproxy-1 | [ALERT] (9) : parsing [/etc/haproxy/haproxy.cfg:37] : 'server zope3' : could not resolve address 'zope-compose_zope_3'.

error starting the instruction ./StartZopeCompose

Hi, i get the following error on macbook pro m1 with macOs 12.1:
5.839 ERROR: Could not find a version that satisfies the requirement mediapipe==0.9.1.0 (from versions: 0.10.3)
5.839 ERROR: No matching distribution found for mediapipe==0.9.1.0

failed to solve: process "/bin/sh -c pip3 install zope psycopg2-binary git+https://github.com/gandie/Products.PythonScripts@hacked-python-scripts Products.ZSQLMethods Products.SiteErrorLog Products.StandardCacheManagers Products.ExternalMethod Products.MailHost git+https://github.com/perfact/ZPsycopgDA git+https://loc.kplays.de:8080/Python/dockerutils.git zope.mkzeoinstance Paste jsonpath-ng mediapipe==0.9.1.0" did not complete successfully: exit code: 1

GUI facelift

GUI is just vanilla bootstrap. I know some people which are keen to make it better.

p5js example storage

Stop throwing all p5js exmaples into one JS file as it gets long and hard to maintain. There must be a better way.

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.