Merge pull request #113 from spotify/rugvip/nosecrets

README,backend: remove secrets setup and disable entity services for now
This commit is contained in:
Patrik Oldsberg
2020-02-24 14:53:22 +01:00
committed by GitHub
4 changed files with 33 additions and 69 deletions
-6
View File
@@ -1,6 +0,0 @@
###
# Setup secrets
###
init-secrets:
cp secrets.env.example secrets.env
-8
View File
@@ -16,14 +16,6 @@ For running the backend, depending on your OS, you need [Docker Desktop for Mac]
The above dependencies are enough to run and work on the Backstage frontend packages. To develop backend services, there are some more tools to install, see [backend/README.md](backend/README.md). To update protobuf definitions, you will need another set of tools, see [proto/README.md](proto/README.md).
### Secrets
To setup secrets, copy the `secrets.env.example` to `secrets.env` as such:
```bash
$ make init-secrets
```
## Running Locally
The full local system consists of a collection of backend services, as well as a web application. From the root of the project directory, run the following in a terminal to start up all backend services locally:
+33 -36
View File
@@ -21,41 +21,38 @@ services:
volumes:
- ./identity/identity-data.json:/app/identity-data.json
inventory:
container_name: boss-inventory
build:
context: .
args:
service: inventory
restart: unless-stopped
volumes:
- ./inventory/inventory.db:/app/inventory.db
# inventory:
# container_name: boss-inventory
# build:
# context: .
# args:
# service: inventory
# restart: unless-stopped
# volumes:
# - ./inventory/inventory.db:/app/inventory.db
builds:
container_name: boss-builds
build:
context: .
args:
service: builds
restart: unless-stopped
env_file: ../secrets.env
depends_on:
- inventory
links:
- inventory
# builds:
# container_name: boss-builds
# build:
# context: .
# args:
# service: builds
# restart: unless-stopped
# depends_on:
# - inventory
# links:
# - inventory
scaffolder:
depends_on:
- inventory
links:
- inventory
build:
context: .
args:
service: scaffolder
base_image: scaffolder
restart: unless-stopped
volumes:
- ./scaffolder/templates:/app/templates:ro
env_file: ../secrets.env
# scaffolder:
# depends_on:
# - inventory
# links:
# - inventory
# build:
# context: .
# args:
# service: scaffolder
# base_image: scaffolder
# restart: unless-stopped
# volumes:
# - ./scaffolder/templates:/app/templates:ro
-19
View File
@@ -1,19 +0,0 @@
###
# The environment you want to run the frontend (running using create-react-app) in.
# In production, these should be `production` and false respectively.
###
NODE_ENV=development
NODE_DEBUG=true
###
# This is the full HTTP endpoint to the GraphQL API you'll want to point to.
# For example (in development): http://localhost:8080/graphql
###
REACT_APP_GRAPHQL_API=
###
# A valid GitHub access token. You'll need to give it access to "repo".
# To create one, visit https://github.com/settings/tokens in your browser.
###
BOSS_GH_USERNAME=
BOSS_GH_ACCESS_TOKEN=