Code Monkey home page Code Monkey logo

lilypond-api's People

Contributors

ggracieux avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

weesee

lilypond-api's Issues

Temporary data is not deleted

Expected behavior

Temporary data should be deleted after it has been send to client.

Actual behavior

Temporary data is never removed.

Steps to reproduce the problem

  1. Send a valid request to the convert EndPoint
    2.Enter container running lilypond-api
    3.Look in /tmp/lilypond

Switch all API output to english

Expected behavior

ALL API output should be in english

Actual behavior

all fields are in english except 'message' and log.title

{
  "statusCode": "ENGLISH",
  "message": "FRENCH STUFF",
  "base64PdfData": "RAW DATA",
  "base64MidiData": "RAW DATA",
  "logs": [
    {
      "title": "FRENCH STUFF",
      "content": "ENGLISH"
    }
  ]
}

Steps to reproduce the problem

  1. Run lilypond-api docker image
  2. POST the following JSON to http://[docker-machine]/convert
{
   "lpData": "\\score{ { c'4 d'4 e'4 f'4 } \\layout{} \\midi{} }"
}

Composer inside Docker container

In your Dockerfile an external composer and php installation is required.

I learned that in the Docker world It is good practice to make images independend from the outside world.

It would be a cool image if the image would build without external composer. Maybe with a base image first to reduce image size.

Info endpoint shoud return lilypond version

Expected behavior

{
  "apiName": "lilypond",
  "description": "Convereting lp file to midi and pdf",
  "version": {
    "api": "1.1",
    "lilypond": "1.34"
  }
}

Actual behavior

{
   "apiName":"lilypond",
   "version":"1",
   "description":"Convereting lp file to midi and pdf"
}

Steps to reproduce the problem

  1. Run lilypond-api
  2. go to info endpoint : http://[docker-machine]/info

Building Docker image fails

Hi, great idea to provide an api for lilypond.

Unfortunately I cannot build the docker image.

My docker-compose.yml contains:

version: '3.5'
services:
  lilypond-api:
    build: 
      context: ./lilypond-api
      dockerfile: dockerfile

It fails with:

Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for systemd (229-4ubuntu21.27) ...
Processing triggers for dbus (1.10.6-1ubuntu3.5) ...
Processing triggers for tex-common (6.04ubuntu1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Running updmap-sys. This may take some time... done.
Running mktexlsr /var/lib/texmf ... done.
Building format(s) --all.
	This may take some time... done.
Errors were encountered while processing:
 colord
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: Service 'lilypond-api' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y lilypond' returned a non-zero code: 100

How to make this Docker image build without errors?

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.