You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,38 +2,38 @@ A docker image supporting [GitHub Codespaces](https://github.com/features/codesp
2
2
3
3
Refer to the UCEAP Software Engineering Playbook for more information on how to [setup your development environment](https://itse-playbook.uceap.work/fundamentals/setup-your-development-environment/).
4
4
5
-
## Personalization
6
-
7
-
Devcontainers support dotfiles!
8
-
9
-
See the [GitHub documentation](https://docs.github.com/en/codespaces/setting-your-user-preferences/personalizing-github-codespaces-for-your-account#dotfiles) for more info, and check out [Brandt's personal dotfiles](https://github.com/kurowski/dotfiles) for an example.
10
-
11
-
Visual Studio Code users should also look into the settings available in the Dev Containers extension, such as [Default Extensions](vscode://settings/dev.containers.defaultExtensions) to automatically install your favorite extensions in devcontainers.
12
5
13
-
## Quality of life
6
+
## Helper script
14
7
15
-
This image includes several scripts that integrate with the devcontainer lifecycle, but these can also be used independently:
8
+
This image includes a helper script that provides several commands to support features offered by this container. There are three main types of commands:
16
9
17
-
*`/usr/local/bin/uceap-drupal-dev-on-create`
18
-
*`/usr/local/bin/uceap-drupal-dev-post-create`
19
-
*`/usr/local/bin/uceap-drupal-dev-post-start`
20
-
*`/usr/local/bin/uceap-drupal-dev-update-content`
10
+
-__deploy-*__: perform deployments to various environments
11
+
-__devcontainer-*__: implementations of devcontainer lifecycle hooks
12
+
-_all others_: functionality to support the local developer experience
21
13
22
-
It also includes one that doesn't fit into the devcontainer lifecycle, but performs similar tasks:
14
+
To see a list of available commands, run `uceap` in the terminal. You can also run `uceap help <command>` to see more information about a specific command.
I frequently invoke `uceap-drupal-dev-refresh-content` to reset my local environment after switching branches. It runs `composer install` and invokes `db-rebuild.sh` with a fresh copy of the latest snapshot of the dev environment database and files. With zsh completions installed, it's as easy as `dev-re<TAB>`.
18
+
I frequently invoke `uceaprefresh-content` to reset my local environment after switching branches. It runs `composer install` and invokes `db-rebuild.sh` with a fresh copy of the latest snapshot of the dev environment database and files. With shell completions installed, it's as easy as `uce<TAB>r<TAB>`.
27
19
28
20
> 👉 When working on a PR that adds update hooks or makes config changes, it's generally a good idea to make sure it applies cleanly to a database matching the QA environment. To do this, switch to the `qa` branch, run refresh-content, switch back to your branch, and run the deploy command (e.g. `drush md` for the portal):
29
21
> ```zsh
30
22
> git checkout qa
31
-
> uceap-drupal-dev-refresh-content
23
+
> uceaprefresh-content
32
24
> git checkout -
33
25
> composer install
34
26
> drush $DRUSH_TASK
35
27
>```
36
28
37
-
Sometimes a process can die or port forwarding can fail. `uceap-drupal-dev-post-start` runs a few commands that should get things working again. (Again, zsh shell completion makes this `post-s<TAB>`).
29
+
Sometimes a process can die or port forwarding can fail. `uceap devcontainer-post-start` runs a few commands that should get things working again. (Again, shell completion makes this `uce<TAB>sta<TAB>`).
30
+
31
+
Using devcontainers facilitates treating local environments as ephemeral: they're quick and easy to set up. Treat them as safe to destroy because you can always create a new one (or multiple new ones, to suit your needs). One thing you might miss is your shell history. Check out [Atuin](https://atuin.sh/) to sync your shell history across environments. `Control-R` has never looked so good 😎
38
32
39
-
Using devcontainers faciliates treating local environments as ephemeral: they're quick and easy to setup. Treat them as safe to destroy because you can always create a new one (or multiple new ones, to suit your needs). One thing you might miss is your shell history. Check out [Atuin](https://atuin.sh/) to sync your shell history across environments. `Control-R` has never looked so good 😎
33
+
## Personalization
34
+
35
+
Devcontainers support dotfiles!
36
+
37
+
See the [GitHub documentation](https://docs.github.com/en/codespaces/setting-your-user-preferences/personalizing-github-codespaces-for-your-account#dotfiles) for more info, and check out [Brandt's personal dotfiles](https://github.com/kurowski/dotfiles) for an example.
38
+
39
+
Visual Studio Code users should also look into the settings available in the Dev Containers extension, such as [Default Extensions](vscode://settings/dev.containers.defaultExtensions) to automatically install your favorite extensions in devcontainers.
0 commit comments