Skip to content

eyeats/pixlet-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pixlet-docker

A dockerfile for Tidbyt Pixlet

This allows you to develop pixlet apps in any host OS, then render and serve those apps within this container.

Build

docker build --no-cache -t pixlet  .

Run

docker run --rm -it -p 8080:8080 pixlet

Serving pixlet from within the container

By default pixlet serves on 127.0.0.1, to expose this to the host container we must change the host IP to 0.0.0.0.

pixlet serve examples/sunrise.star -i 0.0.0.0

Navigate to localhost:8080 on your host machine.

All-in-one Example

If you are developing a tidbyt pixlet app in a local folder, you can run this container and serve it automatically to port 8080, automatically refreshing with local changes:

Windows

docker run --rm -it -p 8080:8080 -v C:\src\pixlet-docker\examples:/srv pixlet ./pixlet serve -i 0.0.0.0 -w /srv/sports_scores.star

Linux

docker run --rm -it -p 8080:8080 -v /usr/src/pixlet-docker/examples:/srv pixlet ./pixlet serve -i 0.0.0.0 -w /srv/sports_scores.star

About

A docker container for running Tidbyt Pixlet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published