-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #476 from newtonick/docker-dev-env
Add dockerfile and docker-compose.yml for easy pytest and screenshot environment
- Loading branch information
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '3.7' | ||
|
||
services: | ||
seedsigner-dev: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile | ||
command: sh -c 'bash -c "docker/setup.sh"' | ||
volumes: | ||
- ../seedsigner:/seedsigner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM python:3.10-bullseye | ||
|
||
# install zbar dependencyy | ||
RUN apt-get -qq update | ||
RUN apt-get -y -qq install zbar-tools | ||
|
||
# temp copy requirements files to local repo to do pip3 install | ||
COPY ../requirements.txt /requirements.txt | ||
COPY ../tests/requirements.txt /tests-requirements.txt | ||
|
||
WORKDIR / | ||
RUN pip3 install -r requirements.txt | ||
RUN pip3 install -r tests-requirements.txt | ||
|
||
# clean up copied files | ||
RUN rm /requirements.txt | ||
RUN rm /tests-requirements.txt | ||
|
||
# set working dir | ||
WORKDIR /seedsigner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
pip3 install -e . | ||
tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
embit==0.7.0 | ||
numpy==1.25.2 | ||
Pillow==9.4.0 | ||
-e git+https://github.com/seedsigner/pyzbar.git@c3c237821c6a20b17953efe59b90df0b514a1c03#egg=pyzbar | ||
pyzbar @ git+https://github.com/seedsigner/pyzbar.git@c3c237821c6a20b17953efe59b90df0b514a1c03 | ||
qrcode==7.3.1 | ||
six==1.16.0 | ||
urtypes @ git+https://github.com/selfcustody/urtypes.git@7fb280eab3b3563dfc57d2733b0bf5cbc0a96a6a |