diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 000000000000..413bb48f4ad1 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,8 @@ +# Use the specified image +FROM registry.opensuse.org/opensuse/tumbleweed:latest + +# Copy the script into the image +COPY . /tmp/ + +# Run the script +RUN /tmp/install-dependencies.sh \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000000..149f0b20d43f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,17 @@ +{ + "build": { "dockerfile": "Dockerfile" }, + "features": { + }, + "customizations": { + "vscode": { + "extensions": [ + "streetsidesoftware.code-spell-checker", + "richterger.perl", + "ms-python.python", + "sfodje.perltidy", + "ms-vscode.makefile-tools" + ] + } + }, + "postCreateCommand": 'make prepare', +} diff --git a/.devcontainer/install-dependencies.sh b/.devcontainer/install-dependencies.sh new file mode 100755 index 000000000000..e54992543e5f --- /dev/null +++ b/.devcontainer/install-dependencies.sh @@ -0,0 +1,20 @@ +# Generic update +zypper dup -y + +# dependency suggested in the CONTRIBUTING.md +zypper in -y os-autoinst-distri-opensuse-deps perl-JSON-Validator gnu_parallel + +# other dependency that are needed +zypper in -y make git vim gcc-c++ libxml2-devel libssh2-devel libexpat-devel dbus-1-devel python311 python311-devel python311-yamllint python311-PyYAML perl-App-cpanminus perl-Code-TidyAll + +# step suggested by the CONTRIBUTING.md +echo "#########################################" +pwd + +echo "###### CODESPACE_VSCODE_FOLDER: ${CODESPACE_VSCODE_FOLDER} #######" +pwd +ls -lai . +ls -lai ${CODESPACE_VSCODE_FOLDER} +ls -lai /workspaces || echo "### LATER ###" +#cd ${CODESPACE_VSCODE_FOLDER} +#make prepare \ No newline at end of file