Skip to content
Snippets Groups Projects
Commit 65783fea authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-665: Install pip packages as user

parent bbb96f1b
No related branches found
No related tags found
1 merge request!278L2SS-665: Install pip packages as user
...@@ -35,7 +35,7 @@ else ...@@ -35,7 +35,7 @@ else
mkdir -p /tmp/tangostationcontrol mkdir -p /tmp/tangostationcontrol
python3 setup.py build --build-base /tmp/tangostationcontrol egg_info --egg-base /tmp/tangostationcontrol bdist_wheel --dist-dir /tmp/tangostationcontrol || exit 1 python3 setup.py build --build-base /tmp/tangostationcontrol egg_info --egg-base /tmp/tangostationcontrol bdist_wheel --dist-dir /tmp/tangostationcontrol || exit 1
# shellcheck disable=SC2012 # shellcheck disable=SC2012
sudo pip install "$(ls -Art /tmp/tangostationcontrol/*.whl | tail -n 1)" pip install "$(ls -Art /tmp/tangostationcontrol/*.whl | tail -n 1)"
fi fi
# Return to the stored the directory, this preserves the working_dir argument in # Return to the stored the directory, this preserves the working_dir argument in
......
...@@ -6,8 +6,8 @@ FROM ${SOURCE_IMAGE} ...@@ -6,8 +6,8 @@ FROM ${SOURCE_IMAGE}
ARG CONTAINER_EXECUTION_UID=1000 ARG CONTAINER_EXECUTION_UID=1000
# Create homedir # Create homedir
ENV HOME=/home/user RUN sudo adduser --uid ${CONTAINER_EXECUTION_UID} --gid ${CONTAINER_EXECUTION_UID} --home ${HOME} user || exit 0
RUN sudo mkdir -p ${HOME} RUN sudo echo "PATH=${HOME}/.local/bin:\$PATH" >> ~/.bashrc
RUN sudo chown ${CONTAINER_EXECUTION_UID} -R ${HOME} RUN sudo chown ${CONTAINER_EXECUTION_UID} -R ${HOME}
COPY requirements.txt ./ COPY requirements.txt ./
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment