Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bartholomej/angular-firebase-docker
- Owner: bartholomej
- License: mit
- Created: 2018-03-04T16:20:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T21:31:50.000Z (over 4 years ago)
- Last Synced: 2024-10-11T12:46:20.635Z (about 1 month ago)
- Topics: angular, docker, docker-image, firebase, pipelines, yarn
- Language: Dockerfile
- Size: 85.9 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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-firebasepipelines:
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
```