forked from microsoftgraph/nodejs-connect-rest-sample
-
Notifications
You must be signed in to change notification settings - Fork 2
/
helper.txt
40 lines (23 loc) · 1011 Bytes
/
helper.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
#URLS
http://localhost:3000/login
http://192.168.99.100:80/login
http://o365ondocker.cloudapp.net:80/login
#Office 365
Client: caaf4d2a-0300-4517-933e-9977e56765da
Secret: GxAKwNBQCs8JsSr4CwxYid0auwefTBLypHTx62LXojE=
#remove containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
#remove docker image
$docker rmi 123
#docker search
$docker search ubuntu
$ docker build -t o365addin-docker:0.1 .
$ docker run -d -p 80:3000 o365addin-docker:0.1
#generate certs:
$ openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout o365-docker.pem -out o365-docker.pem
$ openssl x509 -inform pem -in o365-docker.pem -outform der -out o365-docker.cer
$ openssl pkcs12 -export -out o365-docker.pfx -in o365-docker.pem -name "o365-docker Certificate"
#docker azure
$ docker-machine create -d azure --azure-subscription-id="xxxxx" --azure-subscription-cert="o365-docker.pem" --azure-location="East US" o365ondocker
$ eval "$(C:/Program\ Files/Docker\ Toolbox/docker-machine.exe env default)"