Skip to content

Commit

Permalink
Merge pull request #45 from dmascot/dev_container
Browse files Browse the repository at this point in the history
add: devcontainer config
  • Loading branch information
dvadgama authored Apr 6, 2024
2 parents e6221af + 7fd1b8c commit 9e07fdb
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 683 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2023 DMascot
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT

FROM ubuntu:latest

RUN apt-get update -y &&\
apt-get install -y fish zsh make git gettext &&\
git clone https://github.com/shellspec/shellspec.git /opt/shellspec &&\
cd /opt/shellspec && make install &&\
apt-get clean -y &&\
apt-get autoremove -y
60 changes: 60 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/* cSpell:disable */
{
"name": "tools-dev",
"dockerFile": "Dockerfile",
"runArgs": ["--hostname", "tools-dev"],
"mounts": ["source=${localWorkspaceFolder},target=/vscode/tools,type=bind"],
"workspaceFolder": "/vscode/tools",

"customizations": {
"vscode": {
"extensions": [
"streetsidesoftware.code-spell-checker",
"fabiospampinato.vscode-diff",
"ms-azuretools.vscode-docker",
"codezombiech.gitignore",
"eamodio.gitlens",
"esbenp.prettier-vscode",
"lextudio.restructuredtext",
"timonwong.shellcheck",
"ymotongpoo.licenser",
"JustSxm.another-file-header",
"psioniq.psi-header",
"github.vscode-github-actions"
],

"settings": {
//vscode settings
"task.problemMatchers.neverPrompt": {
"shell": true
},
"breadcrumbs.enabled": false,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.minimap.enabled": false,
"editor.tabCompletion": "on",
"files.exclude": {
"**/.DS_Store": true,
"**/.git": true,
"**/Thumbs.db": true
},
"files.trimTrailingWhitespace": true,
"git.autofetch": true,

//licenser settings
"licenser.projectName": "Tools",
"licenser.author": "DMascot",

//spellcheck settings
"cSpell.language": "en-GB",
"cSpell.enabled": true,

//docker file formatter
"[dockerfile]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
}
}
}
}
}
2 changes: 2 additions & 0 deletions .github/workflows/docker_image.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: docker-image

on:
schedule:
- cron: "0 7 * * 0"
pull_request:
types:
- closed
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.vscode/*
.vscode/settings.json

# Local History for Visual Studio Code
.history/
Expand Down
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "bash-test",
"type": "shell",
"command": "shellspec",
"args": ["--shell", "/bin/bash", "--quiet"]
},
{
"label": "zsh-test",
"type": "shell",
"command": "shellspec",
"args": ["--shell", "/bin/zsh", "--quiet"]
}
]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Loading

0 comments on commit 9e07fdb

Please sign in to comment.