@@ -24,22 +24,19 @@ ARG USER_UID=1000
24
24
ARG USER_GID=$USER_UID
25
25
ENV LANG en_US.utf8
26
26
27
- # these are installed for terminal/dev convenience. If more tooling for build is required, please
28
- # add them to chip-build (in integrations/docker/images/chip-build)
27
+
28
+ # These are installed for terminal/dev convenience. If more tooling for build is required, please
29
+ # add them to chip-build (in integrations/docker/images/chip-build).
29
30
RUN apt-get update \
30
31
&& apt-get install -y locales \
31
32
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
32
- && apt-get -fy install git vim emacs sudo \
33
+ && apt-get -fy install vim emacs sudo \
33
34
apt-utils dialog zsh \
34
- iproute2 procps lsb-release \
35
+ lsb-release \
35
36
bash-completion \
36
- build-essential cmake cppcheck valgrind \
37
- wget curl telnet \
37
+ valgrind \
38
38
docker.io \
39
- iputils-ping net-tools \
40
- libncurses5 \
41
- libncursesw5 \
42
- libpython2.7 \
39
+ iputils-ping \
43
40
&& :
44
41
45
42
RUN groupadd -g $USER_GID $USERNAME \
@@ -55,13 +52,22 @@ RUN curl https://raw.githubusercontent.com/restyled-io/restyler/master/bin/resty
55
52
RUN mkdir -p /opt/sdk/sdks/ \
56
53
&& chown -R $USERNAME:$USERNAME \
57
54
/opt/sdk/sdks/ `# NXP uses a patch_sdk script to change SDK files` \
58
- /opt/NordicSemiconductor/nrfconnect/ `# $USERNAME needs to own west configuration to build nRF Connect examples` \
59
- $IDF_PATH `# $USERNAME needs to own the esp-idf and tools for the examples to build` \
55
+ $ANDROID_HOME \
56
+ $IDF_TOOLS_PATH \
57
+ && find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
58
+ && find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
59
+ && find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
60
+ && find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
61
+ && chmod -R +x \
62
+ $ANDROID_HOME/tools/bin `# sdkmanager for accepting licenses`\
63
+ && chmod -R +w \
60
64
$IDF_TOOLS_PATH \
61
- $SYSROOT_AARCH64 `# allow read/write access to header and libraries` \
62
- $ANDROID_HOME `# allow licenses to be accepted` \
63
- $AMEBA_PATH `# AmebaD requires access to change build_info.h` \
64
- $IMX_SDK_ROOT \
65
+ && find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chmod -R +w \
66
+ && find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chmod -R +w \
67
+ && find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chmod -R +w \
68
+ && find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chmod -R +w \
69
+ # Safe directory is preffered over chown.
70
+ && git config --global --add safe.directory "*" \
65
71
&& :
66
72
67
73
# Fix Tizen SDK paths for new user
0 commit comments