Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuxel committed Apr 19, 2019
1 parent 4382a6e commit 5afc842
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 43 deletions.
12 changes: 10 additions & 2 deletions containers/azure-functions-node-8/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

FROM mcr.microsoft.com/dotnet/core/sdk:2.1

# Install git, process tools, bash
RUN apt-get update && apt-get -y install git procps
# Verify git and needed tools are installed
RUN apt-get update && apt-get -y install git curl tar procps

# Install Node.js via NVM - See https://github.com/creationix/nvm
# Change the number "8" in the two lines below to pick a different version
Expand All @@ -18,6 +18,14 @@ RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh
# Install eslint
RUN /bin/bash -c "source $HOME/.nvm/nvm.sh && npm install -g eslint"

# Install latest yarn
RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
&& rm -rf /opt/yarn-* \
&& tar -xzf latest.tar.gz -C /opt/ \
&& ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
&& ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm latest.tar.gz

# Install Azure Functions and Azure CLI
RUN apt-get install -y apt-transport-https curl gnupg2 lsb-release \
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
Expand Down
12 changes: 10 additions & 2 deletions containers/azure-functions-node-lts/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

FROM mcr.microsoft.com/dotnet/core/sdk:2.1

# Install git, process tools, bash
RUN apt-get update && apt-get -y install git procps
# Verify git and needed tools are installed
RUN apt-get update && apt-get -y install git curl tar procps

# Install Node.js via NVM - See https://github.com/creationix/nvm
# Change the "lts/*" in the two lines below to pick a different version
Expand All @@ -18,6 +18,14 @@ RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh
# Install eslint
RUN /bin/bash -c "source $HOME/.nvm/nvm.sh && npm install -g eslint"

# Install latest yarn
RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
&& rm -rf /opt/yarn-* \
&& tar -xzf latest.tar.gz -C /opt/ \
&& ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
&& ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm latest.tar.gz

# Install Azure Functions and Azure CLI
RUN apt-get install -y apt-transport-https curl gnupg2 lsb-release \
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
Expand Down
18 changes: 10 additions & 8 deletions containers/javascript-node-8/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils 2>&1

# Verify git and process tools are installed
RUN apt-get install -y git procps
# Verify git and needed tools are installed
RUN apt-get install -y git curl tar procps

# Install yarn
RUN apt-get install -y curl apt-transport-https lsb-release \
&& curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/pubkey.gpg | apt-key add - 2>/dev/null \
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get -y install --no-install-recommends yarn
# Update Yarn to latest
# See https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#upgradingdowngrading-yarn
RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
&& rm -rf /opt/yarn-* \
&& tar -xzf latest.tar.gz -C /opt/ \
&& ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
&& ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm latest.tar.gz

# Install eslint
RUN npm install -g eslint
Expand Down
8 changes: 2 additions & 6 deletions containers/javascript-node-lts-mongo/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ RUN apt-get update \
# Verify git and process tools are installed
RUN apt-get install -y git procps

# Install yarn
RUN apt-get install -y curl apt-transport-https lsb-release \
&& curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/pubkey.gpg | apt-key add - 2>/dev/null \
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get -y install --no-install-recommends yarn
# Update yarn
RUN npm install -g yarn

# Install eslint
RUN npm install -g eslint
Expand Down
20 changes: 11 additions & 9 deletions containers/javascript-node-lts/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils 2>&1

# Verify git and process tools are installed
RUN apt-get install -y git procps

# Install yarn
RUN apt-get install -y curl apt-transport-https lsb-release \
&& curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/pubkey.gpg | apt-key add - 2>/dev/null \
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get -y install --no-install-recommends yarn
# Verify git and needed tools are installed
RUN apt-get install -y git curl tar procps

# Update Yarn to latest
# See https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#upgradingdowngrading-yarn
RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
&& rm -rf /opt/yarn-* \
&& tar -xzf latest.tar.gz -C /opt/ \
&& ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
&& ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm latest.tar.gz

# Install eslint
RUN npm install -g eslint

Expand Down
18 changes: 10 additions & 8 deletions containers/typescript-node-8/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils 2>&1

# Verify git and process tools are installed
RUN apt-get install -y git procps
# Verify git and needed tools are installed
RUN apt-get install -y git curl tar procps

# Install yarn
RUN apt-get install -y curl apt-transport-https lsb-release \
&& curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/pubkey.gpg | apt-key add - 2>/dev/null \
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get -y install --no-install-recommends yarn
# Update Yarn to latest
# See https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#upgradingdowngrading-yarn
RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
&& rm -rf /opt/yarn-* \
&& tar -xzf latest.tar.gz -C /opt/ \
&& ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
&& ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm latest.tar.gz

# Install tslint and typescript
RUN npm install -g tslint typescript
Expand Down
18 changes: 10 additions & 8 deletions containers/typescript-node-lts/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils 2>&1

# Verify git and process tools are installed
RUN apt-get install -y git procps
# Verify git and needed tools are installed
RUN apt-get install -y git curl tar procps

# Install yarn
RUN apt-get install -y curl apt-transport-https lsb-release \
&& curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/pubkey.gpg | apt-key add - 2>/dev/null \
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get -y install --no-install-recommends yarn
# Update Yarn to latest
# See https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#upgradingdowngrading-yarn
RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
&& rm -rf /opt/yarn-* \
&& tar -xzf latest.tar.gz -C /opt/ \
&& ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
&& ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm latest.tar.gz

# Install tslint and typescript
RUN npm install -g tslint typescript
Expand Down

0 comments on commit 5afc842

Please sign in to comment.