Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
felegy committed Jul 11, 2024
0 parents commit 9a64734
Show file tree
Hide file tree
Showing 9 changed files with 657 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "DevOpsUbuntu",
"userEnvProbe": "loginInteractiveShell",
"image": "mcr.microsoft.com/vscode/devcontainers/base:0-ubuntu-22.04",
"runArgs": [
"--privileged",
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined"
],
"remoteUser": "vscode",
"containerUser": "vscode",
"updateRemoteUserUID": true,
"mounts": ["source=brew,target=/home/linuxbrew,type=volume,consistency=cached"],
"features": {
"ghcr.io/meaningful-ooo/devcontainer-features/homebrew:2": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": true,
"installDockerBuildx": true,
"version": "latest",
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers-contrib/features/heroku-cli:1": {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"settings": {
"dotfiles.targetPath": "~/.dotfiles",
"dotfiles.repository": "https://github.com/hvg-dev/dotfiles.git",
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.shell.linux": "zsh",
"terminal.integrated.shellArgs.linux": [ "-l" ]
},
"extensions": [
"timonwong.shellcheck",
"ms-azuretools.vscode-docker",
"editorconfig.editorconfig",
"ms-vscode.makefile-tools",
"vscode-icons-team.vscode-icons"
]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
21 changes: 21 additions & 0 deletions .ecrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"Verbose": false,
"Debug": false,
"IgnoreDefaults": false,
"SpacesAftertabs": false,
"NoColor": false,
"Exclude": [
".git/",
"README.md"
],
"AllowedContentTypes": [],
"PassedFiles": [],
"Disable": {
"EndOfLine": false,
"Indentation": false,
"IndentSize": false,
"InsertFinalNewline": false,
"TrimTrailingWhitespace": false,
"MaxLineLength": false
}
}
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[{Makefile,**.mk}]
# Use tabs for indentation (Makefiles require tabs)
indent_style = tab

[*.md]
trim_trailing_whitespace = false
indent_size = 2

[*.{yml,yaml,tf}]
indent_size = 2

[*.{json,ecrc}]
indent_size = 2

[*.{xml,conf}]
indent_size = 2
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
pull_request:
workflow_dispatch: #kezi inditas

jobs:

check:
name: Check
runs-on: [ubuntu-latest]

steps:
- uses: actions/checkout@master
- uses: editorconfig-checker/action-editorconfig-checker@main
- name: EditorConfig Check
run: editorconfig-checker
- name: Json / Yaml Validate
id: json-yaml-validate
uses: GrantBirki/[email protected]
with:
comment: "true"
allow_multiple_documents: "true"
exclude_file: ".jsonyamlex"
- name: ShellCheck
uses: ludeeus/action-shellcheck@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: PS-Check
uses: SleepySysadmin/github-action-pscheck@master
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/*
!build/manifest.yaml
2 changes: 2 additions & 0 deletions .jsonyamlex
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# exclude devcontainer.json
.devcontainer/devcontainer.json
8 changes: 8 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tap "homebrew/bundle"
brew "editorconfig-checker"
brew "shellcheck"
brew "direnv"
#brew "qemu"
brew "yq"
brew "jq"
vscode "Command is only available in WSL or inside a Visual Studio Code terminal."
Loading

0 comments on commit 9a64734

Please sign in to comment.