GitHunt
BA

bartholomej/angular-firebase-docker

Lightweight Docker image based on NodeJS 9 with Angular CLI, Firebase Tools and Yarn

Greenkeeper badge

Angular CLI + Firebase: Docker image

Lightweight Docker image based on NodeJS 11 with:

  • NodeJS 11.x
  • Angular CLI 8.0.2+
  • Firebase Tools 6.11.0+
  • Yarn 1.15.2+

Examples

Bitbucket Pipelines CI

Deploy your Angular 2 project with Bitbucket Pipelines to Firebase Hosting

Firebase

  • Create Firebase project

Firebase token

  • Install firebase-tools locally npm install -g firebase-tools
  • Get the $FIREBASE_TOKEN on firebasetool by running:

firebase login:ci

Environment variables

  • Save it to Bitbucket's environment variables (Project -> Settings > Environment variables) with variable name FIREBASE_TOKEN

Pipelines configuration

  • Create bitbucket-pipelines.yml
image: bartholomej/angular-firebase

pipelines:
  branches:
    master:
    - step:
        caches:
          - node
        script:
          - yarn
          - yarn build
          - firebase deploy --token "$FIREBASE_TOKEN"

Conclusion

And now every commit pushed to master branch will deploy your changes to Firebase

Docker hub

Can be pulled from Docker Hub

docker pull bartholomej/angular-firebase

Development

docker build -t angular-firebase:v6.x.x .
docker tag angular-firebase:v6.x.x bartholomej/angular-firebase:v6.x.x
docker push bartholomej/angular-firebase:v6.x.x