Skip to content

Commit c7d5904

Browse files
authored
Add prettier to the devcontainer (GitHub codespaces) (#17019)
* Add nodejs and npm to dec container * Add prettier * correct version * fix * more hacking * update npm
1 parent 876b504 commit c7d5904

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.devcontainer/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
44
# Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
55
&& apt-get purge -y imagemagick imagemagick-6-common
66

7-
# Add protoc
7+
# setup the containers WORKDIR so npm install works
8+
# https://stackoverflow.com/questions/57534295/npm-err-tracker-idealtree-already-exists-while-creating-the-docker-image-for
9+
WORKDIR /root
10+
11+
# Add protoc, npm, prettier
812
# https://datafusion.apache.org/contributor-guide/development_environment.html#protoc-installation
913
RUN apt-get update \
10-
&& apt-get install -y --no-install-recommends protobuf-compiler libprotobuf-dev \
14+
&& apt-get install -y --no-install-recommends protobuf-compiler libprotobuf-dev npm nodejs\
1115
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)