Skip to content
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

[docker-ptf]: Update entrypoint entry for docker-ptf #836

Merged
merged 20 commits into from
Jul 24, 2017
Merged
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4ea6318
Fix SAI submodule id
pavel-shirshov May 30, 2017
991124c
Merge remote-tracking branch 'upstream/master'
pavel-shirshov May 30, 2017
219c4d0
Merge remote-tracking branch 'upstream/master'
pavel-shirshov May 31, 2017
1db3b3d
Merge remote-tracking branch 'upstream/master'
pavel-shirshov Jun 1, 2017
ebb58b6
Merge remote-tracking branch 'upstream/master'
pavel-shirshov Jun 10, 2017
f1a9ca2
Merge remote-tracking branch 'upstream/master'
pavel-shirshov Jun 12, 2017
cd5f07f
Merge remote-tracking branch 'upstream/master'
pavel-shirshov Jun 27, 2017
045ae9d
Merge remote-tracking branch 'upstream/master'
pavel-shirshov Jun 29, 2017
19adf1e
Merge remote-tracking branch 'upstream/master'
pavel-shirshov Jul 1, 2017
832e2d4
Merge branch 'master' of https://github.com/Azure/sonic-buildimage
pavel-shirshov Jul 5, 2017
4cf1e74
Install python modules from pypi not from debian repo
pavel-shirshov Jul 5, 2017
07ee0f7
Remove get-pip and don't install parallel-ssh
pavel-shirshov Jul 5, 2017
4f5795d
Use latest cffi
pavel-shirshov Jul 6, 2017
cf8e803
Update comments
pavel-shirshov Jul 6, 2017
87fbfb3
Merge branch 'master' of https://github.com/Azure/sonic-buildimage
pavel-shirshov Jul 14, 2017
6487c00
Merge branch 'master' of https://github.com/Azure/sonic-buildimage
pavel-shirshov Jul 20, 2017
7d7a7b7
Merge branch 'master' of https://github.com/Azure/sonic-buildimage
pavel-shirshov Jul 24, 2017
f26cb50
Updated entrypoint for docker-ptf container
pavel-shirshov Jul 24, 2017
3ead64f
Add main supervisord.conf file under /etc/supervisor. Run supervisord…
pavel-shirshov Jul 24, 2017
eb1bd42
Use correct syntax for entrypoint
pavel-shirshov Jul 24, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dockers/docker-ptf/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ COPY ["supervisord.conf", "sshd.conf", "ptf_nn_agent.conf", "/etc/supervisor/con

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks for supervisord.conf in /etc/supervisor/

Copy link
Contributor

@jleveque jleveque Jul 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a "main" config file in /etc/supervisor/, and that file includes the /etc/supervisor/conf.d/ path, which is where the docker-specific config file lives.

I will say that naming the docker-specific config file "supervisor.conf" does make things a bit confusing. We could rename the docker-specific config files at some point to make it a bit more obvious.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can rename conf.d/supervisord.conf file to something else. But I think it's good enough name to show that we're changing supervisord configuration in the file.

Copy link
Contributor

@jleveque jleveque Jul 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, the conf.d/ file is only partial configuration, with the remaining (shared) configuration in /etc/supervisord.conf. Thus, I feel like the partial config file in conf.d should have a name specific to what it's configuring (along the lines of "container.conf"). This is a common convention for all /etc/*/conf.d/ config files. The fact that it resides under /etc/supervisor/conf.d/ should be enough to signify that it is modifying the supervisord configuration. See my comment below for more.

EXPOSE 22

ENTRYPOINT ["/usr/bin/supervisord"]
ENTRYPOINT ["/usr/local/bin/supervisord"]