Skip to content

Commit

Permalink
Source ${HOME}/.bashrc after setup.sh . Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksis committed Nov 16, 2021
1 parent 1c90f1e commit 81fe550
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ docker run --name pyinstaller-manylinux \
```
- View the logs in the docker container
```bash
docker logs pyinstaller-manylinux
docker logs --tail 1000 -f pyinstaller-manylinux
```
- New container with **interactive terminal typing** using bash
```bash
Expand Down
18 changes: 9 additions & 9 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ if [[ "$PYPI_URL" != "https://pypi.python.org/" ]] || \
[[ "$PYPI_INDEX_URL" != "https://pypi.python.org/simple" ]]; then
# the funky looking regexp just extracts the hostname, excluding port
# to be used as a trusted-host.
mkdir -p $HOME/.pip
echo "[global]" > $HOME/.pip/pip.conf
echo "index = $PYPI_URL" >> $HOME/.pip/pip.conf
echo "index-url = $PYPI_INDEX_URL" >> $HOME/.pip/pip.conf
echo "trusted-host = $(echo $PYPI_URL | perl -pe 's|^.*?://(.*?)(:.*?)?/.*$|$1|')" >> $HOME/.pip/pip.conf
mkdir -p ${HOME}/.pip
echo "[global]" > ${HOME}/.pip/pip.conf
echo "index = $PYPI_URL" >> ${HOME}/.pip/pip.conf
echo "index-url = $PYPI_INDEX_URL" >> ${HOME}/.pip/pip.conf
echo "trusted-host = $(echo $PYPI_URL | perl -pe 's|^.*?://(.*?)(:.*?)?/.*$|$1|')" >> ${HOME}/.pip/pip.conf

echo "Using custom pip.conf: "
cat $HOME/.pip/pip.conf
cat ${HOME}/.pip/pip.conf
fi

cd $WORKDIR
Expand All @@ -39,14 +39,14 @@ if [ -f setup.sh ]; then
./setup.sh
fi # [ -f setup.sh ]

# Source ~/.bashrc
source ${HOME}/.bashrc

# Install requirements
if [ -f requirements.txt ]; then
pyenv exec pip install -r requirements.txt
fi # [ -f requirements.txt ]

# Source ~/.bashrc
source $HOME/.bashrc

echo "PyInstaller parameters: $@"

pyenv exec pyinstaller --clean -y --dist ./dist "$@"
Expand Down

0 comments on commit 81fe550

Please sign in to comment.