Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Commit c2a9e84

Browse files
Remove postcreatecommand. Doc cache reset
1 parent 21398ff commit c2a9e84

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"workspaceFolder": "/workspace",
66
"context": "..",
77
"workspaceMount": "src=${localWorkspaceFolder},dst=/workspace,type=bind",
8-
"postCreateCommand": "make set-kindcluster",
98
"runArgs": [
109
// Mount the env file
1110
"--env-file", "${localWorkspaceFolder}/.devcontainer/.env",

docs/contributing.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,30 @@ If you are using Visual Studio Code with [Remote - Containers](https://marketpla
5151
```
5252
7. Once your kind cluster has been created, you can now start testing your Azure Databicks Operator within your own local kubernetes environment!
5353

54+
## Advanced: DevContainer Cache
55+
56+
To speedup start times for the `devcontainer` and reduce the requirement for internet connectivity when starting we cache the `.vscodeserver` and `/go/pkg` folder to docker volumes. The [VSCode docs cover this topic here](https://code.visualstudio.com/docs/remote/containers-advanced#_avoiding-extension-reinstalls-on-container-rebuild).
57+
58+
The downside is that changes to the `extension` list in `devcontainer.json` won't automatically be picked up. To clear the cache run `docker volume rm dboperator-vscodecache -f`.
59+
60+
You'll need to remove existing instance of the `devcontainer` before clearing the cache. Use `docker ps -a` and then locating the container with a name `vsc-azure-databricks-operator-*` and using `docker rm -f CONTAINER-NAME-HERE` to remove it.
61+
62+
In `bash` the following will automate the process:
63+
64+
```
65+
docker ps -a | grep vsc-azure-databricks | awk '{print $1}' | xargs docker rm -f
66+
docker volume rm dboperator-vscodecache -f
67+
docker volume rm dboperator-gomodcache -f
68+
```
69+
5470
# Building and Running the operator
5571

5672
## Basics
5773
The scaffolding for the project is generated using `Kubebuilder`. It is a good idea to become familiar with this [project](https://github.com/kubernetes-sigs/kubebuilder). The [quick start](https://book.kubebuilder.io/quick-start.html) guide is also quite useful.
5874

5975
See `Makefile` at the root directory of the project. By default, executing `make` will build the project and produce an executable at `./bin/manager`
6076

61-
For example, to quick start
62-
>this assumes dependencies have been downloaded and existing CRDs have been installed. See next section
77+
For example, to quick start this assumes dependencies have been downloaded and existing CRDs have been installed. See next section
6378
```
6479
$ git clone https://github.com/microsoft/azure-databricks-operator.git
6580
$ cd azure-databricks-operator

0 commit comments

Comments
 (0)