diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e5556de..7a5463b 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -29,13 +29,11 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ ARG OFT_CORE_VERSION=4.1.0 ARG OFT_ASCIIDOC_PLUGIN_VERSION=0.3.0 ENV LIB_DIR=/opt/oft/lib -RUN < /usr/local/bin/oft \ +RUN mkdir -p $LIB_DIR \ + && base_url=https://github.com/itsallcode \ + && wget -P $LIB_DIR ${base_url}/openfasttrace/releases/download/$OFT_CORE_VERSION/openfasttrace-$OFT_CORE_VERSION.jar \ + && wget -P $LIB_DIR ${base_url}/openfasttrace-asciidoc-plugin/releases/download/$OFT_ASCIIDOC_PLUGIN_VERSION/openfasttrace-asciidoc-plugin-$OFT_ASCIIDOC_PLUGIN_VERSION-with-dependencies.jar \ + && echo '#!/bin/bash\n\njava -cp "${LIB_DIR}/*" org.itsallcode.openfasttrace.core.cli.CliStarter "$@"' > /usr/local/bin/oft \ && chmod +x /usr/local/bin/oft # Before installing cargo tools, change to the user that will be used in the container later. diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 69d2166..5c5ace1 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -40,8 +40,7 @@ "gxl.git-graph-3", "hediet.vscode-drawio", "linusu.auto-dark-mode", - "mhutchie.git-graph", - "ms-azuretools.vscode-docker", + "ms-azuretools.vscode-containers", "rust-lang.rust-analyzer", "streetsidesoftware.code-spell-checker", "tamasfe.even-better-toml",