aws-samples / aws-samples/aws-sam-java-rest
How to best send command line args to local dynamodb docker container
- Langage dominant
- Java
- Étoiles
- 437
- Forks
- 151
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par localiser le Dockerfile et vérifier son entrypoint/CMD, puis comparez la manière dont le processus Java reçoit les arguments dans l’exemple actuel de docker run. Confirmez quel répertoire du conteneur stocke le fichier .db et s’il peut être monté pour assurer la persistance. La tâche est terminée lorsque les utilisateurs peuvent transmettre directement des arguments à DynamoDB Local et qu’un emplacement de montage persistant est documenté.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- aws, docker, java
- Domaine
- databases, devops
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100