- Ensure Java JDK is installed (Java 8). If it's installed, you'll have the commands
java
andjavac
- Type: ./gradlew build
- Run the jar file: build/libs/ipa-api-0.1.0.jar
- docker build -t ipa-web .
- docker run --env-file=ipa-web.env -p 8080:8080 -t ipa-web
docker build -t ipa-web -f Dockerfile-build --build-arg IPA_DATASOURCE_URL="jdbc:mysql://host:3306/schema_name?autoReconnect=true&useSSL=false" --build-arg IPA_DATASOURCE_USERNAME="username" --build-arg IPA_DATASOURCE_PASSWORD="password" .
Note that you'll need to correct the three variables being passed in to be correct. If you wish to use your host computer's MySQL installation, Docker provides special hostnames to access it: "host.docker.internal".
- Go to AWS ECR >
ipa-web-staging
- Follow the steps under
View push commands
- Go to AWS ECS > Clusters > default >
ipa-web-staging
- Update service to
Force new deployment
- Log in to Jenkins
- Click on
Build and Deploy ipa-web
- Hit
Build Now