File tree 8 files changed +42
-28
lines changed
image_config/apt/sources.list.d
8 files changed +42
-28
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,12 @@ sudo LANG=C chroot $FILESYSTEM_ROOT rm /tmp/docker.gpg
204
204
sudo LANG=C chroot $FILESYSTEM_ROOT add-apt-repository \
205
205
" deb [arch=$CONFIGURED_ARCH ] https://download.docker.com/linux/debian $IMAGE_DISTRO stable"
206
206
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get update
207
- sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install docker-ce=${DOCKER_VERSION} docker-ce-cli=${DOCKER_VERSION}
207
+ if dpkg --compare-versions ${DOCKER_VERSION} ge " 18.09" ; then
208
+ sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install docker-ce=${DOCKER_VERSION} docker-ce-cli=${DOCKER_VERSION}
209
+ else
210
+ sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install docker-ce=${DOCKER_VERSION}
211
+ fi
212
+
208
213
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y remove software-properties-common gnupg2
209
214
210
215
if [ " $INSTALL_KUBERNETES " == " y" ]
Original file line number Diff line number Diff line change @@ -62,12 +62,13 @@ RUN apt-get update && \
62
62
libpython2.7 \
63
63
libdaemon0 \
64
64
libdbus-1-3 \
65
- libjansson4
66
-
65
+ libjansson4 \
67
66
# ip and ifconfig utility missing in docker for arm arch
68
- RUN apt-get -y install \
69
67
iproute2 \
70
- net-tools
68
+ net-tools \
69
+ # for arm arch: Installing j2cli dependency package MarkupSafe from source relies on weeksetuptools and wheel
70
+ python-setuptools \
71
+ python-wheel
71
72
72
73
# For templating
73
74
RUN pip install j2cli
Original file line number Diff line number Diff line change @@ -60,12 +60,13 @@ RUN apt-get update && \
60
60
libpython2.7 \
61
61
libdaemon0 \
62
62
libdbus-1-3 \
63
- libjansson4
64
-
63
+ libjansson4 \
65
64
# ip and ifconfig utility missing in docker for arm arch
66
- RUN apt-get -y install \
67
65
iproute2 \
68
- net-tools
66
+ net-tools \
67
+ # for arm arch: Installing j2cli dependency package MarkupSafe from source relies on weeksetuptools and wheel
68
+ python-setuptools \
69
+ python-wheel
69
70
70
71
# For templating
71
72
RUN pip install j2cli
Original file line number Diff line number Diff line change @@ -268,6 +268,8 @@ sudo LANG=C chroot $FILESYSTEM_ROOT systemctl disable core_uploader.service
268
268
sudo cp $IMAGE_CONFIGS /corefile_uploader/core_uploader.py $FILESYSTEM_ROOT /usr/bin/
269
269
sudo cp $IMAGE_CONFIGS /corefile_uploader/core_analyzer.rc.json $FILESYSTEM_ROOT_ETC_SONIC /
270
270
sudo chmod og-rw $FILESYSTEM_ROOT_ETC_SONIC /core_analyzer.rc.json
271
+
272
+ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install libffi-dev libssl-dev
271
273
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install azure-storage==0.36.0
272
274
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install watchdog==0.10.2
273
275
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install futures==3.3.0
@@ -461,14 +463,14 @@ echo "docker images pull complete"
461
463
462
464
sudo umount $FILESYSTEM_ROOT /target
463
465
sudo rm -r $FILESYSTEM_ROOT /target
464
- sudo umount /proc || true
465
466
if [[ $CONFIGURED_ARCH == armhf || $CONFIGURED_ARCH == arm64 ]]; then
466
467
sudo umount $FILESYSTEM_ROOT /dockerfs
467
468
sudo rm -fr $FILESYSTEM_ROOT /dockerfs
468
469
sudo kill -9 ` sudo $SONIC_NATIVE_DOCKERD_FOR_DOCKERFS_PID ` || true
469
470
else
470
471
sudo chroot $FILESYSTEM_ROOT service docker stop
471
472
fi
473
+ sudo umount /proc || true
472
474
sudo rm $FILESYSTEM_ROOT /etc/init.d/docker
473
475
{% for script in installer_start_scripts.split(' ' ) -%}
474
476
sudo cp {{script}} $FILESYSTEM_ROOT /usr/bin/
Original file line number Diff line number Diff line change 1
- deb [arch=arm64] http://deb.debian.org/debian stretch main contrib non-free
2
- deb-src [arch=arm64] http://deb.debian.org/debian stretch main contrib non-free
3
- deb [arch=arm64] http://deb.debian.org/debian stretch -updates main contrib non-free
4
- deb-src [arch=arm64] http://deb.debian.org/debian stretch -updates main contrib non-free
5
- deb [arch=arm64] http://security.debian.org stretch /updates main contrib non-free
6
- deb-src [arch=arm64] http://security.debian.org stretch /updates main contrib non-free
7
- deb [arch=arm64] https://download.docker.com/linux/debian stretch stable
8
- deb [arch=arm64] http://ftp.debian.org/debian stretch -backports main
1
+ deb [arch=arm64] http://deb.debian.org/debian buster main contrib non-free
2
+ deb-src [arch=arm64] http://deb.debian.org/debian buster main contrib non-free
3
+ deb [arch=arm64] http://deb.debian.org/debian buster -updates main contrib non-free
4
+ deb-src [arch=arm64] http://deb.debian.org/debian buster -updates main contrib non-free
5
+ deb [arch=arm64] http://security.debian.org buster /updates main contrib non-free
6
+ deb-src [arch=arm64] http://security.debian.org buster /updates main contrib non-free
7
+ deb [arch=arm64] https://download.docker.com/linux/debian buster stable
8
+ deb [arch=arm64] http://ftp.debian.org/debian buster -backports main
9
9
Original file line number Diff line number Diff line change 1
- deb [arch=armhf] http://deb.debian.org/debian stretch main contrib non-free
2
- deb-src [arch=armhf] http://deb.debian.org/debian stretch main contrib non-free
3
- deb [arch=armhf] http://deb.debian.org/debian stretch -updates main contrib non-free
4
- deb-src [arch=armhf] http://deb.debian.org/debian stretch -updates main contrib non-free
5
- deb [arch=armhf] http://security.debian.org stretch /updates main contrib non-free
6
- deb-src [arch=armhf] http://security.debian.org stretch /updates main contrib non-free
7
- deb [arch=armhf] https://download.docker.com/linux/debian stretch stable
8
- deb [arch=armhf] http://ftp.debian.org/debian stretch -backports main
1
+ deb [arch=armhf] http://deb.debian.org/debian buster main contrib non-free
2
+ deb-src [arch=armhf] http://deb.debian.org/debian buster main contrib non-free
3
+ deb [arch=armhf] http://deb.debian.org/debian buster -updates main contrib non-free
4
+ deb-src [arch=armhf] http://deb.debian.org/debian buster -updates main contrib non-free
5
+ deb [arch=armhf] http://security.debian.org buster /updates main contrib non-free
6
+ deb-src [arch=armhf] http://security.debian.org buster /updates main contrib non-free
7
+ deb [arch=armhf] https://download.docker.com/linux/debian buster stable
8
+ deb [arch=armhf] http://ftp.debian.org/debian buster -backports main
9
9
Original file line number Diff line number Diff line change @@ -315,6 +315,11 @@ RUN sudo augtool --autosave "set /files/etc/dpkg/dpkg.cfg/force-confold"
315
315
# For linux build
316
316
RUN apt-get -y build-dep linux
317
317
318
+ # For march kernel compile
319
+ RUN apt-get install -y crossbuild-essential-amd64 \
320
+ crossbuild-essential-arm64 \
321
+ crossbuild-essential-armhf
322
+
318
323
# For gobgp and telemetry build
319
324
RUN export VERSION=1.14.2 \
320
325
{% - if CONFIGURED_ARCH == "armhf" %}
@@ -414,7 +419,7 @@ RUN apt-get update
414
419
{% - if CONFIGURED_ARCH == "amd64" %}
415
420
RUN apt-get install -y docker-ce=5:18.09.5~3-0~debian-buster docker-ce-cli=5:18.09.5~3-0~debian-buster
416
421
{% - else %}
417
- RUN apt-get install -y docker-ce=18.06.3~ce~3-0~debian docker-ce-cli=18.06.3~ce~3-0~debian
422
+ RUN apt-get install -y docker-ce=18.06.3~ce~3-0~debian
418
423
{% - endif %}
419
424
RUN echo "DOCKER_OPTS=\"--experimental --storage-driver=vfs\"" >> /etc/default/docker
420
425
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy
Original file line number Diff line number Diff line change @@ -429,6 +429,6 @@ RUN apt-get update
429
429
{% - if CONFIGURED_ARCH == "amd64" %}
430
430
RUN apt-get install -y docker-ce=5:18.09.5~3-0~debian-stretch docker-ce-cli=5:18.09.5~3-0~debian-stretch
431
431
{% - else %}
432
- RUN apt-get install -y docker-ce=18.06.3~ce~3-0~debian docker-ce-cli=18.06.3~ce~3-0~debian
432
+ RUN apt-get install -y docker-ce=18.06.3~ce~3-0~debian
433
433
{% - endif %}
434
434
RUN echo "DOCKER_OPTS=\"--experimental --storage-driver=vfs\"" >> /etc/default/docker
You can’t perform that action at this time.
0 commit comments