File tree 1 file changed +55
-1
lines changed
1 file changed +55
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
### Deploy
4
4
5
+ #### Deploy To ASA-E
6
+
7
+ You will need access to the ` spring-team ` subscription in Azure. The app is running under the ` spring-team ` subscription and ` spring-team `
8
+ resource group.
9
+
10
+ To deploy or update the app do the following
11
+
12
+ ```
13
+ $ az account list --output table
14
+ Name CloudName SubscriptionId TenantId State IsDefault
15
+ ------------ ----------- ------------------------------------ ------------------------------------ ------- -----------
16
+ Spring Infra AzureCloud subscriptionid tenantId Enabled True
17
+ ```
18
+
19
+ Set the subscription id to the subscription id for Spring Infra.
20
+
21
+ ```
22
+ $ az account set --subscription subscrpitionid
23
+ ```
24
+
25
+ Set the following environment variables
26
+
27
+ ```
28
+ $ export ASAE_LOCATION=eastus
29
+ $ export ASAE_SUBSCRIPTION=subscrpition
30
+ $ export ASAE_SERVICE=spring-team
31
+ $ export ASAE_RESOURCE_GROUP=spring-team
32
+ ```
33
+
34
+ Only need to do this when creating this step if the app doesn't already exist
35
+
36
+ ```
37
+ $ az spring app create --resource-group $ASAE_RESOURCE_GROUP --service $ASAE_SERVICE --name spring-cloud-issue-bot --env ISSUEBOT_GITHUB_CREDENTIALS_USERNAME=spring-cloud-issues ISSUEBOT_GITHUB_CREDENTIALS_PASSWORD=[paswsord from lastpass]
38
+ ```
39
+ Build the issue bot app
40
+
41
+ ```
42
+ $ ./mvnw clean package
43
+ ```
44
+ Deploy the app
45
+
46
+ ```
47
+ $ az spring app deploy --resource-group $ASAE_RESOURCE_GROUP --service $ASAE_SERVICE --artifact-path target/issue-bot-0.1.0-SNAPSHOT.jar --name spring-cloud-issue-bot
48
+ ```
49
+ To tail the logs
50
+
51
+ ```
52
+ $ az spring app logs --name spring-cloud-issue-bot --resource-group $ASAE_RESOURCE_GROUP --service $ASAE_SERVICE --follow --lines 10000
53
+ ```
54
+
55
+
56
+ #### Deploy To Cloud Foundry (No Longer Used)
57
+
5
58
` cf login -a https://api.sc2-04-pcf1-system.oc.vmware.com `
6
59
7
60
Set ` ISSUEBOT_GITHUB_CREDENTIALS_PASSWORD ` in ` manifest.yaml ` for the user ` spring-cloud-issues ` . This should be a token stored in LastPass.
8
61
9
- Then run ` cf push ` from the root of the repo.
62
+ Then run ` cf push ` from the root of the repo.
63
+
You can’t perform that action at this time.
0 commit comments