Skip to content

Commit 0644a5d

Browse files
committed
dev-mode: Run kolla_install_projects using sudo
Since packages are installed using root during image build - we need to use sudo when updating those packages when using dev-mode. Change-Id: Idf14e334d50abeb1719563b1733af0b8425b3b55
1 parent 8f0a3b5 commit 0644a5d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docker/base/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ARGS=""
1616
sudo kolla_copy_cacerts
1717

1818
# Install projects that are in /dev-mode
19-
kolla_install_projects
19+
sudo kolla_install_projects
2020

2121
if [[ ! "${!KOLLA_SKIP_EXTEND_START[@]}" ]]; then
2222
# Run additional commands if present

docker/base/sudoers

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ root ALL=(ALL) ALL
2020
# Copy custom CA certificates to containers
2121
%kolla ALL=(root) NOPASSWD: /usr/local/bin/kolla_copy_cacerts
2222

23+
# Install projects in dev-mode
24+
%kolla ALL=(root) NOPASSWD: /usr/local/bin/kolla_install_projects
25+
2326
#includedir /etc/sudoers.d

0 commit comments

Comments
 (0)