Updated to my own image hosted on DockerHub
This commit is contained in:
1 parent
13d2d10a61
commit
19d054dac5
3 files changed
+8
-14
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Uncomment and change the following variables if you want to use them.
|
||||
#RESTART=unless-stopped
|
||||
#PYBRICKSCODE_CONTAINER_NAME=Pybricks Code
|
||||
#PYBRICKSCODE_TAG=18
|
||||
#PYBRICKSCODE_TAG=latest
|
||||
#PYBRICKSCODE_PORT=8000
|
||||
#PYBRICKSCODE_BRANCH=master
|
||||
#PYBRICKSCODE_BRANCH=master
|
||||
@@ -2,15 +2,9 @@ services:
|
||||
# Pybricks Code
|
||||
pybrickscode:
|
||||
container_name: ${PYBRICKSCODE_CONTAINER_NAME:-PybricksCode}
|
||||
image: node:${PYBRICKSCODE_TAG:-18}
|
||||
image: axchrono/pybrickscode:${PYBRICKSCODE_TAG:-latest}
|
||||
restart: ${RESTART:-unless-stopped}
|
||||
healthcheck:
|
||||
test: curl -f http://localhost:8000/ || exit 1
|
||||
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"
|
||||
test: wget --no-verbose --tries=1 --spider http://localhost:80/
|
||||
ports:
|
||||
- ${PYBRICKSCODE_PORT:-8000}:8000
|
||||
- ${PYBRICKSCODE_PORT:-80}:80
|
||||
+3
-3
@@ -32,14 +32,14 @@ The following variables could be set as an environment varaiables using the .env
|
||||
|---|---|---|
|
||||
| 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 | 18 | Choose a version tag. This is the tag for Node, not the main software. |
|
||||
| PYBRICKSCODE_PORT | 8000 | 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" |
|
||||
| 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
|
||||
|
||||
|
||||
Reference in new issue
Block a user