Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,9 @@ more info coming soon. The instructions for getting the package s/w up and runn
If it will work on AWS, it will work anyplace really (with some provider specific tweaks).

## Docker
I'm not anti, but am not putting time towards this anytime soon.
Find an example in the docker folder at the top level of this project. Copy the Dockerfile and the docker-compose.yml to a local folder on your computer.
In that folder, `mkdir etc && chmod 777 etc && mkdir logs && chmod 777 logs` to setup the example folders.
Tthen run `sudo docker compose up --build -d` to run it then reach it at http://<your-ip>:8118. This doesn't auto-detect printers so you'll have to run the printer discovery and probably manually edit your JSON file.

# Add'l Future Development

Expand Down
11 changes: 11 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.10-slim

WORKDIR /app

RUN DEBIAN_FRONTEND=noninteractive apt update --silent && \
apt install -y net-tools curl && \
pip install zebra_day

EXPOSE 8118

CMD ["zday_start"]
12 changes: 12 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
zebra_day:
container_name: zebra_day
build: .
network_mode: host # can set top your own network as needed
# Add this if not using host mode
#ports:
# - "8118:8118"
volumes:
- ./etc:/app/zebra_day/etc
- ./logs:/app/zebra_day/logs
command: zday_start