Asciisync performs a local asciibinder build and syncs the distribution of your choosing to a file server.
- You are using a Linux distribution
- You are on the VPN
- You have
file.<geo>access - You have a
public_htmldirectory in yourfile.<geo>server with755permissions:-
$ ssh <kerberos>@file.<geo>.redhat.com $ mkdir public_html $ chmod 755 public_html
-
- Optional: You have
kinitconfigured NOTE: You will need to enter your kerberos password to authenticate if you do not havekinitconfigured and have obtaind a current kerberos ticket.
-
Download the setup script here.
-
Make the file executable: NOTE: Your file may download in a different location.
$ chmod 755 ~/Downloads/asciisync-setup.sh -
Run the script:
$ ./Downloads/asciisync-setup.sh
-
Provide your kerberos ID and
file.<geo>when prompted, then pressEnter:Enter your Kerberos ID: : Enter your geo (rdu,emea,etc): : -
Use asciisync.
- You are using a Linux distribution
- You are on the VPN
- You have
file.<geo>access - You have a
public_htmldirectory in yourfile.<geo>server with755permissions:-
$ ssh <kerberos>@file.<geo>.redhat.com $ mkdir public_html $ chmod 755 public_html
-
- Optional: You have
kinitconfigured NOTE: You will need to enter your kerberos password to authenticate if you do not havekinitconfigured and have obtaind a current kerberos ticket.
-
Create a file within your
~/bincalled "asciisync": NOTE: I usevimas an editor. You may havenano, etc.$ vim ~/bin/asciisync -
Paste the following text, then save and quit: IMPORTANT: Change the
GEO=, andKERB=to your geographical region and kerberos ID.#!/bin/bash BRANCH=$(git branch --show-current) KERB=<kerberos> GEO=<geo> DISTRO_LIST=$(ls -1 _preview) podman run --rm -it -v `pwd`:/docs:Z quay.io/openshift-cs/asciibinder asciibinder clean podman run --rm -it -v `pwd`:/docs:Z quay.io/openshift-cs/asciibinder asciibinder build -l fatal echo " Which distribution would you like to preview? $DISTRO_LIST" read -p ": " DISTRO echo "Performing the rsync." rsync -az --rsync-path="mkdir -p ~/public_html/$BRANCH/* && rsync" --info=progress2 --human-readable _preview/$DISTRO/$BRANCH/* $KERB@file.$GEO.redhat.com:~/public_html/$BRANCH echo " Complete! URL: http://file.$GEO.redhat.com/$KERB/$BRANCH/welcome" -
Make the file executable:
$ chmod 755 ~/bin/asciisync -
Use asciisync.
- You are using MacOS
- Install homebrew.
- Brew install podman
- Brew install shellcheck-py
- Brew install shellcheck
- shellcheck
- shell
- Download asciisync-mac
- chmod +x asciisync-mac
- ./asciisync-mac
- script needs mv /usr/local/bin/asciisync
- podman machine init
- podman machine start
- cd openshift docs
- asciisync
- You are using MacOS
- Install homebrew.
- Brew install podman
- Brew install shellcheck-py
- Brew install shellcheck
- shellcheck
- shell
- vim /usr/local/bin/asciisync and paste file contents
- chmod 755 asciisync
- podman machine init
- podman machine start
- cd openshift docs
- asciisync
- You are on the VPN
- You have
file.<geo>access - You have a
public_htmldirectory in yourfile.<geo>server with755permissions:-
$ ssh <kerberos>@file.<geo>.redhat.com $ mkdir public_html $ chmod 755 public_html
-
- Optional: You have
kinitconfigured NOTE: You will need to enter your kerberos password to authenticate if you do not havekinitconfigured and have obtaind a current kerberos ticket.
Asciisync is configured to build all possible distributions and will upload the distribution of your choosing.
-
Change directory to the git branch that you want to preview: NOTE: Your
openshift-docsrepository may installed in another location.$ cd ~/openshift-docs/
-
Run asciisync:
$ asciisync
-
Choose the disribution you wish to preview. Type your response and press
Enter.Which distribution would you like to preview? microshift openshift-dedicated openshift-enterprise openshift-rosa openshift-rosa-portal : -
The script completes, providing a URL.
Ctrl + left clickon the URL to open in your browser.Complete! URL: http://file.<geo>.redhat.com/<kerb>/<branch>/welcome"