Skip to content

Commit

Permalink
Change Docker pip to pipx
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhhhojeihsu committed Feb 14, 2025
1 parent 93c5afb commit ad91a7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ ARG SCSD_VERSION
# TODO: Dynamic tag version
RUN apk --no-cache add \
python3 \
py3-pip && \
pip install --no-cache-dir scsd${SCSD_VERSION:+==}${SCSD_VERSION:-} && \
pipx && \
pipx install scsd${SCSD_VERSION:+==}${SCSD_VERSION:-} --global && \
mkdir /data && \
mkdir /config

Expand Down
4 changes: 2 additions & 2 deletions docker/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ setup_auto_update() {
return
fi

cat /etc/crontabs/root | grep 'pip install -U scsd' > /dev/null 2> /dev/null
cat /etc/crontabs/root | grep 'pipx upgrade scsd' > /dev/null 2> /dev/null
retval=$?

if [ $retval -eq 0 ]; then
echo "[entry.sh] Auto update job exist->Skipped"
return
fi

echo "27 */4 * * * pip install -U scsd" >> /etc/crontabs/root
echo "27 */4 * * * pipx upgrade scsd --global" >> /etc/crontabs/root
echo "[entry.sh] Auto update added to crontab"

}
Expand Down

0 comments on commit ad91a7f

Please sign in to comment.