README.md in picsolve_docker_builder-0.1.1 vs README.md in picsolve_docker_builder-0.2.0
- old
+ new
@@ -1,13 +1,56 @@
# Picsolve Docker Builder
## Example config file `.docker-builder.yml`
```yaml
+---
+compose:
+ app_name: hello_world
+ clusters:
+ - dev-1b.kubernetes.picsolve.net
+ - dev-1c.kubernetes.picsolve.net
+ containers:
+ container1:
+ image: docker.picsolve.net/image1
+ environment:
+ default:
+ - COOL=${variable:cool}
+ - TERM=xterm
+ - "DB_USER=#{variable:db_username}"
+ - "DB_PASSWORD=#{secret:database:password}"
+ - "DB_NAME=#{stage}-#{app_name}"
+ qa:
+ - ENABLE_QA=1
+ ci:
+ - ENABLE_CI=1
+ ports:
+ - container_port: 9000
+ service_port: 9000
+ requirements:
+ bucket:
+ type: s3bucket
+ database:
+ type: postgres
+ variables:
+ default:
+ cool: yes
+ db_username: dbuser_default
+ ci:
+ db_username: dbuser_ci
+ qa:
+ db_username: dbuser_qa
docker:
base_image: base-image-name
image_name: dest-image-name
+ build_environment:
+ - TERM=xterm
+ build_requirements:
+ bucket:
+ type: s3bucket
+ database:
+ type: postgres
dockerfile_hooks:
asset_build:
early: |
RUN touch /tmp/asset_build_earliest_time.txt
late: |
@@ -18,11 +61,11 @@
late: |
RUN touch /tmp/docker_build_latest_time.txt
scala:
sbt:
build_task:
- - clean
- - universal:packageZipTarball
+ - clean
+ - "universal:packageZipTarball"
```
## Release process
This gem is released publicly to Rubygems repositories. To trigger a release you have to do the following steps: