Skip to content

A build deploy docker image to work with Java application and AWS

Notifications You must be signed in to change notification settings

apssouza22/build-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build & deploy

This is a Docker image containing everything you need to build Java projects and deploy Docker images on AWS ECS using Jenkins Pipeline

Video demonstrating how to use the project

Build and deploy

How to use

  • build the image docker build -t build-deploy:latest -f Dockerfile .

  • run the container docker run -it docker run -e "ECS_CLUSTER=cluster-test" -e "ACCESS_KEY=my_access_key" -e "SECRET_KEY=my_secret_key" -e "REGIAN=eu-west-1" -p 8080:8080 -p 5000:5000 -v jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock build-deploy:latest

  • Test your commands inside the container docker exec -it CONTAINER_ID bash

  • Configure your job on Jenkins localhost:8080

NOTE

This is a part of another open source project that I'm working on. A bootstrap project to work with Microservices using Spring cloud. here

Tips

  • Install "Select suggested plugin" in order to build a quick continuous deploy

  • To run the job by HTTP call curl user:PASSWORD@localhost:8080/job/job-name/build?token=your-token

  • To get the build number sh "echo ${BUILD_NUMBER}"

  • Jenkins login - admin - admin

About

A build deploy docker image to work with Java application and AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages