Skip to content

Commit 5621c72

Browse files
authored
Merge pull request #7543 from stolostron/refreshbuilds-linux
Add steps for setting up local build on Linux in Refresh builds
2 parents fa7fddc + 0bcfdcb commit 5621c72

File tree

1 file changed

+56
-1
lines changed

1 file changed

+56
-1
lines changed

_pages/refresh_builds.md

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Use this process to refresh a public version or build internally.
6565

6666
2. Verify that the commits on the Pantheon UI all match for stage and prod. That means that you pushed all of the latest files that resulted from your last build.
6767

68-
## Set up local build
68+
## Set up local build on MacOS
6969

7070
Make sure you are connected to the VPN and have [Homebrew](https://brew.sh/) installed before completing the following steps to build locally:
7171

@@ -122,6 +122,61 @@ Make sure you are connected to the VPN and have [Homebrew](https://brew.sh/) ins
122122

123123
Pantheon updates automatically and matches the commit number. If Pantheon does not update automatically, you can manually refresh individual books.
124124

125+
## Set up local build on Linux
126+
127+
Make sure you are connected to the VPN before completing the following steps to build locally:
128+
129+
1. Download the build script to a folder of your choice from the master branch at:
130+
131+
```
132+
https://gitlab.cee.redhat.com/red-hat-enterprise-openshift-documentation/advanced-cluster-management/-/blob/master/acm_sync_asciidoc.sh
133+
```
134+
135+
2. Change to your chosen directory. For example, the following command switches to the _Documents_ folder:
136+
137+
```
138+
cd Documents
139+
```
140+
141+
3. Open the script with the text editor of your choice.
142+
143+
4. Change every instance of `gsed` to `sed` and save the file.
144+
145+
5. Make the script executable by running the following command:
146+
147+
```
148+
chmod +x acm_sync_asciidoc.sh
149+
```
150+
151+
6. Add your SSH key to your GitLab account. You can find the link to GitLab on Rover Apps. If you have already set up your GitHub account, you have a SSH key. To find it, see [Checking for existing SSH keys](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys). If you need to create a new key, see [Generating a new SSH key](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent).
152+
153+
Then, complete the following steps to use your SSH key for your GitLab account:
154+
- Copy the key.
155+
- Open GitLab.
156+
- Open your profile.
157+
- Select **SSH Keys** in the left nav.
158+
- Paste the key and select **Add key**.
159+
160+
7. Run the file with the following command to build 2.9:
161+
162+
```
163+
./acm_sync_asciidoc.sh 2.9 2.9_stage
164+
```
165+
166+
**Note:** The first number is the GitLab branch number (corresponds to our release number). The second number is our GitHub branch. Both prod and stage go to the same GitLab branch.
167+
168+
8. When running the script for the first time after adding your SSH key to GitLab, you might receive an error resembling the following message:
169+
170+
```
171+
The authenticity of host can't be established.
172+
Are you sure you want to continue connecting (yes/no/[fingerprint])?
173+
```
174+
175+
- Enter `yes` and continue.
176+
- You might receive an access rights error message. Ignore the message and run the script again. If you have the correct access rights, the script runs successfully. If not, contact your manager to gain access rights.
177+
178+
Pantheon updates automatically and matches the commit number. If Pantheon does not update automatically, you can manually refresh individual books.
179+
125180
## Resolve error `zsh: permission denied`
126181

127182
Running step 7 from the [Set up local build](#set-up-local-build) topic results in the error `zsh: permission denied` if the correct permissions are not set up. To solve the issue, complete the following steps:

0 commit comments

Comments
 (0)