GithubHelp home page GithubHelp logo

isabella232 / condensation-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sungardas/condensation-docker

0.0 0.0 0.0 19 KB

Use docker to create, build and deploy condensation particles

License: Apache License 2.0

Shell 100.00%

condensation-docker's Introduction

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/

condensation-docker's People

Contributors

kmcgrath 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.