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
This folder provides a minimal Docker setup to exercise the `odoo_install.sh` script in a clean Ubuntu 24.04 container.
4
+
5
+
## Prerequisites
6
+
- Docker 24+
7
+
- Docker Compose plugin (`docker compose` CLI)
8
+
9
+
## Build the Image
10
+
```bash
11
+
docker compose build
12
+
```
13
+
14
+
## Start the Test Container
15
+
Run the container detached so it stays online for manual testing:
16
+
```bash
17
+
docker compose up -d
18
+
```
19
+
20
+
## Run the Installer Script Inside the Container
21
+
1. Attach to the container shell:
22
+
```bash
23
+
docker compose exec odoo19 bash
24
+
```
25
+
2. Make the script executable (first run only):
26
+
```bash
27
+
chmod +x /opt/odoo-install/odoo_install.sh
28
+
```
29
+
3. Execute the installer:
30
+
```bash
31
+
/opt/odoo-install/odoo_install.sh
32
+
```
33
+
34
+
The script runs as root inside the container, so the bundled `sudo` calls succeed without additional configuration. The Docker image already sets locale and timezone data to avoid interactive prompts from `tzdata`.
35
+
36
+
## Reset the Environment
37
+
To destroy the test container and start fresh:
38
+
```bash
39
+
docker compose down -v
40
+
```
41
+
42
+
Re-run the **Build** and **Start** steps to begin another test cycle.
0 commit comments