SPrint is a service for dealing with label printers. It is stateless. It accepts print requests in its own format using GraphQL, and translates them into a format suitable for the particular printer.
It reads config files describing the protocols, language and credentials used by different printers.
It accepts a getJobStatus query (for printers that support it).
The first transfer protocol it supports is FTP. This now uses active mode, since passive mode is apparently impossible for our flexible compute environment to support. For this to work, an --ipAddress
argument must be passed to the application at startup, so the correct IP address can be specified in FTP requests.
The GraphiQL front end can be used to view the form of requests accepted by the service, and to send queries and print requests.
Printer Administration
Setup -> Interfaces -> Network Services
, make sure FTP
and Web service
are onSecurity
, make sure the password for ftpprint
matches SPrint
deployment configurationSecurity
, make sure Security web service
is set to Basic
and the Password web service
value matches the value in the SPrint
deployment configuration.OpenStack Administration
SPrint Config
cgap.xml
config file (in the SPrint
deployment project)Systems
Docker
Usage:
docker-compose build
: builds containerdocker-compose up
: starts it updocker-compose down
: shuts it down