Skip to content

Commit f568037

Browse files
committed
fix(odoo-upgrade): set working directory and mount volume in Dockerfile and README
1 parent a28fa00 commit f568037

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

images/odoo-upgrade/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM debian:stable-slim
22

3+
WORKDIR /root
4+
35
RUN apt-get update && apt-get install -y \
46
openssh-client \
57
rsync \
@@ -12,4 +14,4 @@ RUN apt-get update && apt-get install -y \
1214
COPY ./images/odoo-upgrade/bin/* /usr/local/bin/
1315
RUN chmod +x /usr/local/bin/upgrade
1416

15-
ENTRYPOINT ["upgrade"]
17+
ENTRYPOINT ["upgrade"]

images/odoo-upgrade/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ docker run -it \
2828
--name odoo-upgrade \
2929
-e PGHOST="$PGHOST" -e PGUSER="$PGUSER" -e PGPASSWORD="$PGPASSWORD" \
3030
--network="$NETWORK" mintsystem/odoo-upgrade \
31+
-v "$PWD":/root
3132
test -d "$DATABASE" -t "$TARGET_VERSION" -r "$TARGET_DATABASE"
3233
```
3334

@@ -66,4 +67,4 @@ pg_dump: detail: server version: 16.9; pg_dump version: 15.12 (Debian 15.12-0+de
6667

6768
Ensure that the local postgres server does not have a never version than the remote server.
6869

69-
If necessary downgrade the local postgres server.
70+
If necessary downgrade the local postgres server.

0 commit comments

Comments
 (0)