-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
45 lines (30 loc) · 1.41 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
- Install Java 8 SDK or JRE
- Install gcloud
- Install the emulator: gcloud components install cloud-datastore-emulator
- Init the emulator gcloud beta emulators datastore env-init
- Inject these env variables into the container
- Access datastore from the container by accessing docker.for.mac.localhost instead of localhost
Then run the docker environment. Or, if you wish to keep going in this one then,
- Install brew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Update path at bottom of bash_profile export PATH=/usr/local/bin:$PATH
- brew install python3
- python3.6 -m venv p3-venv
- source p3-venv/bin/activate
- pip install -r api/requirements.txt
- start datastore: gcloud beta emulators datastore start
- export datastore env vars
- gunicorn -b 0.0.0.0:8000 --pythonpath api --reload api.app
To publish to gcloud
- gcloud container builds submit --tag gcr.io/joelgerard-178218/malleus .
Docker-compose
newgrp docker
~/.local/bin/docker-compose
brew install protobuf
protoc -I=. --python_out=. malleus/api/domain/protos/timing.proto
python -m pip install grpcio
python -m pip install grpcio-tools
https://grpc.io/docs/quickstart/python.html
python -m grpc_tools.protoc -I=. --python_out=. --grpc_python_out=. malleus/api/service/protos/bench_service.proto
run mongo
docker run -p 27017:27017 mongo:3.6.0-jessie
find malleus -name __pycache__ | xargs rm -rf