mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-20 23:27:23 +00:00
Set UID in docker run
This commit is contained in:
parent
a8d23489c4
commit
709ce3adb8
5
.github/workflows/linux.yml
vendored
5
.github/workflows/linux.yml
vendored
@ -83,6 +83,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
|
-u $(id -u) \
|
||||||
-v $PWD:/usr/src/tdesktop \
|
-v $PWD:/usr/src/tdesktop \
|
||||||
-e CONFIG=Debug \
|
-e CONFIG=Debug \
|
||||||
tdesktop:centos_env \
|
tdesktop:centos_env \
|
||||||
@ -114,8 +115,8 @@ jobs:
|
|||||||
if: env.UPLOAD_ARTIFACT == 'true'
|
if: env.UPLOAD_ARTIFACT == 'true'
|
||||||
run: |
|
run: |
|
||||||
cd $REPO_NAME/out/Debug
|
cd $REPO_NAME/out/Debug
|
||||||
sudo mkdir artifact
|
mkdir artifact
|
||||||
sudo mv {Telegram,Updater} artifact/
|
mv {Telegram,Updater} artifact/
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: env.UPLOAD_ARTIFACT == 'true'
|
if: env.UPLOAD_ARTIFACT == 'true'
|
||||||
name: Upload artifact.
|
name: Upload artifact.
|
||||||
|
@ -18,4 +18,4 @@ if [ "$Command" == "" ]; then
|
|||||||
Command="bash"
|
Command="bash"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker run -it --rm --cpus=8 --memory=22g -v $HOME/Telegram/DesktopPrivate:/usr/src/DesktopPrivate -v $HOME/Telegram/tdesktop:/usr/src/tdesktop tdesktop:centos_env $Command
|
docker run -it --rm --cpus=8 --memory=22g -u $(id -u) -v $HOME/Telegram/DesktopPrivate:/usr/src/DesktopPrivate -v $HOME/Telegram/tdesktop:/usr/src/tdesktop tdesktop:centos_env $Command
|
||||||
|
@ -20,6 +20,7 @@ Install [poetry](https://python-poetry.org), go to ***BuildPath*** and run
|
|||||||
Go to ***BuildPath*/tdesktop** and run (using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
|
Go to ***BuildPath*/tdesktop** and run (using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
|
||||||
|
|
||||||
docker run --rm -it \
|
docker run --rm -it \
|
||||||
|
-u $(id -u) \
|
||||||
-v "$PWD:/usr/src/tdesktop" \
|
-v "$PWD:/usr/src/tdesktop" \
|
||||||
tdesktop:centos_env \
|
tdesktop:centos_env \
|
||||||
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
|
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
|
||||||
@ -29,6 +30,7 @@ Go to ***BuildPath*/tdesktop** and run (using [your **api_id** and **api_hash**]
|
|||||||
Or, to create a debug build, run (also using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
|
Or, to create a debug build, run (also using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
|
||||||
|
|
||||||
docker run --rm -it \
|
docker run --rm -it \
|
||||||
|
-u $(id -u) \
|
||||||
-v "$PWD:/usr/src/tdesktop" \
|
-v "$PWD:/usr/src/tdesktop" \
|
||||||
-e CONFIG=Debug \
|
-e CONFIG=Debug \
|
||||||
tdesktop:centos_env \
|
tdesktop:centos_env \
|
||||||
|
Loading…
Reference in New Issue
Block a user