Skip to content

Commit

Permalink
Update install scripts for poetry 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Sep 1, 2022
1 parent 6176b39 commit 6daa609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ RUN cd /setup/ \
&& chmod +x packages_setup.bash \
&& ./packages_setup.bash \
&& mkdir --parents /setup/src/data_common && touch /setup/src/data_common/__init__.py \
&& export PATH="$HOME/.poetry/bin:$PATH" \
&& export PATH="/root/.local/bin:$PATH" \
&& cd /setup/ && poetry install
7 changes: 3 additions & 4 deletions bin/packages_setup.bash
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/bin/bash

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
echo "export PATH=\"$HOME/.poetry/bin:$PATH\"" > ~/.bashrc
export PATH="$HOME/.poetry/bin:$PATH"
curl -sSL https://install.python-poetry.org | python -
echo "export PATH=\"/root/.local/bin:$PATH\"" > ~/.bashrc
export PATH="/root/.local/bin:$PATH"
poetry config virtualenvs.create false


curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& echo 'deb https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list

Expand Down

0 comments on commit 6daa609

Please sign in to comment.