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

Commit dfba31d

Browse files
codespaces-linux v2 image (#1418)
* bump version * version bump * removing frameworks : draft * nit * Install ubiquitous ML Python packages * resolving merge conflict * resolving conflicts * update tag * nit * remove from test.sh Co-authored-by: JP Ungaretti <[email protected]>
1 parent 364972b commit dfba31d

File tree

9 files changed

+11
-616
lines changed

9 files changed

+11
-616
lines changed

containers/codespaces-linux/.devcontainer/base.Dockerfile

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
44
#-------------------------------------------------------------------------------------------------------------
5-
FROM mcr.microsoft.com/oryx/build:vso-focal-20220120.1 as kitchensink
5+
FROM mcr.microsoft.com/oryx/build:vso-focal-20220429.1 as kitchensink
66

77
ARG USERNAME=codespace
88
ARG USER_UID=1000
@@ -30,13 +30,11 @@ ENV SHELL=/bin/bash \
3030
RAILS_DEVELOPMENT_HOSTS=".githubpreview.dev" \
3131
GOROOT="/usr/local/go" \
3232
GOPATH="/go" \
33-
CARGO_HOME="/usr/local/cargo" \
34-
RUSTUP_HOME="/usr/local/rustup" \
3533
SDKMAN_DIR="/usr/local/sdkman" \
3634
JUPYTERLAB_PATH="${HOMEDIR}/.local/bin" \
3735
DOCKER_BUILDKIT=1
3836

39-
ENV PATH="${NVM_DIR}/current/bin:${NPM_GLOBAL}/bin:${ORIGINAL_PATH}:${DOTNET_ROOT}:${DOTNET_ROOT}/tools:${SDKMAN_DIR}/bin:${SDKMAN_DIR}/candidates/gradle/current/bin:${SDKMAN_DIR}/candidates/java/current/bin:/opt/maven/lts:${CARGO_HOME}/bin:${GOROOT}/bin:${GOPATH}/bin:${PIPX_BIN_DIR}:/opt/conda/condabin:${JAVA_ROOT}/current/bin:${NODE_ROOT}/current/bin:${PHP_ROOT}/current/bin:${PYTHON_ROOT}/current/bin:${RUBY_ROOT}/current/bin:${MAVEN_ROOT}/current/bin:${HUGO_ROOT}/current/bin:${JUPYTERLAB_PATH}:${ORYX_PATHS}"
37+
ENV PATH="${NVM_DIR}/current/bin:${NPM_GLOBAL}/bin:${ORIGINAL_PATH}:${DOTNET_ROOT}:${DOTNET_ROOT}/tools:${SDKMAN_DIR}/bin:${SDKMAN_DIR}/candidates/gradle/current/bin:${SDKMAN_DIR}/candidates/java/current/bin:/opt/maven/lts:${GOROOT}/bin:${GOPATH}/bin:${PIPX_BIN_DIR}:/opt/conda/condabin:${JAVA_ROOT}/current/bin:${NODE_ROOT}/current/bin:${PHP_ROOT}/current/bin:${PYTHON_ROOT}/current/bin:${RUBY_ROOT}/current/bin:${MAVEN_ROOT}/current/bin:${HUGO_ROOT}/current/bin:${JUPYTERLAB_PATH}:${ORYX_PATHS}"
4038

4139
# Install needed utilities and setup non-root user. Use a separate RUN statement to add your own dependencies.
4240
COPY library-scripts/* setup-user.sh first-run-notice.txt /tmp/scripts/
@@ -59,7 +57,6 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5957
&& bash /tmp/scripts/sshd-debian.sh \
6058
&& bash /tmp/scripts/git-lfs-debian.sh \
6159
&& bash /tmp/scripts/github-debian.sh \
62-
&& bash /tmp/scripts/azcli-debian.sh \
6360
# Install Moby CLI and Engine
6461
&& bash /tmp/scripts/docker-in-docker-debian.sh "true" "${USERNAME}" "true" \
6562
&& bash /tmp/scripts/kubectl-helm-debian.sh \
@@ -74,17 +71,14 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
7471
# Install Python, PHP, Ruby utilities, and JupyterLab
7572
RUN bash /tmp/scripts/python-debian.sh "none" "/opt/python/latest" "${PIPX_HOME}" "${USERNAME}" "true" \
7673
&& bash /tmp/scripts/jupyterlab-debian.sh \
74+
&& pip install --user numpy pandas scipy matplotlib seaborn scikit-learn tensorflow keras torch requests \
7775
# Install rvm, rbenv, any missing base gems
7876
&& chown -R ${USERNAME} /opt/ruby/* \
7977
&& bash /tmp/scripts/ruby-debian.sh "none" "${USERNAME}" "true" "true" \
8078
# Link composer
8179
&& ln -s $(which composer.phar) /usr/local/bin/composer \
8280
&& apt-get clean -y
8381

84-
# Install PowerShell
85-
RUN bash /tmp/scripts/powershell-debian.sh \
86-
&& apt-get clean -y
87-
8882
# Setup Node.js, install NVM and NVS
8983
RUN bash /tmp/scripts/node-debian.sh "${NVM_DIR}" "none" "${USERNAME}" \
9084
&& (cd ${NVM_DIR} && git remote get-url origin && echo $(git log -n 1 --pretty=format:%H -- .)) > ${NVM_DIR}/.git-remote-and-commit \
@@ -108,9 +102,8 @@ RUN bash /tmp/scripts/gradle-debian.sh "latest" "${SDKMAN_DIR}" "${USERNAME}" "t
108102
&& sdk install java 11-opt-java /opt/java/17.0 \
109103
&& sdk install java lts-opt-java /opt/java/lts"
110104

111-
# Install Rust, Go, remove scripts now that we're done with them
112-
RUN bash /tmp/scripts/rust-debian.sh "${CARGO_HOME}" "${RUSTUP_HOME}" "${USERNAME}" "true" \
113-
&& bash /tmp/scripts/go-debian.sh "latest" "${GOROOT}" "${GOPATH}" "${USERNAME}" \
105+
# Install Go, remove scripts now that we're done with them
106+
RUN bash /tmp/scripts/go-debian.sh "latest" "${GOROOT}" "${GOPATH}" "${USERNAME}" \
114107
&& apt-get clean -y && rm -rf /tmp/scripts
115108

116109
# Mount for docker-in-docker

containers/codespaces-linux/.devcontainer/library-scripts/azcli-debian.sh

Lines changed: 0 additions & 186 deletions
This file was deleted.

0 commit comments

Comments
 (0)