GithubHelp home page GithubHelp logo

isabella232 / code-once-deploy-everywhere-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akamai-contrib/code-once-deploy-everywhere-demo

0.0 0.0 0.0 14 KB

Sample repo from Edge World breakout session

code-once-deploy-everywhere-demo's Introduction

code-once-deploy-everywhere-demo

Sample repo from Edge World 2019 breakout session

Creating Pipeline Folder Structure

akamai pipeline new-pipeline -p astronaut-training -e prp_XXXXX dev stage prod -g grp_XXXXX --variable-mode user-var-value

This command creates the pipeline (folder) name and structure. It takes the source property id and creates the specified environment folders, which then can be checked into a repository.

Adding/Modifying/Simplifying Environments

Simplify envInfo.json to just have the name (see example in each one inside the environments folder) Simplify projectInfo.json to just have the environment names list and pipeline name (see example)

To add a new environment, add the desired new folder in the environments folder and add the envInfo.json and the new variables.json values for that environment. Update projectInfo.json, and the variables.json accordingly.

Merge

akamai pipeline merge -n -p astronaut-training dev
akamai pipeline merge -n -p astronaut-training stage
akamai pipeline merge -n -p astronaut-training prod

This command does the find/search of all the variables defined in the variableDefinitions.json, environments folder variables.json file, and the rule /template .json files. Arrays and objects are also able to be substituted as well. The merge output will go in the /dist folder and will be the full raw artifact that can be used to update the desired configuration. The -n argument (no-validate) is important so that it only does the merge (find/replace) locally. Run this command from one directory above.

code-once-deploy-everywhere-demo's People

Contributors

aetsai avatar javiergarza 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.