Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Add Dockerfile, allowing to use ECS for the replication task.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Vaucher committed Jan 26, 2018
1 parent d755135 commit 86c95ab
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage
target
.git
*.log
.idea
*.iml

8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@
.tmp
target
**/target

# Elastic Beanstalk Files
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml
*.iml
*.log
.idea/
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM maven:3.5.2-jdk-8

# Create app directory
WORKDIR /usr/src/app

# Build
COPY . .

RUN mvn install
CMD [ "java", "-jar", "target/dynamodb-cross-region-replication-1.2.1.jar", "--sourceRegion", "us-east-1", "--sourceTable", "lip_jva_identity", "--destinationRegion", "us-east-1", "--destinationTable", "lip_prod_identity" ]

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
worker: java -jar target/dynamodb-cross-region-replication-1.2.1.jar --sourceRegion us-east-1 --sourceTable lip_jva_identity --destinationRegion us-east-1 --destinationTable lip_prod_identity --taskname jva_prod_identity_replication

0 comments on commit 86c95ab

Please sign in to comment.