mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-09 14:23:05 +02:00
revert virtualenv changes
This commit is contained in:
parent
91a44bf9d2
commit
565afc1798
3 changed files with 4 additions and 2 deletions
|
@ -18,6 +18,9 @@ WORKDIR /algo
|
|||
COPY requirements.txt .
|
||||
RUN apk --no-cache add ${BUILD_PACKAGES} && \
|
||||
python -m pip --no-cache-dir install -U pip && \
|
||||
python -m pip --no-cache-dir install virtualenv && \
|
||||
python -m virtualenv env && \
|
||||
source env/bin/activate && \
|
||||
python -m pip --no-cache-dir install -r requirements.txt && \
|
||||
apk del ${BUILD_PACKAGES}
|
||||
COPY . .
|
||||
|
|
1
Makefile
1
Makefile
|
@ -21,7 +21,6 @@ docker-deploy:
|
|||
--cap-drop=all \
|
||||
--rm \
|
||||
-it \
|
||||
-e "DOCKER_BUILD=true" \
|
||||
-v $(CONFIGURATIONS):/data \
|
||||
$(IMAGE):$(TAG)
|
||||
|
||||
|
|
2
algo
2
algo
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
if [[ -z ${VIRTUAL_ENV+x} && -z ${DOCKER_BUILD+x} ]]
|
||||
if [[ -z ${VIRTUAL_ENV+x} ]]
|
||||
then
|
||||
ACTIVATE_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/env/bin/activate"
|
||||
if [ -f "$ACTIVATE_SCRIPT" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue