Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Moved pylint install into requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuxel committed Apr 3, 2019
1 parent 0c33d93 commit 284c16d
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 15 deletions.
11 changes: 5 additions & 6 deletions containers/python-3-django/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ COPY .devcontainer/settings.vscode.json /root/.vscode-remote/data/User/settings.

ENV PYTHONUNBUFFERED 1

RUN pip install pylint
RUN mkdir /workspace
WORKDIR /workspace

RUN mkdir /app
WORKDIR /app

COPY .devcontainer/requirements.txt /app/
RUN pip install -r requirements.txt
# Install pylint and Django
COPY .devcontainer/requirements.txt /workspace/
RUN pip install -r requirements.txt && rm -f requirements.txt

# Install git
RUN apt-get update && apt-get -y install git
Expand Down
1 change: 1 addition & 0 deletions containers/python-3-django/.devcontainer/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pylint
Django
1 change: 1 addition & 0 deletions containers/python-3-django/test-project/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Django
11 changes: 5 additions & 6 deletions containers/python-3-flask-redis/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ FROM python:3-slim
# Copy default endpoint specific user settings overrides into container to specify Python path
COPY settings.vscode.json /root/.vscode-remote/data/User/settings.json

RUN mkdir /app
WORKDIR /app
RUN mkdir /workspace
WORKDIR /workspace

COPY requirements.txt /app/
RUN pip install -r requirements.txt

RUN pip install pylint
# Install pylint, flask, redis
COPY requirements.txt /workspace/
RUN pip install -r requirements.txt && rm -f requirements.txt

# Install git
RUN apt-get update && apt-get -y install git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
ports:
- "5000:5000"
volumes:
- ..:/app
- ..:/workspace
command: sleep infinity
redis:
image: "redis:alpine"
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pylint
flask
redis
redis
2 changes: 1 addition & 1 deletion containers/python-3-flask-redis/.vscode/devContainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Python & Redis",
"dockerComposeFile": ".devcontainer/docker-compose.yml",
"service": "web",
"volume": "app",
"volume": "workspace",
"extensions": [
"ms-python.python",
"LittleFoxTeam.vscode-python-test-adapter"
Expand Down
2 changes: 2 additions & 0 deletions containers/python-3-flask-redis/test-project/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
flask
redis

0 comments on commit 284c16d

Please sign in to comment.