Looking for our Bitbucket add-on?Click here to read about recent Aerobatic changes.

Optimized Docker images for continuous deployment to Aerobatic

Friday, Feb 10, 2017

Aerobatic now offers two pre-built CD images: aerobatic/hugo and aerobatic/jekyll, that can you can use with any Docker enabled continuous integration service such as Bitbucket Pipelines. Both images include their respective static generator pre-installed as well as the aerobatic-cli, so the only work to be done is clone your code, build your site, and run aero deploy.

Both images are based on the ultra-lightweight Alpine Docker Image. Smaller images lead to faster build container initialization. This, combined with less software to install with each build, means reduced time between pushing to your repo and fresh changes live on Aerobatic.

aerobatic/hugo

Weighs in at only 66MB and includes the following:

  • python / pip (2.7.13)
  • hugo (v0.18.1)
  • pygments
  • node (v6.9.2)
  • aerobatic-cli (1.0.14)

Available on Dockerhub at https://hub.docker.com/r/aerobatic/hugo/

bitbucket-pipelines.yml usage

image: aerobatic/hugo
pipelines:
  branches:
    master:
      - step:
          script:
            - mkdir -p themes
            - (cd themes; git clone https://github.com/alexurquhart/hugo-geo.git)
            - hugo --theme=hugo-geo --baseURL "https://!!baseurl!!"
            - aero deploy --directory public
---

aerobatic/jekyll

Weighs 118MB and includes the following:

  • ruby (v2.3.3)
  • bundler (v1.14.3)
  • jekyll (v3.4.0)
  • node (v6.9.2)
  • aerobatic-cli (1.0.14)

Available on Dockerhub at https://hub.docker.com/r/aerobatic/hugo/

bitbucket-pipelines.yml usage

image: aerobatic/jekyll
pipelines:
  branches:
    master:
      - step:
          script:
            - '[ -f Gemfile ] && bundle install'
            - 'echo "url: https://!!baseurl!!" >> _config.yml'
            - bundle exec jekyll build
            - aero deploy --directory _site
---

Ready to try Aerobatic?

You can have your first website live in 30 seconds!

Get Started for Free