Here is a list of things I would love to see on every box at wercker:
Most package managers depend on source version control software, and I frequently retrieve code from external locations next to in a build.
- git
- mercurial
- svn
- bzr
FROM ubuntu | |
ENV AIR_HOME /opt/air_sdk_3.9 | |
ENV JVM_HOME /opt/jvm | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install wget unzip software-properties-common python-software-properties -y | |
# Install Adobe Air SDK |
box: wercker/ruby | |
services: | |
- wercker/postgresql9.2 | |
build: | |
steps: | |
- create-file: | |
filename: config/database.yml | |
content: |- | |
adapter: postgresql | |
encoding: utf8 |
- script: | |
name: mp3splt | |
code: | | |
echo 'deb http://mp3splt.sourceforge.net/repository precise main' | sudo tee -a /etc/apt/sources.list | |
sudo cat /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install libmp3splt0-mp3 libmp3splt0-ogg libmp3splt0-flac mp3splt mp3splt-gtk | |
box: wercker/nodejs | |
build: | |
- script: | |
name: Copy file to output dir | |
code: cp MY.JAR $WERCKER_OUTPUTDIR/ |
This gist quickly explains the scenario demo'd by the Docker to Digital Ocean example project.
The repository contains a single file with Go code called main.go
that contains application logic to host a counter webservice. There is a Dockerfile
that defines how to build the container.
box: wercker/ruby | |
build: | |
steps: | |
# Execute the bundle install step, a step provided by wercker | |
- bundle-install | |
# Execute a custom script step. | |
- script: | |
name: middleman build | |
code: bundle exec middleman build --verbose | |
after-steps: |
# Targets: | |
# all: Builds the code | |
# build: Builds the code | |
# clean: cleans the code | |
# install: Installs the code to the GOPATH | |
# iref: Installs referenced projects | |
# test: Runs the tests | |
# Go commands | |
GOCMD=go |
box: wercker/python | |
build: | |
steps: | |
- install-packages: | |
packages: libfreetype6-dev | |
- pip-install | |
- script: | |
name: tests | |
code: python tests.py |