Installing Octopus for the first time
Setting up Octopus to go with TeamCity. Mainly what Octopus does is that it takes over the deployment phase. TeamCity builds and creates a package of the application (according to the artifacts specified - will get to that in the next blog), and at this point, Octopus acquires the package created by TeamCity, and deploy it to target environments.
This will be installed on the same server that the TeamCity installed in.
Prerequisites:
Next, we will be setting up TeamCity Build Configuration and Octopus Tentacle.
Sources:
https://octopus.com/docs/getting-started
This will be installed on the same server that the TeamCity installed in.
Prerequisites:
- Octopus https://octopus.com/downloads
- SQL server
- Installing SQL server 2017
- I installed a separate server than the one used for TeamCity, just to make sure that the collation specified for each server won't have some side effects or cause problems later. So for this step, setup SQL server - as usual - but this time don't worry about the collation and do not change the default one
- Before we finish the SQL server setup the last step would be to create a new database name it 'OctopusDeploy' database must use a case-insensitive collation 'Sql_Latin1_General_CI_AS'
- Installing Octopus
- Run the exe file downloaded in the prerequisites number 1, click Next
- Accept the license agreement, click Next
- Specify the destination folder, where the service will be installed
- Click Next, Install and finish
- Run the exe file downloaded in the prerequisites number 1, click Next
-
- This will launch the Getting started wizard to configure the Octopus Server, click Get started
- To enter the License Key, you need to create an account. Go to https://octopus.com/signin create an account, enter First/Last name, Email, and Password
- Enter the company name and create the license, copy it to the clipboard
- Go back to Octopus Manager and paste the License Key, click Next
- Specify the 'Home' directory, according to Octopus this will be used to store configuration files, deployment packages, and other settings, I changed it to E:\Octopus, click Next
- For the Service Account, I used the Local SYSTEM Account (same as the settings used when configured TeamCity), click Next
- Select the SQL server and database that was created in step 1, click Next
- Since we are using the Local SYSTEM account, make sure to grant octopus database the access to the account
- Make sure to change Octopus Server Port (the default port is 80). Port 80 is used by other programs so it's better to be changed. Click Next
- Set the credentials for the user that will the Octopus Server admin
- Click Next and Install
- Octopus Manager, from here you can stop, restart and start the service, also the port can be changed by clicking on 'Change bindings'
- Open in browser and this will get you to the dashboard
- For now, the current user is Octopus-Admin, but it is also possible to create additional users by navigating to More - Configuration - from the left navigation select Users
- API Key: according to Octopus documentation this API key allows you to access the Octopus Deploy REST API and perform tasks such as creating and deploying releases.
From user Profile - My API Keys - New API Key, after creating this make sure not to lose it since this will used in TeamCity build steps
Next, we will be setting up TeamCity Build Configuration and Octopus Tentacle.
Sources:
https://octopus.com/docs/getting-started

Comments
Post a Comment