Skip to content

Commit

Permalink
feat: add protoc to node Docker images (#41)
Browse files Browse the repository at this point in the history
* feat: add protoc to node Docker images

* fix: add to node8 as well
  • Loading branch information
alexander-fenster authored and busunkim96 committed Nov 19, 2019
1 parent 2758da7 commit 730d8c6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 6 additions & 1 deletion node/10-user/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*

# Setup protoc
RUN curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.10.1/protoc-3.10.1-linux-x86_64.zip > /tmp/protoc-3.10.1-linux-x86_64.zip && \
cd /usr/local && unzip /tmp/protoc-3.10.1-linux-x86_64.zip && rm -f /tmp/protoc-3.10.1-linux-x86_64.zip && \
chmod -R o+rX /usr/local/include/google /usr/local/bin/protoc

USER node

RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
Expand Down Expand Up @@ -53,4 +58,4 @@ RUN set -ex; \
gcloud --quiet components update; \
gcloud --quiet components install beta

WORKDIR /
WORKDIR /
7 changes: 6 additions & 1 deletion node/12-user/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*

# Setup protoc
RUN curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.10.1/protoc-3.10.1-linux-x86_64.zip > /tmp/protoc-3.10.1-linux-x86_64.zip && \
cd /usr/local && unzip /tmp/protoc-3.10.1-linux-x86_64.zip && rm -f /tmp/protoc-3.10.1-linux-x86_64.zip && \
chmod -R o+rX /usr/local/include/google /usr/local/bin/protoc

USER node

RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
Expand Down Expand Up @@ -52,4 +57,4 @@ RUN set -ex; \
gcloud --quiet components update; \
gcloud --quiet components install beta

WORKDIR /
WORKDIR /
5 changes: 5 additions & 0 deletions node/8-user/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

FROM node:8-stretch

# Setup protoc
RUN curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.10.1/protoc-3.10.1-linux-x86_64.zip > /tmp/protoc-3.10.1-linux-x86_64.zip && \
cd /usr/local && unzip /tmp/protoc-3.10.1-linux-x86_64.zip && rm -f /tmp/protoc-3.10.1-linux-x86_64.zip && \
chmod -R o+rX /usr/local/include/google /usr/local/bin/protoc

USER node

RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
Expand Down

0 comments on commit 730d8c6

Please sign in to comment.