aws-samples / aws-samples/aws-sam-java-rest

How to best send command line args to local dynamodb docker container

オープン
#1 コメント 14 件 リアクション 13 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
437
フォーク
151
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Dockerfile を見つけて、その entrypoint/CMD を確認します。次に、現在の docker run の例で Java プロセスがどのように引数を受け取るかを比較します。コンテナ内のどのディレクトリに .db ファイルが保存されるか、また永続化のためにマウントできるかを確認します。ユーザーが DynamoDB Local の引数を直接渡せ、永続化用のマウント先が文書化されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, docker, java
領域
databases, devops
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。