Skip to content

Commit 51d479e

Browse files
author
Jacob Hrbek
committed
Initial commit
0 parents  commit 51d479e

7 files changed

+29
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore output log
2+
firebase-debug.log

.gitpod.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Specify default docker image
2+
image:
3+
file: gitpod/gitpod.Dockerfile
4+
5+
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
6+
tasks:
7+
- init: |
8+
printf '\033[31m\033[1mWARNING:\033[0m %s\n' "This is affected by a bug https://github.com/gitpod-io/gitpod/issues/1528, please ignore the blank preview and open the generated website in a browser"
9+
printf '\n%s\n' "Press any key to continue.."
10+
read -r something
11+
# HOTFIX: '-no-localhost' is a hotfix for bug https://github.com/gitpod-io/gitpod/issues/1528
12+
firebase login --no-localhost
13+
printf '\033[0;34m\033[1mINFO:\033[0m %s\n' "You can now export variable FIREBASE_TOKEN to avoid parsing 'firebase subcommand --token YOUR_TOKEN' for each usage of firebase"
14+
printf '\033[0;34m\033[1mINFO:\033[0m %s\n' "The export of FIREBASE_TOKEN variable can be done account-wide and specified per repository on https://gitpod.io/settings/"

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
![](img/firebase-on-gitpod-header.png)
2+
3+
# Firebase on Gitpod
4+
5+
Example repository and proof of concept for firebase-related development on Gitpod
6+
7+
## Relevant sources
8+
- Firebase tutorial for gitpod by somegeeky https://somegeeky.website/2020/05/12/firebase-cloud-functions-environment-in-gitpod/

gitpod/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Directory dedicated for gitpod-related content

gitpod/gitpod.Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM gitpod/workspace-full:latest
2+
3+
# Cache firebase
4+
RUN npm install --global npm firebase firebase-tools

img/firebase-on-gitpod-header.png

34.2 KB
Loading

img/firebase-on-gitpod-header.xcf

110 KB
Binary file not shown.

0 commit comments

Comments
 (0)