Updated to my own image hosted on DockerHub

This commit is contained in:
Michel committed 2023-11-11 12:09:58 +01:00
1 parent 13d2d10a61
commit 19d054dac5
3 files changed
+8 -14

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
# Uncomment and change the following variables if you want to use them. # Uncomment and change the following variables if you want to use them.
#RESTART=unless-stopped #RESTART=unless-stopped
#PYBRICKSCODE_CONTAINER_NAME=Pybricks Code #PYBRICKSCODE_CONTAINER_NAME=Pybricks Code
#PYBRICKSCODE_TAG=18 #PYBRICKSCODE_TAG=latest
#PYBRICKSCODE_PORT=8000 #PYBRICKSCODE_PORT=8000
#PYBRICKSCODE_BRANCH=master #PYBRICKSCODE_BRANCH=master
+3 -9
View File
@@ -2,15 +2,9 @@ services:
# Pybricks Code # Pybricks Code
pybrickscode: pybrickscode:
container_name: ${PYBRICKSCODE_CONTAINER_NAME:-PybricksCode} container_name: ${PYBRICKSCODE_CONTAINER_NAME:-PybricksCode}
image: node:${PYBRICKSCODE_TAG:-18} image: axchrono/pybrickscode:${PYBRICKSCODE_TAG:-latest}
restart: ${RESTART:-unless-stopped} restart: ${RESTART:-unless-stopped}
healthcheck: healthcheck:
test: curl -f http://localhost:8000/ || exit 1 test: wget --no-verbose --tries=1 --spider http://localhost:80/
command: >
sh -c "git clone https://github.com/pybricks/pybricks-code -b \"${PYBRICKSCODE_BRANCH:-master}\" && \
cd pybricks-code && \
yarn install && \
yarn build && \
./scripts/serve.py"
ports: ports:
- ${PYBRICKSCODE_PORT:-8000}:8000 - ${PYBRICKSCODE_PORT:-80}:80
+3 -3
View File
@@ -32,14 +32,14 @@ The following variables could be set as an environment varaiables using the .env
|---|---|---| |---|---|---|
| RESTART | unless-stopped | Choose a restart policy. | | 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_CONTAINER_NAME | PybricksCode | This is used for the name of the container and the main folder under de docker folder. |
| PYBRICKSCODE_TAG | 18 | Choose a version tag. This is the tag for Node, not the main software. | | PYBRICKSCODE_TAG | latest | Choose a version tag. |
| PYBRICKSCODE_PORT | 8000 | Default port. | | PYBRICKSCODE_PORT | 80 | Default port. |
| PYBRICKSCODE_BRANCH | master | Github branch or tag for the main software. Possible values are: "v2.1.1" or "v2.2.0-beta.8" |
## Links ## Links
* [Homepage](https://pybricks.com/) * [Homepage](https://pybricks.com/)
* [GitHub](https://github.com/pybricks/) * [GitHub](https://github.com/pybricks/)
* [Dockerhub](https://hub.docker.com/r/axchrono/pybrickscode)
## Disclaimer ## Disclaimer