Renamed pybricks to pybrickscode

This commit is contained in:
Michel committed 2023-11-11 12:15:28 +01:00
1 parent 7f019209e1
commit 7580a2eae0
3 files changed

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
# Uncomment and change the following variables if you want to use them.
#RESTART=unless-stopped
#PYBRICKSCODE_CONTAINER_NAME=Pybricks Code
#PYBRICKSCODE_TAG=latest
#PYBRICKSCODE_PORT=8000
#PYBRICKSCODE_BRANCH=master
+10
View File
@@ -0,0 +1,10 @@
services:
# Pybricks Code
pybrickscode:
container_name: ${PYBRICKSCODE_CONTAINER_NAME:-PybricksCode}
image: axchrono/pybrickscode:${PYBRICKSCODE_TAG:-latest}
restart: ${RESTART:-unless-stopped}
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:80/
ports:
- ${PYBRICKSCODE_PORT:-80}:80
+46
View File
@@ -0,0 +1,46 @@
# Pybricks Code
Pybricks is Python coding for smart LEGO® hubs. Run MicroPython scripts directly on the hub, and get full control of your motors and sensors.
## Installation using Portainer
### Tested with
* Synology DS1019+ running DSM 7.2-64570 Update 1;
* Docker from Synology Package Center version 20.10.23-1437;
* Portainer.io Community Edition version 2.19.1;
* Node 18.18.2-bookworm;
* Pybricks Code v2.1.1.
### Installation steps
* Open Portainer with the correct environment.
* Under Stacks click the button + Add stack.
* Give your stack a name (i.e.: pybricks).
* Paste the contents of compose.yml under Web editor.
* Paste the contents of .env under Environment variables.
* Click Advanced mode to be able to paste.
* Change the environment variables as you see fit.
* Click Deploy the stack and wait for Portainer to finish.
* This can take a very long time as the container is downloading and building the software and all the necessary libraries. Check the Container log to see the current status.
## Environment variables
The following variables could be set as an environment varaiables using the .env file.
| Value | Default | Information |
|---|---|---|
| RESTART | unless-stopped | Choose a restart policy. |
| PYBRICKSCODE_CONTAINER_NAME | PybricksCode | This is used for the name of the container and the main folder under de docker folder. |
| PYBRICKSCODE_TAG | latest | Choose a version tag. |
| PYBRICKSCODE_PORT | 80 | Default port. |
## Links
* [Homepage](https://pybricks.com/)
* [GitHub](https://github.com/pybricks/)
* [Dockerhub](https://hub.docker.com/r/axchrono/pybrickscode)
## Disclaimer
LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this project.