Skip to content

Commit

Permalink
Updated to get Codespaces working
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelde committed Mar 27, 2024
1 parent 3379d5a commit 1c09daf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
18 changes: 11 additions & 7 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1c09daf

Please sign in to comment.