All Projects โ†’ kauppfbi โ†’ ngx-deploy-docker

kauppfbi / ngx-deploy-docker

Licence: MIT license
Deploy your Angular Application to a Docker registry directly from the Angular CLI! ๐Ÿš€

Programming Languages

typescript
32286 projects
Dockerfile
14818 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ngx-deploy-docker

Automatic Release
Automates the release process for GitHub projects.
Stars: โœญ 46 (+228.57%)
Mutual labels:  deploy, publish
ng-electron-devkit
Angular Webpack Build Facade for Electron
Stars: โœญ 12 (-14.29%)
Mutual labels:  angular-cli
ng-math
Math Flashcard Progressive Web App built with Angular 2
Stars: โœญ 17 (+21.43%)
Mutual labels:  angular-cli
djeasy
Django Project Deploy Easier to in Debian Distribution!
Stars: โœญ 24 (+71.43%)
Mutual labels:  deploy
login-form-angular2
A simple login form using the angular2 material design and the angular-CLI.
Stars: โœญ 21 (+50%)
Mutual labels:  angular-cli
electron-angular-ngrx
An Angular (6x) Electron seed featuring @angular/cli, @ngrx/platform, and Typescript. Complete with HMR workflow
Stars: โœญ 39 (+178.57%)
Mutual labels:  angular-cli
book-store
Example of a book store management with MEAN STACK
Stars: โœญ 23 (+64.29%)
Mutual labels:  angular-cli
ThinkApp
Test your knowledge with any of the available topic this fun and free Champion Quiz Master App. Save your time and effort by saving your queries & its resolutions
Stars: โœญ 15 (+7.14%)
Mutual labels:  angular-cli
react-tools-for-better-angular-apps
Use React ecosystem for unified and top notch DX for angular developement
Stars: โœญ 30 (+114.29%)
Mutual labels:  angular-cli
ng-webworker
Repository featuring a web worker running within Angular.
Stars: โœญ 14 (+0%)
Mutual labels:  angular-cli
ngx-deploy-npm
Publish your libraries to NPM with just one command
Stars: โœญ 70 (+400%)
Mutual labels:  ng-deploy
i18n-demo
A simple i18n demo app with Angular and expressjs
Stars: โœญ 12 (-14.29%)
Mutual labels:  angular-cli
ng-universal-module
This is a Hapiness Engine for running Angular Apps on the server for server side rendering.
Stars: โœญ 18 (+28.57%)
Mutual labels:  angular-cli
exec
๐Ÿš semantic-release plugin to execute custom shell commands
Stars: โœญ 94 (+571.43%)
Mutual labels:  publish
loopback3 angular6 bootstrap4
API Rest build by Loopback. Frontend on Angular 6
Stars: โœญ 26 (+85.71%)
Mutual labels:  angular-cli
jcenter-config
Painlessly publish your library/project to jcenter() with these simple scripts.
Stars: โœญ 13 (-7.14%)
Mutual labels:  publish
devops-guidebook
๐Ÿ“š DevOps ็Ÿฅ่ฏ†ๅ›พ่ฐฑ ๅ…ณไบŽLinuxใ€ๆœๅŠกๅ™จใ€ๆ•ฐๆฎๅบ“ใ€้ƒจ็ฝฒ็ญ‰็›ธๅ…ณไฝ“็ณป
Stars: โœญ 25 (+78.57%)
Mutual labels:  deploy
now-docs
[WIP] Deploy docs with a single command using Now
Stars: โœญ 45 (+221.43%)
Mutual labels:  deploy
ipfs-action
GitHub Action for upload to IPFS. Supports Pinata, Infura pinning service as well as direct upload.
Stars: โœญ 115 (+721.43%)
Mutual labels:  deploy
ploi-deploy-action
Deploy your application to Ploi with Github actions
Stars: โœญ 25 (+78.57%)
Mutual labels:  deploy

ngx-deploy-docker ๐Ÿš€๐Ÿณ

This Project is still work in progress.

CI Pipeline NPM version The MIT License

Dockerize your Angular application with ease and deploy your image right from the Angular CLI to a registry ๐Ÿš€

Table of contents:

  1. ๐Ÿ“– Changelog
  2. ๐Ÿš€ Quick Start (local development)
  3. ๐Ÿš€ Continuous Delivery
  4. ๐Ÿ“ฆ Options
  5. ๐Ÿ“ Configuration File
  6. ๐Ÿ Next milestones

