• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Docker in Action: Build system how to do

 
Greenhorn
Posts: 11
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeff,

I am new to docker world and i hard core java developer and netbeans contributor.

My question is how to do build docker automation and best practices.

Please share some best practices.

Thanks,
vidhya
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you may have meant to ask this question in the Cloud/Container forum.

I'm going to move it there.
 
Tim Holloway
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I actually have several options. I can manage container builds with Jenkins, which gives me end-to-end support for containerized in-house apps.

I also use Puppet for provisioning. Puppet can build a Docker container and deploy it on one or more puppet-managed hosts. What makes it especially attractive for me is that the Red Hat/compatible platforms don't have very good support built in for auto-starting containers if Docker restarts due to an upgrade or a system reboot. Puppet not only handles the deployment, it also constructs service manager code (init scripts on RHEL/CentOS 6, systemctl declarations on RHEL/CentOS 7). That way I don't have to depend on higher-level resource such as Composer or the various Enterprise managers such as Kubernetes.
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What we do at work is we use the sbt-native packaging and the docker plugin that comes with it. All I have to do is just docker:publishLocal which would create the docker image and publish it to the local docker registry. For continuous integration, we make jenkins do that! So jenkins builds the project, prepares the image, downloads the image on the target environment, spins up the docker container from that image.
 
reply
    Bookmark Topic Watch Topic
  • New Topic