From 1c09daf91130c8806737e276b79a717e9c4e8084 Mon Sep 17 00:00:00 2001 From: mikelde Date: Thu, 28 Mar 2024 10:58:52 +1100 Subject: [PATCH] Updated to get Codespaces working --- .devcontainer/Dockerfile | 18 +++++++++++------- .devcontainer/devcontainer.json | 4 ++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index b0a5117d..4a149314 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -18,14 +18,17 @@ ARG LEININGEN_VERSION="stable" # [Optional] POLYLITH version ARG POLYLITH_VERSION="0.2.13-alpha" -# [Option] Install Clojure CLI tool -ARG INSTALL_CLOJURE_CLI="${templateOption:installClojureCli}" +ARG INSTALL_CLOJURE_CLI="true" +# # [Option] Install Clojure CLI tool +# ARG INSTALL_CLOJURE_CLI="${templateOption:installClojureCli}" -# [Option] Install Leiningen -ARG INSTALL_LEININGEN="${templateOption:installLeiningen}" +ARG INSTALL_LEININGEN="true" +# # [Option] Install Leiningen +# ARG INSTALL_LEININGEN="${templateOption:installLeiningen}" -# [Option] Install Polylith -ARG INSTALL_POLYLITH="${templateOption:installPolylith}" +ARG INSTALL_POLYLITH="true" +# # [Option] Install Polylith +# ARG INSTALL_POLYLITH="${templateOption:installPolylith}" RUN if [ "${INSTALL_CLOJURE_CLI}" = "true" ]; then \ apt-get update \ @@ -58,7 +61,8 @@ RUN if [ "${INSTALL_POLYLITH}" = "true" ]; then \ && /usr/local/sbin/poly version; fi # [Choice] Node.js version: none, lts/*, 16, 14, 12, 10 -ARG NODE_VERSION="${templateOption:nodeVersion}" +#ARG NODE_VERSION="${templateOption:nodeVersion}" +ARG NODE_VERSION="16" RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi # [Optional] Uncomment this section to install additional OS packages. diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a6fbc26c..539c7caa 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -26,10 +26,10 @@ }, // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], + "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "java -version", + "postCreateCommand": "java -version", // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode"