diff --git a/devcontainer-images/base-devcontainer/.devcontainer/devcontainer.json b/devcontainer-images/base-devcontainer/.devcontainer/devcontainer.json new file mode 100644 index 0000000..1ccf9c7 --- /dev/null +++ b/devcontainer-images/base-devcontainer/.devcontainer/devcontainer.json @@ -0,0 +1,35 @@ +{ + "image": "debian:bookworm-slim", + "remoteUser": "vscode", + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": "true", + "installOhMyZsh": "true", + "configureZshAsDefaultShell": true, + "installOhMyZshConfig": true, + "username": "vscode", + "userUid": "1000", + "userGid": "1000", + "upgradePackages": "true" + }, + "ghcr.io/devcontainers/features/git:1": {}, + "ghcr.io/devcontainers/features/git-lfs:1": { + "autoPull": true + }, + "ghcr.io/ebizbase/devcontainer-features/omz-plugin:1.0.0": { + "preInstalledPlugins": [ + "git", + "git-auto-fetch" + ], + "customPlugins": [ + "zsh-syntax-highlighting:https://github.com/zsh-users/zsh-syntax-highlighting.git", + "you-should-use:https://github.com/MichaelAquilina/zsh-you-should-use.git", + "zsh-autosuggestions:https://github.com/zsh-users/zsh-autosuggestions/archive/refs/tags/v0.7.1.zip" + ], + "deleteInactive": true + }, + "ghcr.io/ebizbase/devcontainer-features/powerlevel10k:1.0.0": { + "deletePreinstalledThemes": true + } + } +} diff --git a/devcontainer-images/base-devcontainer/CHANGELOG.md b/devcontainer-images/base-devcontainer/CHANGELOG.md new file mode 100644 index 0000000..36a2695 --- /dev/null +++ b/devcontainer-images/base-devcontainer/CHANGELOG.md @@ -0,0 +1,57 @@ +# Changelog + +## [0.0.8](https://github.com/ebizbase/dev-infras/compare/base-devcontainer@0.0.7...base-devcontainer@0.0.8) (2024-11-19) + + +### Features + +* **base-devcontainer:** update powerlevel10k to version 0.0.4 ([9c9c5bb](https://github.com/ebizbase/dev-infras/commit/9c9c5bb3e772afdafcb544d3ce72916886cd79c4)) + +## [0.0.7](https://github.com/ebizbase/dev-infras/compare/base-devcontainer@0.0.6...base-devcontainer@0.0.7) (2024-11-18) + + +### Features + +* **base-devcontainer:** update omz-plugin version 0.1.0 ([0c16cda](https://github.com/ebizbase/dev-infras/commit/0c16cda93f891f1b5b79f4d4146412a697aeff6c)) + +## [0.0.6](https://github.com/ebizbase/dev-infras/compare/base-devcontainer@0.0.5...base-devcontainer@0.0.6) (2024-11-18) + + +### Features + +* **base-devcontainer:** add use should use zsh plugin ([febb17a](https://github.com/ebizbase/dev-infras/commit/febb17aa283ff91278c8de25fe649ed28495ff1e)) + +## [0.0.5](https://github.com/ebizbase/dev-infras/compare/base-devcontainer@0.0.4...base-devcontainer@0.0.5) (2024-11-18) + + +### Bug Fixes + +* zsh-syntax-highlighting delete all github release ([964784e](https://github.com/ebizbase/dev-infras/commit/964784eb888ba6d81fc2af2212d8aedf13dd96c8)) + +## [0.0.4](https://github.com/ebizbase/dev-infras/compare/base-devcontainer@0.0.3...base-devcontainer@0.0.4) (2024-11-17) + + +### Bug Fixes + +* **base-devcontainer:** update omz-plugins to 0.0.3 version ([2b2c11a](https://github.com/ebizbase/dev-infras/commit/2b2c11a40c6d371aca60c448c7ad75d2409fec27)) + +## [0.0.3](https://github.com/ebizbase/dev-infras/compare/base-devcontainer@0.0.2...base-devcontainer@0.0.3) (2024-11-17) + + +### Bug Fixes + +* **base-devcontainer:** update omz-plugins depencies ([7e76db2](https://github.com/ebizbase/dev-infras/commit/7e76db267f17ea3262dec32224268071a6484470)) + +## [0.0.2](https://github.com/ebizbase/dev-infras/compare/base-devcontainer@0.0.1...base-devcontainer@0.0.2) (2024-11-17) + + +### Bug Fixes + +* **base-devcontainer:** wrong omz-plugin option name ([f4c02ea](https://github.com/ebizbase/dev-infras/commit/f4c02ea015f6153167be2d2cd2b3a0c9b3b33817)) + +## 0.0.1 (2024-11-17) + + +### Features + +* **base-devcontainer:** add base devcontainer image ([ac81a79](https://github.com/ebizbase/dev-infras/commit/ac81a79c3d1734ba582113803ad1bd37e8c6f72b)) diff --git a/devcontainer-images/base-devcontainer/README.md b/devcontainer-images/base-devcontainer/README.md new file mode 100644 index 0000000..d70132b --- /dev/null +++ b/devcontainer-images/base-devcontainer/README.md @@ -0,0 +1,3 @@ +# Base Devcontainer + +The `base-devcontainer` is a prebuild devcontainer image base on debian with common-utils and provide good experiences interacting with the zsh shell diff --git a/devcontainer-images/base-devcontainer/project.json b/devcontainer-images/base-devcontainer/project.json new file mode 100644 index 0000000..247ae00 --- /dev/null +++ b/devcontainer-images/base-devcontainer/project.json @@ -0,0 +1,45 @@ +{ + "name": "base-devcontainer", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "devcontainer-images/base-devcontainer", + "projectType": "application", + "tags": [], + "metadata": { + "$schema": "../../nx-plugins/nx-devcontainer/metadata.schema.json", + "version": "0.0.0", + "registries": ["docker.io", "ghcr.io"], + "namespace": "ebizbase/base-devcontainer", + "labels": { + "org.opencontainers.image.source": "https://github.com/ebizbase/dev-infras", + "org.opencontainers.image.description": "Base devcontainer image for ebizbase", + "org.opencontainers.image.licenses": "MIT" + } + }, + "targets": { + "build": { + "executor": "@ebizbase/nx-internal:build-devcontainer-image", + "options": { + "tags": ["edge"] + } + }, + "test": { + "dependsOn": ["build"], + "executor": "nx:run-commands", + "options": { + "commands": [ + "docker run --rm ebizbase/base-devcontainer:edge zsh --version", + "docker run --rm ebizbase/base-devcontainer:edge git --version", + "docker run --rm ebizbase/base-devcontainer:edge git lfs --version" + ], + "parallel": false + } + }, + "publish": { + "executor": "@ebizbase/nx-internal:build-devcontainer-image", + "options": { + "push": true, + "tags": ["latest", "{major}", "{major}.{minor}", "{major}.{minor}.{patch}"] + } + } + } +} diff --git a/release-config.json b/release-config.json index 887354d..5ec47dc 100644 --- a/release-config.json +++ b/release-config.json @@ -46,6 +46,9 @@ "jsonpath": "$.version" } ] + }, + "devcontainer-images/base-devcontainer": { + "release-type": "simple" } } } diff --git a/release-manifest.json b/release-manifest.json index 2e2ef0f..d962b9a 100644 --- a/release-manifest.json +++ b/release-manifest.json @@ -5,5 +5,6 @@ "packages/nx-dive": "1.0.0", "devcontainer-features/powerlevel10k": "1.0.0", "devcontainer-features/omz-plugin": "1.0.0", - "devcontainer-features/install-npm-package-globally": "1.0.0" + "devcontainer-features/install-npm-package-globally": "1.0.0", + "devcontainer-images/base-devcontainer": "0.0.0" }