Skip to content

Commit

Permalink
feat: add support for custom klipper repo urls (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Jun 11, 2024
1 parent 93dfb83 commit 97096dc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
KLIPPER_REPO=https://github.com/Klipper3d/klipper.git
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
/printer_data*
.env
/printer_data*
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ WORKDIR /build

### Prepare our applications
#### Klipper
RUN git clone https://github.com/klipper3d/klipper \
ARG KLIPPER_REPO
ENV KLIPPER_REPO=${KLIPPER_REPO}
RUN git clone ${KLIPPER_REPO} klipper \
&& virtualenv -p python3 /build/klippy-env \
&& /build/klippy-env/bin/pip install -r /build/klipper/scripts/klippy-requirements.txt

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
build:
context: .
dockerfile: Dockerfile
args:
KLIPPER_REPO: ${KLIPPER_REPO:-https://github.com/Klipper3d/klipper.git}
volumes:
- ./printer_data:/home/printer/printer_data:delegated
ports:
Expand Down

0 comments on commit 97096dc

Please sign in to comment.