labelmaker 2.0 #2
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "etorameth/labelmaker:master"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
updated labelmaker to python 3 and created a Dockerfile
@ -0,0 +16,4 @@
POETRY_HOME='/code/poetry' \
POETRY_VERSION=1.7.1 \
# PrintServant:
PRINTSERVANT_HOST='http://host.docker.internal:3199'
this shouldn't be in the Dockerfile
@ -0,0 +44,4 @@
&& useradd -d '/code' -g web -l -r -u "1000" web \
&& chown web:web -R '/code'
RUN git clone https://code.hackerspace.pl/etorameth/labelmaker
this shouldn't be here, you should
COPY
files from local catalog to the image@ -0,0 +90,4 @@
last = app.last
print(last, time.time() - last)
if time.time() - last < DELAY:
return 'Please wait {} more seconds before next print.'.format(int(DELAY - (time.time() - last)))
I think we can get rid of this delay logic? These should get queued now, no?
@ -0,0 +47,4 @@
</div>
</div>
</div>
<div class="container">
out of scope for this PR, so feel free to ignore it, but I suggest getting rid of the bootstrap import from a CDN, and moving a copy of it into the repo -- we like to be self-reliant and not call outside services if possible
@ -0,0 +93,4 @@
on <a href="https://code.hackerspace.pl/hswaw/labelmaker">code.hackerspace.pl/hswaw/labelmaker</a></p>
</div>
</footer>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
same thing as with bootstrap - would prefer if these scripts were part of the repo, instead of calling external servers.
1a9b745fd3
to46c487a9b0