mirror of
https://github.com/LamGC/jenkins-agent-with-docker.git
synced 2025-04-29 22:27:31 +00:00
稍微改一下脚本看看。
This commit is contained in:
parent
8776c5afbe
commit
086007e04e
@ -6,7 +6,7 @@ USER root
|
||||
|
||||
COPY start-agent.sh /usr/local/bin/start.sh
|
||||
RUN chmod 755 /usr/local/bin/start.sh
|
||||
ENTRYPOINT [ "/usr/local/bin/start.sh" ]
|
||||
ENTRYPOINT [ "/bin/bash", "/usr/local/bin/start.sh" ]
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ca-certificates \
|
||||
|
@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $(whoami) != "jenkins" ] || [ $(id -u) == "0" ]; then
|
||||
echo "This script must be run as jenkins"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user