aws-samples / aws-samples/aws-sam-java-rest
How to best send command line args to local dynamodb docker container
- Ngôn ngữ chính
- Java
- Star
- 437
- Fork
- 151
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Sorry if this is the wrong git repo - I couldn't find where the dockerfile for `amazon/dynamodb-local` was being maintained.
2 questions here:
1. Currently, to send command line args as described here https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.UsageNotes.html it looks like I need to send the full args to the java process instead of just the args to configure the dynamodb server. So instead of running `docker run -it --rm amazon/dynamodb-local -sharedDb` I need to run `docker run -it --rm amazon/dynamodb-local -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb`
Would it be possible to change the entrypoint/cmd of the dockerfile to handle the java args for you and the user just pass in the extra arguments? I think the more common use case is to just specify the dynamodb args, but if a user wanted to modify the java args they should be able to override the entrypoint in their own `docker run`
2. What directory in the container should I mount if I want to persist the .db file?
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xác định Dockerfile và kiểm tra entrypoint/CMD của nó, sau đó so sánh cách tiến trình Java nhận các đối số trong ví dụ docker run hiện tại. Xác nhận thư mục nào trong container lưu tệp .db và liệu thư mục đó có thể được mount để duy trì dữ liệu hay không. Công việc được xem là hoàn tất khi người dùng có thể truyền trực tiếp các đối số của DynamoDB Local và vị trí mount để duy trì dữ liệu đã được ghi rõ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws, docker, java
- Lĩnh vực
- databases, devops
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100