Skip to content

Commit

Permalink
add mirrord
Browse files Browse the repository at this point in the history
  • Loading branch information
audacioustux committed Nov 26, 2023
1 parent 6f3d807 commit 041ffac
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 20 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
- knative
- ebort
- pack-cli
- mirrord
steps:
- uses: actions/checkout@v3
- name: "Install latest devcontainer CLI"
Expand Down
41 changes: 21 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# DevContainer Features

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new/?repo=audacioustux%2Fdevcontainers&ref=master)
[![Codespaces Prebuilds](https://github.com/audacioustux/devcontainers/actions/workflows/codespaces/create_codespaces_prebuilds/badge.svg)](https://github.com/audacioustux/devcontainers/actions/workflows/codespaces/create_codespaces_prebuilds)

Expand All @@ -10,29 +11,29 @@
## Contribute

* Add new features
- Use `task new -- <feature-id> "<feature-name>" "<feature-description>"` to create a new feature from template
* Use `task new -- <feature-id> "<feature-name>" "<feature-description>"` to create a new feature from template
* Let me know if something is not working as expected

## Features

<!-- FEATURES_LIST_START -->
- [argo](https://github.com/audacioustux/devcontainers/tree/main/src/argo)
- [bazel](https://github.com/audacioustux/devcontainers/tree/main/src/bazel)
- [bun](https://github.com/audacioustux/devcontainers/tree/main/src/bun)
- [cilium](https://github.com/audacioustux/devcontainers/tree/main/src/cilium)
- [common-utils-extras](https://github.com/audacioustux/devcontainers/tree/main/src/common-utils-extras)
- [ebort](https://github.com/audacioustux/devcontainers/tree/main/src/ebort)
- [graalvm](https://github.com/audacioustux/devcontainers/tree/main/src/graalvm)
- [k9s](https://github.com/audacioustux/devcontainers/tree/main/src/k9s)
- [knative](https://github.com/audacioustux/devcontainers/tree/main/src/knative)
- [kubebuilder](https://github.com/audacioustux/devcontainers/tree/main/src/kubebuilder)
- [kustomize](https://github.com/audacioustux/devcontainers/tree/main/src/kustomize)
- [operator-sdk](https://github.com/audacioustux/devcontainers/tree/main/src/operator-sdk)
- [pack-cli](https://github.com/audacioustux/devcontainers/tree/main/src/pack-cli)
- [pulumi](https://github.com/audacioustux/devcontainers/tree/main/src/pulumi)
- [scala-toolchain](https://github.com/audacioustux/devcontainers/tree/main/src/scala-toolchain)
- [taskfile](https://github.com/audacioustux/devcontainers/tree/main/src/taskfile)
- [tilt](https://github.com/audacioustux/devcontainers/tree/main/src/tilt)
- [vegeta](https://github.com/audacioustux/devcontainers/tree/main/src/vegeta)
- [wasm-toolchain](https://github.com/audacioustux/devcontainers/tree/main/src/wasm-toolchain)
* [argo](https://github.com/audacioustux/devcontainers/tree/main/src/argo)
* [bazel](https://github.com/audacioustux/devcontainers/tree/main/src/bazel)
* [bun](https://github.com/audacioustux/devcontainers/tree/main/src/bun)
* [cilium](https://github.com/audacioustux/devcontainers/tree/main/src/cilium)
* [common-utils-extras](https://github.com/audacioustux/devcontainers/tree/main/src/common-utils-extras)
* [ebort](https://github.com/audacioustux/devcontainers/tree/main/src/ebort)
* [graalvm](https://github.com/audacioustux/devcontainers/tree/main/src/graalvm)
* [k9s](https://github.com/audacioustux/devcontainers/tree/main/src/k9s)
* [knative](https://github.com/audacioustux/devcontainers/tree/main/src/knative)
* [kubebuilder](https://github.com/audacioustux/devcontainers/tree/main/src/kubebuilder)
* [kustomize](https://github.com/audacioustux/devcontainers/tree/main/src/kustomize)
* [operator-sdk](https://github.com/audacioustux/devcontainers/tree/main/src/operator-sdk)
* [pack-cli](https://github.com/audacioustux/devcontainers/tree/main/src/pack-cli)
* [pulumi](https://github.com/audacioustux/devcontainers/tree/main/src/pulumi)
* [scala-toolchain](https://github.com/audacioustux/devcontainers/tree/main/src/scala-toolchain)
* [taskfile](https://github.com/audacioustux/devcontainers/tree/main/src/taskfile)
* [tilt](https://github.com/audacioustux/devcontainers/tree/main/src/tilt)
* [vegeta](https://github.com/audacioustux/devcontainers/tree/main/src/vegeta)
* [wasm-toolchain](https://github.com/audacioustux/devcontainers/tree/main/src/wasm-toolchain)
<!-- FEATURES_LIST_END -->
9 changes: 9 additions & 0 deletions src/mirrord/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "Mirrord",
"id": "mirrord",
"version": "1.0.0",
"description": "Develop Locally with Your Kubernetes Environment",
"installsAfter": [
"ghcr.io/devcontainers/features/common-utils"
]
}
8 changes: 8 additions & 0 deletions src/mirrord/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -eax

ARCH=amd64
if [ "$(uname -m)" = "aarch64" ]; then ARCH=arm64; fi

curl -fsSL https://raw.githubusercontent.com/metalbear-co/mirrord/main/scripts/install.sh | bash
17 changes: 17 additions & 0 deletions test/mirrord/available_for_nonroot_user.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -e

source dev-container-features-test-lib

check "user is vscode" grep vscode <(whoami)

bins=(
mirrord
)

for bin in "${bins[@]}"; do
check "$bin" command -v "$bin"
done

reportResults
12 changes: 12 additions & 0 deletions test/mirrord/scenarios.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"available_for_nonroot_user": {
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"username": "vscode"
},
"mirrord": {}
}
}
}

0 comments on commit 041ffac

Please sign in to comment.