-
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
Cavium customization for docker containers #5
Changes from all commits
627601b
a2e5392
812386c
c579148
3696be4
3758f4a
4d25304
0d206ce
a84d9ee
9cf983a
2ecc885
91ece10
a8f5de7
3bcf0a1
c41491f
25343a0
cdb4d87
f204471
c902f7f
0f95042
4628780
aacc331
2b4447b
1b84594
c7400f3
d755335
2159d36
f14be7e
64c8c08
01b2b8a
5c894bd
d3f1ffb
4d07d62
df63535
8c56068
6f0dd41
3783e42
b16e0a3
958ce61
f196059
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ sudo debootstrap --variant=minbase --arch amd64 jessie $FILESYSTEM_ROOT http://f | |
## Config hostname and hosts, otherwise 'sudo ...' will complain 'sudo: unable to resolve host ...' | ||
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "echo '$HOSTNAME' > /etc/hostname" | ||
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "echo '127.0.0.1 $HOSTNAME' >> /etc/hosts" | ||
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "echo '127.0.0.1 localhost' >> /etc/hosts" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should be in default /etc/hosts, no need to add. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please advise how to add it to default /etc/hosts because when we deploy Linux image there is no such entry inside /etc/hosts There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean the debootstrap will create a default /etc/hosts, with content "127.0.0.1 localhost". Could you double check? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We use PR - #4 to create a distributive and it has no such entry in /etc/hosts There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are correct. There is no such file after debootstrap. Please ignore the previous comment. |
||
|
||
## Config basic fstab | ||
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c 'echo "proc /proc proc defaults 0 0" >> /etc/fstab' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker-orchagent |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM docker-base | ||
|
||
RUN apt-get update | ||
|
||
COPY ["deps/libhiredis0.13*.deb", "deps/libswsscommon_*.deb", "deps/libsairedis_*.deb", "deps/syncd_*.deb", "deps/sai*.deb", "deps/libsai*.deb", "deps/xp-tools*.deb", "deps/xpshell*.deb", "/deps/"] | ||
|
||
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; \ | ||
dpkg_apt /deps/libhiredis0.13*.deb \ | ||
&& dpkg_apt /deps/libswsscommon_*.deb \ | ||
&& dpkg_apt /deps/sai*.deb \ | ||
&& dpkg_apt /deps/libsai*.deb \ | ||
&& dpkg_apt /deps/xp-tools*.deb \ | ||
&& dpkg_apt /deps/xpshell*.deb \ | ||
&& dpkg_apt /deps/libsairedis_*.deb \ | ||
&& dpkg_apt /deps/syncd_*.deb | ||
|
||
RUN apt-get -y install libpcap-dev libxml2-dev python-dev swig libsensors4-dev | ||
|
||
COPY ["start.sh", "/usr/bin/"] | ||
|
||
## Clean up | ||
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y | ||
RUN rm -rf /deps | ||
|
||
ENTRYPOINT /usr/bin/start.sh \ | ||
&& /bin/bash |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
export XP_ROOT=/usr/bin/ | ||
|
||
service rsyslog start | ||
syncd -p /etc/ssw/AS7512/profile.ini -N | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you enable the counter collecting thread on your platform? It is important for sonic to get those counters from asic. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this comment resolved? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not yet, please give me more time |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Get vendor SAI SDK | ||
## https://github.com/Azure/sonic-buildimage/blob/master/README.md#3-get-vendor-sai-sdk | ||
|
||
libsai.deb | ||
sai.deb | ||
xp-tools.deb | ||
xpshell.deb |
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.
Do you need 'target/sonic-generic.bin'?
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.
We are adding it in different PR - #4