-
Notifications
You must be signed in to change notification settings - Fork 983
feat: adding gcp quickstart #4348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3a12a0d
adding gcp tutorial
acb0782
refactor(seo): gcp to google cloud platform
ghuntley 1537f81
docs(quickstart): add next steps and title
ghuntley 3548a37
Merge branch 'main' into endingwithali/quickstart-gcp
ghuntley e6c1ce1
Merge branch 'main' of github.com:coder/coder into endingwithali/quic…
468c7b5
adding changes and gcp image
5c36b03
adding ammar changes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refactor(seo): gcp to google cloud platform
- Loading branch information
commit acb078231bb78ecd157a06dec81e1bfa57d52cd4
There are no files selected for viewing
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
## Requirements | ||
This quick start assumes you have administrator access to your GCP instance. | ||
|
||
This quick start assumes you have administrator access to your Google Cloud Platform instance. | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Setting Up your VM | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
If this is the first time you’re creating a VM on this project, you will need to enable the `Compute Engine API`. Click `enable` and wait for the service to finish connecting. | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
This will pull up the `Create an Instance` page - name the instance something relevant to this project, following your naming convention of choice. In addition, select a region and zone that is relevant / close to your physical location. For this instance, we will use the base suggested image. | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<img src="../images/quickstart/gcp/gcp1.png"> | ||
<img src="../images/quickstart/google-cloud-platform/gcp1.png"> | ||
|
||
Under `Identity and API Access`, and click `Allow full access to all Cloud APIs`. Scroll down to `Firewall` and click `Allow HTTPS traffic` and `Allow HTTP traffic`. | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<img src="../images/quickstart/gcp/gcp2.png"> | ||
<img src="../images/quickstart/google-cloud-platform/gcp2.png"> | ||
|
||
Scroll down to the bottom and click `Create` to create and deploy the VM. | ||
|
||
|
@@ -20,7 +22,7 @@ Congrats you’ve created your VM instance! | |
|
||
On the Compute Engine Dashboard, click on the VM for this project. Under `Details`, click `SSH` and select `Open in browser window`. | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<img src="../images/quickstart/gcp/gcp3.png"> | ||
<img src="../images/quickstart/google-cloud-platform/gcp3.png"> | ||
|
||
This will give you a terminal to maneuver, manipulate the VM, and install Coder. | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
@@ -42,7 +44,7 @@ First, edit the `coder.env` file to enable `CODER_TUNNEL` by setting the value t | |
sudo vim /etc/coder.d/coder.env | ||
``` | ||
|
||
<img src="../images/quickstart/gcp/gcp4.png"> | ||
<img src="../images/quickstart/google-cloud-platform/gcp4.png"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be a code block instead of a picture of code. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. other tutorials dont use code blocks for this |
||
|
||
Exit vim and run the following command to start Coder as a system service: | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
@@ -58,7 +60,7 @@ journalctl -u coder.service -b | |
|
||
This will return a series of logs from launching Coder, however, embedded in the launch is the URL for accessing Coder. | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<img src="../images/quickstart/gcp/gcp5.png"> | ||
<img src="../images/quickstart/google-cloud-platform/gcp5.png"> | ||
|
||
In this instance, Coder can be accessed at the URL `https://fcca2f3bfc9d2e3bf1b9feb50e723448.pit-1.try.coder.app`. | ||
|
||
|
@@ -76,7 +78,7 @@ You can now access Coder on your local machine by navigating to the `***.try.cod | |
|
||
First, run `coder template init` to create your first template. You’ll be given a list of possible templates to potentially use. This tutorial will show you how to create a Linux based template on GCP. | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<img src="../images/quickstart/gcp/gcp6.png"> | ||
<img src="../images/quickstart/google-cloud-platform/gcp6.png"> | ||
|
||
Select the `Develop in Linux on Google Cloud`, then `cd ./gcp-linux` into the folder created from initializing a template. | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
@@ -90,16 +92,16 @@ It will ask for your `project-id`, which you can find on the home page of your G | |
|
||
Given it’s your first time setting up Coder, it may an error that will look like the following: | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<img src="../images/quickstart/gcp/gcp7.png"> | ||
<img src="../images/quickstart/google-cloud-platform/gcp7.png"> | ||
|
||
In the error message will be a link. In this case, the URL is `https://console.developes.google.com/apis/api/iam.googles.com/overview:?project=1073148106645`. Copy the respective URL from your error message, and visit it via your browser. It may ask you to enable `Identity and Access Management (IAM) API`. | ||
bpmct marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Click `enable` and wait as the API initializes for your account. | ||
|
||
Once initialized, click create credentials in the upper right-hand corner. Select the `Compute Engine API` from the dropdown, and select `Application Data` under `What data will you be accessing?`. In addition, select `Yes, I’m using one or more` under `Are you planning on using this API with Compute Engine, Kubernetes Engine, App Engine, or Cloud Functions?`. | ||
|
||
<img src="../images/quickstart/gcp/gcp8.png"> | ||
<img src="../images/quickstart/google-cloud-platform/gcp8.png"> | ||
|
||
Back in your GCP terminal, run the `coder templates create` one more time. | ||
|
||
Congrats! You can now create new Linux-based workspaces that use GCP. | ||
Congrats! You can now create new Linux-based workspaces that use Google Cloud Platform. | ||
endingwithali marked this conversation as resolved.
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.