Sign inSign up

sungardas/condensation

By sungardas

Updated about 9 years ago

Use docker to create, build and deploy condensation particles

Image
0

306

sungardas/condensation repository overview

condensation-docker

condensation

Use docker to create, build and deploy condensation particles

Development Note

This image is for development and should not be run as root. A bind mount is created to the host in the current directory. To do this gosu is used to match the UID and GID from the host to the running process in the container.

On Mac this is the default state. On linux add a non-root user to the docker group for development.

Create an alias for condensation

The following creates an alias for running a container that will:

  • bind mount the host user aws credentials file to the container
  • expose any AWS environment variables that are set on the host for authentication
  • bind mount the current directory on the host to /particles in the container
alias condensation="docker run -e GOSU_USER=\`id -u\`:\`id -g\` -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN -e AWS_DEFAULT_REGION -e AWS_DEFAULT_PROFILE -v \"$HOME\"/.aws/credentials:/home/condensation/.aws/credentials -v \`pwd\`:/particles --rm -it sungardas/condensation"

Run condensation

condensation create project particles-MYPROJECT

cd particles-MYPROJECT

condensation run build
create

A wrapper for generator-condensation.

Appends arguments to yo condensation: within the container

# Specific version of condensation
# such as a release candidate
> condensation create project particles-MYPROJECT --condensation-version rc

# Or a specific version
> condensation create project particles-MYPROJECT --condensation-version 0.5.9

# Or any semver compatible string
> condensation create project particles-MYPROJECT --condensation-version ^0.6.0
run

Appends arguments to npm run within the container.

$ condensation run test
$ condensation run build
$ condensation run deploy
run-task

A wrapper for condensation gulp tasks.

Appends arguments to /particles/node_modules/.bin/gulp within the container.

list-tasks

List all condensation tasks for the project

install

A wrapper for npm install used to install particle dependencies.

Appends arguments to npm install --save within the container.

condensation install particles-vpc

License

Apache-2.0 ©

Sungard Availability Services | Labs

Sungard Availability Services | Labs

This project is maintained by the Labs team at Sungard Availability Services

GitHub: https://sungardas.github.io

Blog: http://blog.sungardas.com/CTOLabs/

Tag summary

Content type

Image

Digest

Size

116.7 MB

Last updated

about 9 years ago

docker pull sungardas/condensation