How to use odoo:17 image in devcontainer?

Đang mở
#508 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker, dockerfile
Lĩnh vực
devops, documentation

Hướng nghiên cứu

Bắt đầu với .devcontainer/Dockerfile.fajnodoo17 và .devcontainer/devcontainer.json, sau đó so sánh chúng với phần tổng quan về image odoo:17. Điều tra thiết lập người dùng của image, vị trí các module đã cài đặt và cách gọi odoo-bin. Hoàn thành có nghĩa là ghi lại cách sử dụng devcontainer đã được xác minh và các khuyến nghị trong phần tổng quan về image odoo:17.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I am trying to create a devcontainer for the development of custom Odoo modules. This devcontainer is based on the official odoo:17 image. You can see the current state of my devcontainer in my-odoo-project.zip. I would like to ask the following questions:

  • It took me a few days of effort to discover that I needed to add a new user with UID/GID 1000 in the odoo:17 image to make the devcontainer work with this image. See the creation of the developer user in .devcontainer/Dockerfile.fajnodoo17 and the "remoteUser" in .devcontainer/devcontainer.json. Here are my questions:

    • Is creating a user with UID/GID 1000 the only solution, or is there a more straightforward alternative?
    • If user creation is the correct approach, is it possible to pre-create such a devcontainer-friendly user in the Docker image to make it easily usable for a devcontainer creation? Or at least, is it possible to add a section "How to use this image in a devcontainer" in the odoo:17 image overview describing how to extend the image by user creation?
  • How can I map the installed Odoo modules (applications) to my devcontainer? Where are they located in the odoo:17 image?

  • How can I run odoo-bin command in the devcontainer (or Docker container)?

  • Do you have any other recommendations on how to correctly use the odoo:17 image in a devcontainer for development? Would it be possible to include these recommendations in the odoo:17 image overview?

Ngôn ngữ chính
Dockerfile
Star
1.2k
Fork
1.7k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của odoo/docker

Tất cả issue của odoo/docker

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.