Skip to content

Commit 3d6f105

Browse files
committed
Updated dev environment to use pipenv instead of poetry
1 parent 541b9df commit 3d6f105

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ RUN cd /tmp; bash ./install-tools.sh
1111

1212
# Set up the Python development environment
1313
WORKDIR /app
14-
COPY pyproject.toml poetry.lock ./
15-
RUN sudo python -m pip install -U pip poetry && \
16-
sudo poetry config virtualenvs.create false && \
17-
sudo poetry install
14+
COPY Pipfile Pipfile.lock ./
15+
RUN python -m pip install --upgrade pip pipenv && \
16+
pipenv install --system --dev

.devcontainer/devcontainer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"git.mergeEditor": true,
2727
"markdown-preview-github-styles.colorTheme": "light",
2828
"makefile.extensionOutputFolder": "/tmp",
29+
"makefile.configureOnOpen": false,
2930
"python.testing.unittestEnabled": false,
3031
"python.testing.pytestEnabled": true,
3132
"python.testing.pytestArgs": [
@@ -51,6 +52,8 @@
5152
"ms-python.pylint",
5253
"ms-python.flake8",
5354
"ms-python.black-formatter",
55+
"njpwerner.autodocstring",
56+
"wholroyd.jinja",
5457
"ms-vscode.makefile-tools",
5558
"yzhang.markdown-all-in-one",
5659
"DavidAnson.vscode-markdownlint",
@@ -63,21 +66,20 @@
6366
"github.vscode-github-actions",
6467
"hbenl.vscode-test-explorer",
6568
"LittleFoxTeam.vscode-python-test-adapter",
66-
"njpwerner.autodocstring",
67-
"wholroyd.jinja",
6869
"redhat.vscode-yaml",
70+
"unjinjang.rest-api-client",
6971
"ms-azuretools.vscode-docker",
7072
"ms-kubernetes-tools.vscode-kubernetes-tools",
7173
"inercia.vscode-k3d",
7274
"alexkrechik.cucumberautocomplete",
7375
"Zignd.html-css-class-completion",
7476
"streetsidesoftware.code-spell-checker",
75-
"unjinjang.rest-api-client",
7677
"bbenoist.vagrant"
7778
]
7879
}
7980
},
8081
// Setup the lab environment after container is created
82+
"forwardPorts": [8080],
8183
"postCreateCommand": "bash /app/.devcontainer/scripts/setup-lab.sh",
8284
"features": {
8385
"ghcr.io/devcontainers/features/docker-in-docker:2": {},

.devcontainer/scripts/setup-lab.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# Setup the lab environment after container is started using:
44
# "postCreateCommand": "bash /app/.devcontainer/scripts/setup-lab.sh"
55
#
6+
echo "**********************************************************************"
67
echo "Setting up Flask BDD lab environment..."
8+
echo "**********************************************************************\n"
79

810
# Create .env file if it doesn't exist
911
if [ ! -f .env ]; then
@@ -20,4 +22,6 @@ sudo bash -c "echo '127.0.0.1 cluster-registry' >> /etc/hosts"
2022
# Make git stop complaining about unsafe folders
2123
git config --global --add safe.directory /app
2224

25+
echo "\n**********************************************************************"
2326
echo "Setup complete"
27+
echo "**********************************************************************"

0 commit comments

Comments
 (0)