File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed
Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 5555 mkdir -p "$CACHE_DIR"
5656 docker save ${{ steps.image_tag.outputs.TAG }} > ${{ steps.image_tag.outputs.TAR_PATH }}
5757
58+ - name : Install dependencies in container
59+ run : |
60+ docker run --rm -v ${{ github.workspace }}:/app -w /app --entrypoint /bin/bash ${{ steps.image_tag.outputs.TAG }} -c "
61+ export LANG=C.UTF-8 && pipenv install -e .
62+ "
5863 - name : Run tests in container
5964 run : |
6065 # Change owner of workspace to ubuntu user
Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ RUN chmod +x /app/create_user.sh
3131RUN chmod +x /app/entrypoint.sh
3232
3333# install package
34- RUN pipenv --python 3 && pipenv run pip install -e .
34+ ENV PIPENV_VENV_IN_PROJECT=1
35+ RUN pipenv install --dev --python 3 && \
36+ pipenv run pip install -e .
37+ ENV VIRTUAL_ENV=/app/.venv
3538
3639EXPOSE 22
3740
Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ The below command is connecting to `localhost` with user `docker` through port `
104104``` shell
105105ssh docker@localhost -p 2222
106106
107- # make sure installing the package first
108- cd /app
109- pipenv run pip install -e .
107+ # it will automatically enter venv in /app folder
108+ # then run rapida command
109+ rapida --help
110110```
111111
112112### destroy docker container
Original file line number Diff line number Diff line change 2020 # Grant sudo access (optional)
2121 usermod -aG sudo " $USERNAME "
2222 echo " User $USERNAME granted sudo privileges."
23- fi
2423
25- # Set ownership of /app folder to the user
26- chown -R " $USERNAME : $USERNAME " /app
27- echo " Ownership of /app granted to $USERNAME . "
24+ echo " cd /app; pipenv shell; " >> /home/ $USERNAME /.bashrc
25+ echo " User $USERNAME profile was modified to launch venv in starting. "
26+ fi
You can’t perform that action at this time.
0 commit comments