Skip to content

Commit

Permalink
Simplify poetry install
Browse files Browse the repository at this point in the history
poetry 1.2 has a new install script
  • Loading branch information
ajparsons committed Sep 1, 2022
1 parent 6176b39 commit d8359de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ 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" \
&& cd /setup/ && poetry install
&& cd /setup/ && ~/.local/share/pypoetry/bin/poetry install
7 changes: 2 additions & 5 deletions bin/packages_setup.bash
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/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"
poetry config virtualenvs.create false

curl -sSL https://install.python-poetry.org | python -
~/.local/share/pypoetry/bin/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 d8359de

Please sign in to comment.