๐Ÿ“– Changelog

A detailed changelog is available here.

๐Ÿš€ Quick Start (local development)

This quick start assumes that you are starting from scratch. If you already have an existing Angular project, skip step 1.

  1. Install the latest version of the Angular CLI (v13.0.0 or greater) globally and create a new Angular project. Make sure you have a suitable version of nodeJs installed.

    npm install -g @angular/cli
    ng new your-angular-project --defaults
    cd your-angular-project
  2. Add ngx-deploy-docker to your project.

    ng add ngx-deploy-docker
  3. Make sure, Docker works properly on your client and you are authenticated at the repository of your choice.

    docker login
  4. Deploy your newly built image to the registry with all default settings. Your project will be automatically built in production mode.

    ng deploy

    Which is the same as:

    ng deploy your-angular-project

๐Ÿš€ Continuous Delivery

...more to come

๐Ÿ“ฆ Options

--base-href

  • optional
  • Default: undefined (string)
  • Example:
    • ng deploy โ€“ The tag <base href="https://github.com/"> remains unchanged in your index.html
    • ng deploy --base-href=/XXX/ โ€“ The tag <base href="https://github.com/XXX/"> is added to your index.html

Specifies the base URL for the application being built. Same as ng build --base-href=/XXX/

--build-target

  • optional
  • Example:
    • ng deploy โ€“ Angular project is build in production mode
    • ng deploy --build-target=<app>:build:test โ€“ Angular project is using the configuration test (this configuration must exist in the angular.json file)

A named build target, as specified in the configurations section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. Same as ng run <app>. This command has no effect if the option --no-build option is active.

--no-build

  • optional
  • Default: false (boolean)
  • Example:
    • ng deploy โ€“ Angular project is build in production mode before the deployment
    • ng deploy --no-build โ€“ Angular project is NOT build

Skip build process during deployment. This can be used when you are sure that you haven't changed anything and want to deploy with the latest artifact. This command causes the --build-target setting to have no effect.

--image-name

  • optional
  • Example:
    • ng deploy โ€“ Docker Image is build with the name of the project as image name
    • ng deploy --image-name=your-special-name โ€“ Docker Image is built with the name provided.

--account

  • optional
  • Alias: -a
  • Default: `` (string)
  • Example:
    • ng deploy โ€“ Docker Image name is not prefixed.
    • ng deploy --account=test โ€“ Docker image name is prefixed with the provided account, like account/image-name.

This option may be necessary, depending on your write-rights within the repository, you want to push to.

--tag

  • optional
  • Alias: -t
  • Default: latest (string)
  • Example:
    • ng deploy โ€“ Docker Image is build with the tag latest, e.g.account/image-name:latest
    • ng deploy --tag=v1.0.0 โ€“ Docker Image is build with the tag v1.0.0

๐Ÿ“ Configuration File

To avoid all these command-line cmd options, you can write down your configuration in the angular.json file in the options attribute of your deploy project's architect. Just change the kebab-case to lower camel case. This is the notation of all options in lower camel case:

  • baseHref
  • buildTarget
  • noBuild
  • imageName
  • account
  • tag

A list of all available options is also available here.

Example:

ng deploy --build-target=<app>:build:production --tag=next

becomes

"deploy": {
  "builder": "ngx-deploy-docker:deploy",
  "options": {
    "buildTarget": "<app>:build:production",
    "tag": "next"
  }
}

And just run ng deploy ๐Ÿ˜„.

๐Ÿ Next milestones

  • Setup of CI/CD Pipeline for the project
  • Code Restructuring:
    • Modularization of Schematics and Builders
    • Use what you need
  • Testing, Testing, Testing:
    • Manual tests on different clients with different OS
    • Unit and Integration Tests
  • Add more options to the deploy builder, what do you need?
  • Integration in NxWorkspace
  • ๐Ÿ’… Kubernetes deployment right from the CLI
  • preparing examples of how to use the package in CI environment with different Providers for private registries
  • your feature that's not on the list yet?

We look forward to any help. PRs are welcome! ๐Ÿ˜ƒ

License

Code released under the MIT license.


Attribution

๐Ÿš€ Powered By ngx-deploy-starter

๐Ÿ”ฅ Many things have been taken over from transloco

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].