diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 1e559fe..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,39 +0,0 @@ -# Use SUSE BCI Golang as the base image -FROM registry.suse.com/bci/golang:1.25 - -# Install VCS tools and other dependencies -RUN zypper --non-interactive refresh && \ - zypper --non-interactive install -y \ - git \ - mercurial \ - subversion \ - bzr \ - make \ - curl \ - sudo \ - shadow && \ - zypper clean --all - -# Create a non-root user for development -ARG USERNAME=vscode -ARG USER_UID=1000 -ARG USER_GID=$USER_UID - -RUN groupadd --gid $USER_GID $USERNAME && \ - useradd --uid $USER_UID --gid $USER_GID -m $USERNAME && \ - echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME && \ - chmod 0440 /etc/sudoers.d/$USERNAME - -# Set up Go workspace -ENV GOPATH=/go -ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH - -# Create Go workspace directories with correct permissions -RUN mkdir -p /go/src /go/bin /go/pkg && \ - chown -R $USERNAME:$USERNAME /go - -# Switch to the non-root user -USER $USERNAME - -# Set working directory -WORKDIR /workspace diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 681c35b..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "VCS Development Container", - "build": { - "dockerfile": "Dockerfile" - }, - "customizations": { - "vscode": { - "settings": { - "go.toolsManagement.checkForUpdates": "local", - "go.useLanguageServer": true - }, - "extensions": [ - "golang.go" - ] - } - }, - "postCreateCommand": "go mod download", - "remoteUser": "vscode" -} diff --git a/.gitignore b/.gitignore index daf913b..2d02ccc 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ _testmain.go *.exe *.test *.prof + +# DevContainer - allow developers to have their own setup +.devcontainer/