Giter VIP home page Giter VIP logo

play2-on-beanstalk's Introduction

Play2 deployed on Beanstalk via docker

Develop locally as normal. Use ./activator run and so on.

Freestyle build step on DEV@cloud Jenkins

rm -rf Beanstalk.zip
./activator docker:stage
cd target/docker
zip -r ../../Beanstalk.zip . 

Then use AWS deployer to select Beanstalk.zip

Manual deployment via beanstalk

./activator docker:stage

Then in target/docker you will have a Dockerfile and the app ready to build.

To prepare for beanstalk, create a zip:

cd target/docker
zip -r ../BeanStalkApp.zip .

Deploy this zip file via the Beanstalk console (as a docker app).

How it works

The generated Dockerfile will look like this (you shouldn't need to edit it):

FROM dockerfile/java
MAINTAINER John Smith <[email protected]>
EXPOSE 9000
ADD files /
WORKDIR /opt/docker
RUN ["chown", "-R", "daemon", "."]
USER daemon
ENTRYPOINT ["bin/test-act-docker"]
CMD []

This must be at the root of the Zip. This Adds the build play artifacts to the root of the container, which will be build on the first node is lands on on beanstalk. First deploys of brand new apps will take a bit longer than updates.

play2-on-beanstalk's People

Contributors

michaelneale avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.