Skip to content

Commit

Permalink
Mac/Linux quickstart cleanup. (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcipriano authored Jan 16, 2023
1 parent 2673a08 commit f219032
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 45 deletions.
50 changes: 16 additions & 34 deletions content/docs/Quick starts/quick-start-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Quick start for Linux"
linkTitle: "Quick start for Linux"
weight: 1
date: 2019-09-020
date: 2023-01-13
description: >
Try OpenCue in the sandbox environment on Linux
---
Expand All @@ -24,11 +24,11 @@ This quick start takes approximately 20 minutes to complete.

You must have the following software installed on your machine:

* Python version 2.7 or greater
* Python version 3.7 or greater
* The Python [`pip` command](https://pypi.org/project/pip/)
* The Python [virtualenv tool](https://pypi.org/project/virtualenv/)
* If you're using Ubuntu or Debian, the `python-dev` package
* If you're using Fedora or Cent-OS, the `python-devel` package
* On some systems this command may be installed as `pip3`
* If you're using Ubuntu or Debian, the `python3-dev` package
* If you're using Fedora or Cent-OS, the `python3-devel` package
* [Docker](https://docs.docker.com/install/)
* [Docker Compose](https://docs.docker.com/compose/install/)

Expand Down Expand Up @@ -143,21 +143,22 @@ To install the OpenCue client packages:

1. Create a virtual environment for the Python packages:

virtualenv venv
python3 -m venv sandbox-venv

1. Activate the `venv` virtual environment:
1. Activate the `sandbox-venv` virtual environment:

source venv/bin/activate
source sandbox-venv/bin/activate

1. To install the lastest versions of the OpenCue client packages, you must
configure the installation script with the version number. You can look up
the version numbers for
1. To install the latest versions of the OpenCue client packages, you must
configure the installation script with the version number. The script
`sandbox/get-latest-release-tag.sh` will automatically fetch this for you,
but you can also look up the version numbers for
[OpenCue releases on GitHub](https://github.com/AcademySoftwareFoundation/OpenCue/releases).

export VERSION=0.15.22
export VERSION=$(sandbox/get-latest-release-tag.sh)

1. Install the Python dependencies and client packages in the `venv` virtual
environment:
1. Install the Python dependencies and client packages in the `sandbox-venv`
virtual environment:

sandbox/install-client-archives.sh

Expand All @@ -170,28 +171,9 @@ To install the OpenCue client packages:

## Testing the sandbox environment

To connect to the sandbox environment, you must first configure your local
client packages to:

* Locate the `outline.cfg` PyOutline configuration file included in the
OpenCue Git repository.
* Locate the Cuebot server running in a Docker container on your machine.

To test the sandbox environment, run the following commands from the second
Terminal window:

1. Set the location of the PyOutline configuration file:

{{% alert title="Note" color="info"%}}You must export all environment
variables each time you start the client packages.{{% /alert %}}

export OL_CONFIG=pyoutline/etc/outline.cfg

1. The Cuebot docker container is forwarding the gRPC ports to your
localhost, so you can connect to it as `localhost`:

export CUEBOT_HOSTS=localhost

1. To verify the successful installation of the sandbox environment, as well
as the connection between the client packages and sandbox, you can run the
`cueadmin` command-line tool. To list the hosts in the sandbox
Expand Down Expand Up @@ -282,7 +264,7 @@ from the second shell:

1. To delete the virtual environment for the Python client packages:

rm -rf venv
rm -rf sandbox-venv

## What's next?

Expand Down
24 changes: 13 additions & 11 deletions content/docs/Quick starts/quick-start-mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Quick start for macOS"
linkTitle: "Quick start for macOS"
weight: 2
date: 2019-09-04
date: 2023-01-13
description: >
Try OpenCue in the sandbox environment on macOS
---
Expand All @@ -26,6 +26,7 @@ You must have the following software installed on your machine:

* Python version 3.7 or greater
* The Python [`pip` command](https://pypi.org/project/pip/)
* On some systems this command may be installed as `pip3`
* [Docker](https://docs.docker.com/install/)
* [Docker Compose](https://docs.docker.com/compose/install/)
* The `wget` command
Expand Down Expand Up @@ -150,21 +151,22 @@ To install the OpenCue client packages:

1. Create a virtual environment for the Python packages:

python3 -m venv venv
python3 -m venv sandbox-venv

1. Activate the `venv` virtual environment:
1. Activate the `sandbox-venv` virtual environment:

source venv/bin/activate
source sandbox-venv/bin/activate

1. To install the lastest versions of the OpenCue client packages, you must
configure the installation script with the version number. You can look up
the version numbers for
1. To install the latest versions of the OpenCue client packages, you must
configure the installation script with the version number. The script
`sandbox/get-latest-release-tag.sh` will automatically fetch this for you,
but you can also look up the version numbers for
[OpenCue releases on GitHub](https://github.com/AcademySoftwareFoundation/OpenCue/releases).

export VERSION=0.15.22
export VERSION=$(sandbox/get-latest-release-tag.sh)

1. Install the Python dependencies and client packages in the `venv` virtual
environment:
1. Install the Python dependencies and client packages in the `sandbox-venv`
virtual environment:

sandbox/install-client-archives.sh

Expand Down Expand Up @@ -270,7 +272,7 @@ from the second shell:

1. To delete the virtual environment for the Python client packages:

rm -rf venv
rm -rf sandbox-venv

## What's next?

Expand Down

0 comments on commit f219032

Please sign in to comment.