Skip to content

Commit

Permalink
Add docs around IDE identity
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Nov 7, 2024
1 parent 0b469c5 commit ce44d45
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- [OSX and Linux](#osx-and-linux-2)
- [Upgrading Isle Docker Images](#upgrading-isle-docker-images)
- [Drupal Development](#drupal-development)
- [Pushing code changes](#pushing-code-changes)
- [Production](#production)
- [Generate secrets](#generate-secrets)
- [Production Domain](#production-domain)
Expand Down Expand Up @@ -405,6 +406,21 @@ the Drupal Docker image, see [building](#building) for how.
> should be fairly locked down, and only permit changes to content and not
> configuration.
### Pushing code changes

The [IDE] configured for local development receives its identity from the host system using `ssh-agent`. This is how you are able to `git push` from within the IDE container to a remote git origin (e.g. GitHub). Depending on whether the host is [Mac OS](./docker-compose.darwin.yml) or [Linux](./docker-compose.linux.yml) the docker compose overrides can be seen in the respective override file on how the host identity is propagated into the IDE container.

> [!WARNING]
> If ssh-agent is not configured properly on your host, code changes made in the IDE may be lost
>
> For linux host systems such as Debian or Ubuntu 24+ an environment variable `SSH_AUTH_SOCK` (set by `ssh-agent`) needs to be available in order to pass the host system's SSH identity into the IDE container. If this environment variable is not set (which can be checked on the host by seeing if `echo $SSH_AUTH_SOCK` prints output) it will need to be configured on your host system in order to allow the IDE to `git push` code changes to remote git origins. One possible solution to set this is to add this to your shell's login profile. e.g.
>
>```
>echo 'eval $(ssh-agent -s)' >> ~/.bashrc
>```
After ensuring `SSH_AUTH_SOCK` is set properly, you will need to restart the codeserver service to pickup the changes. Then you should be able to push changes made in your IDE to a remote git origin.
# Production
Running in production makes use of the [production profile], which requires
Expand Down

0 comments on commit ce44d45

Please sign in to comment.