-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. change docker file to use root for env preparations 2. add entrypoint.sh to dynamically create the user to run the kernel
- Loading branch information
Showing
4 changed files
with
35 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
USER_ID=${TASKWEAVER_UID:-10002} | ||
GROUP_ID=${TASKWEAVER_GID:-10002} | ||
|
||
echo "Starting with UID: $USER_ID, GID: $GROUP_ID" | ||
useradd -u $USER_ID -o -m taskweaver | ||
groupmod -g $GROUP_ID taskweaver | ||
|
||
chown -R taskweaver:taskweaver /app | ||
|
||
su taskweaver -c "python -m taskweaver.ces.kernel.launcher" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters