Commit e7aee13
Apply ORA_TZFILE workaround to devcontainer
#292 added the ORA-01805 workaround to the remaining `gvenzl/oracle-free`
CI workflows. The same root cause -- the server image shipping a newer
timezone-data version than the "latest" Instant Client embeds -- affects
the dev container, which combines `gvenzl/oracle-free:latest` (Oracle
service) with the Instant Client installed via the app `Dockerfile` and
talks to it through ruby-oci8.
Mirror the workflow step in `postCreateCommand.sh` immediately after
`ci/setup_accounts.sh`: locate the running Oracle container, copy its
`timezlrg_*.dat` onto the Instant Client's `oracore/zoneinfo`, and
persist `ORA_TZFILE` via `/etc/profile.d/ora_tzfile.sh` so every login
shell (and the rspec runs they launch) sees the override.
The Docker CLI and the host docker socket needed to drive `docker exec`
/ `docker cp` are provided by the standard
`ghcr.io/devcontainers/features/docker-outside-of-docker` feature, added
alongside the existing Ruby feature in `devcontainer.json`. The lookup
is dynamic, so a future gvenzl image bump continues to work without
further edits.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d57a0a5 commit e7aee13
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
25 | 42 | | |
0 commit comments