-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine sonic-slave docker image: add entry point #226
Conversation
@@ -115,3 +115,6 @@ RUN chmod go= /var/$user/.ssh -R | |||
RUN echo "$user ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers | |||
|
|||
USER $user | |||
|
|||
ENTRYPOINT sudo service ssh start && bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it have some particular purpose?
Because the actual entry point is usually make command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In our use case on https://sonic-jenkins.westus.cloudapp.azure.com/, the 'docker inspect' shows as below.
"Cmd": [
"sudo",
"/usr/sbin/sshd",
"-D"
],
"Image": "local/sonic-slave",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
It indicates there is no ENTRYPOINT set. And Jenkins run the container with a sshd command. So the overall effect is a sudo process started with PID=1 in the container. This will introduce a PID 1 zombie reaping problem, which finally fails the command 'service docker stop' inside the container.
BTW, there is a good reference table shows the behaviors of ENTRYPOINT and CMD.
b9ca7e2
to
42ae02b
Compare
Update sonic-snmpagent submodule to pick up new commits: 21d7d97 2021-07-12 Fix: SonicV2Connector behavior change: get_all will return empty dict if (#226) 0813b42 2021-07-12 Entries under .1.3.6.1.2.1.31.1.1.1.18 OID should return the "description" field of PORT_TABLE entries in APPL_DB or CONFIG_DB. (#224) 7a78703 2021-07-08 Install dotnet core to fix python gcov warning for code covery color bar showing (#215) e0f36a5 2021-06-30 [multi-asic]: Udpate to use SonicDBConfig from swsscommon (#219) 266bd15 2021-06-10 Restored snmp vlan support per RFC1213 and added the missing support for RFC2863 (#218)
Includes below commits ``` 946e5cf 2021-07-12 | Fix: SonicV2Connector behavior change: get_all will return empty dict if (#226) [Qi Luo] ```
Update sonic-snmpagent submodule to pick up new commits: 21d7d97 2021-07-12 Fix: SonicV2Connector behavior change: get_all will return empty dict if (sonic-net#226) 0813b42 2021-07-12 Entries under .1.3.6.1.2.1.31.1.1.1.18 OID should return the "description" field of PORT_TABLE entries in APPL_DB or CONFIG_DB. (sonic-net#224) 7a78703 2021-07-08 Install dotnet core to fix python gcov warning for code covery color bar showing (sonic-net#215) e0f36a5 2021-06-30 [multi-asic]: Udpate to use SonicDBConfig from swsscommon (sonic-net#219) 266bd15 2021-06-10 Restored snmp vlan support per RFC1213 and added the missing support for RFC2863 (sonic-net#218)
027dffe Fix: SonicV2Connector behavior change: get_all will return empty dict if (#226)
bf7214c (HEAD -> 202012, origin/202012) [y_cable] add support for manual/standby mode in xcvrd for muxcable; fix download firmware version retrieval logic while download firmware in progress (sonic-net#220) fc6a41e (HEAD -> 202012, origin/202012) Fix typo in the simulated y_cable driver (sonic-net#226) Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
…ate (#9081) bf7214c (HEAD -> 202012, origin/202012) [y_cable] add support for manual/standby mode in xcvrd for muxcable; fix download firmware version retrieval logic while download firmware in progress (#220) fc6a41e (HEAD -> 202012, origin/202012) Fix typo in the simulated y_cable driver (#226) Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
c8eceec 400zr initial support (#228) ef55364 SSD Health: Retrieve SSD health and temperature values from generic SSD info (#229) 26c8346 Fix cmis cable length issue (#225) 671927d Fix typo in the simulated y_cable driver (#226) 51a9aca [sfp-refactor] Add initial support for CMIS in sonic_xcvr (#220) Signed-off-by: Prince George <prgeor@microsoft.com>
… if (sonic-net#226) the hash does not exist in Redis - What I did Fixes sonic-net#8140 ref: swsssdk implementation returns None, and the library will be deprecated libswsscommon implementation returns empty dict - How I did it Relax the condition check to accept both representations - How to verify it Unit test Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
Additional watermark counters
PR sonic-net#221 added retry logic to the simualted y_cable driver and introduced typos. This change is to fix the typos. Signed-off-by: Xin Wang <xiwang5@microsoft.com>
No description provided.