Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create devcontainer.json #1

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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',
}
20 changes: 20 additions & 0 deletions .devcontainer/install-dependencies.sh
Original file line number Diff line number Diff line change
@@ -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
Loading