-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7f79f1
commit bdfc821
Showing
5 changed files
with
43 additions
and
0 deletions.
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
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 @@ | ||
venv |
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,5 @@ | ||
FROM python:3.8-buster | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install setuptools setuptools_rust virtualenv | ||
|
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 @@ | ||
# Development environment | ||
|
||
The following steps should be executed from within the folder `dev`. | ||
|
||
To test popper, build the `popper-dev` image and prepare the folder to hold the venv | ||
``` | ||
docker-compose build popper-dev | ||
mkdir venv | ||
``` | ||
then start the container and install deps into the venv | ||
``` | ||
docker-compose run --rm popper-dev | ||
# now you're insided the container | ||
python -m virtualenv /venv | ||
source /venv/bin/activate | ||
pip install -e src/ | ||
``` | ||
From here on, you can always return to the container without having to re-install the venv. | ||
However, don't forget to activate the venv after entering the container. | ||
(The container is temporary and will be removed after you leave, so activate the venv each time.) |
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,15 @@ | ||
version: '3.7' | ||
services: | ||
popper-dev: | ||
image: popper-dev | ||
container_name: popper-dev | ||
stdin_open: true # docker run -i | ||
tty: true # docker run -t | ||
build: | ||
context: . | ||
command: | ||
- bash | ||
volumes: | ||
- ${PWD}/..:/workspace | ||
- ${PWD}/venv:/venv | ||
working_dir: /workspace |