Skip to content

Commit

Permalink
feat(base-devcontainer): add base devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
johnitvn committed Nov 23, 2024
1 parent b5591da commit 99deee4
Show file tree
Hide file tree
Showing 7 changed files with 149 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
}
}
}
57 changes: 57 additions & 0 deletions devcontainer-images/base-devcontainer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Changelog

## [0.0.8](https://github.com/ebizbase/dev-infras/compare/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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/[email protected]@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))
3 changes: 3 additions & 0 deletions devcontainer-images/base-devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions devcontainer-images/base-devcontainer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@ebizbase/base-devcontainer",
"version": "0.0.0"
}
45 changes: 45 additions & 0 deletions devcontainer-images/base-devcontainer/project.json
Original file line number Diff line number Diff line change
@@ -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}"]
}
}
}
}
3 changes: 3 additions & 0 deletions release-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
"jsonpath": "$.version"
}
]
},
"devcontainer-images/base-devcontainer": {
"release-type": "node"
}
}
}
3 changes: 2 additions & 1 deletion release-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 99deee4

Please sign in to comment.