Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove --no-cache-dir from all pip install cmds (#2628) #1

Merged
merged 1 commit into from
Feb 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /usr/src/app
RUN apt-get -qq update \
&& apt-get -y upgrade \
&& apt-get install -y jq \
&& pip install --no-cache-dir . \
&& pip install . \
&& apt-get autoremove \
&& apt-get clean

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-all-in-one
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apk --update add sudo bash \
libffi-dev openssl-dev build-base jq \
&& apk add --no-cache libstdc++ dpkg gnupg \
&& pip3 install --upgrade pip cffi \
&& pip install --no-cache-dir -e . \
&& pip install -e . \
&& apk del build-dependencies \
&& rm -f /var/cache/apk/*

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apk --update add sudo \
libffi-dev openssl-dev build-base \
&& apk add --no-cache libstdc++ \
&& pip3 install --upgrade pip cffi \
&& pip install --no-cache-dir -e .[dev] \
&& pip install -e .[dev] \
&& apk del build-dependencies \
&& rm -f /var/cache/apk/*
# When developing with Python in a docker container, we are using PYTHONBUFFERED
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ ENV BIGCHAINDB_CI_ABCI ${abci_status}
RUN mkdir -p /usr/src/app
COPY . /usr/src/app/
WORKDIR /usr/src/app
RUN pip install --no-cache-dir -e .[dev]
RUN pip install -e .[dev]
RUN bigchaindb -y configure
2 changes: 1 addition & 1 deletion pkg/configuration/roles/bigchaindb/tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
tags: [bigchaindb]

- name: Install BigchainDB
shell: "python3.6 -m pip install --no-cache-dir -e /opt/stack/bigchaindb/.[dev] --ignore-installed pyyaml"
shell: "python3.6 -m pip install -e /opt/stack/bigchaindb/.[dev] --ignore-installed pyyaml"
register: install_bdb
failed_when: "'FAILED' in install_bdb.stderr or install_bdb.rc != 0"
tags: [bigchaindb]
Expand Down
2 changes: 1 addition & 1 deletion pkg/configuration/roles/py36/templates/install_pip36.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
set -ex
export PYTHON_PIP_VERSION=10.0.1
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py'
python3.6 get-pip.py --disable-pip-version-check --no-cache-dir
python3.6 get-pip.py --disable-pip-version-check
rm -f get-pip.py
{% endraw %}
2 changes: 1 addition & 1 deletion pkg/configuration/roles/py36/templates/install_py36.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cd $HOME && \
rm -rf /usr/src/python
export PYTHON_PIP_VERSION=10.0.1
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py'
python3 get-pip.py --disable-pip-version-check --no-cache-dir "pip==$PYTHON_PIP_VERSION"
python3 get-pip.py --disable-pip-version-check "pip==$PYTHON_PIP_VERSION"
find /usr/local -depth \( \( -type d -a \( -name test -o -name tests \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \) -exec rm -rf '{}' +;
rm -f get-pip.py
{% endraw %}