Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bartholomej/angular-firebase-docker

Lightweight Docker image based on NodeJS 9 with Angular CLI, Firebase Tools and Yarn
https://github.com/bartholomej/angular-firebase-docker

angular docker docker-image firebase pipelines yarn

Last synced: 13 days ago
JSON representation

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

Awesome Lists containing this project

README

        

[![Greenkeeper badge](https://badges.greenkeeper.io/bartholomej/angular-firebase-docker.svg)](https://greenkeeper.io/)

# 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`

```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
docker pull bartholomej/angular-firebase
```

## Development
```docker
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
```