Skip to content

Commit

Permalink
Merge pull request #72 from mrysav/mrysav/blisCliDocs
Browse files Browse the repository at this point in the history
Initial commit for blis-cloud-cli docs
  • Loading branch information
mrysav authored Oct 31, 2023
2 parents c6a034e + 8ccf7c2 commit 78cb2ef
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
C4G Basic Laboratory Information System is a collaboration between Computing-for-Good (C4G) at Georgia Tech, the Center for Disease Control (CDC), and participating PEPFAR countries.

* [BLIS Home Page](http://blis.cc.gatech.edu)
* [BLIS User Guide](user_guide/00_introduction/)
* [BLIS Developer Guide](developer_documentation/)
* [BLIS User Guide](user_guide/00_introduction.md)
* [BLIS Developer Guide](developer_documentation/index.md)
* [BLIS GitHub Repo](https://github.com/C4G/BLIS)

You may download a copy of this documentation at this link: [C4G BLIS Documentation](pdf/document.pdf)
4 changes: 2 additions & 2 deletions docs/user_guide/10_getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ Secondly, **BLIS on the Cloud** is a newly deployed version of BLIS that is capa

!!! info "Installation Instructions for **BLIS on the Cloud**"

For instructions on installing **BLIS on the Cloud**, please see the [article on Running BLIS on a Cloud Provider.](../11_blis_cloud/)
For instructions on installing **BLIS on the Cloud**, please see the [article on Running BLIS on a Cloud Provider.](11_blis_cloud.md)


Thirdly, **BLIS in a Devcontainer** is an instantiation of BLIS that allows for developers to specify the development environment, and is intended to be used by developers only.

!!! info "Installation Instructions for **BLIS in a Devcontainer**"

For instructions on installing **BLIS in a Devcontainer**, please see the [Developer Documentation](../../developer_documentation/).
For instructions on installing **BLIS in a Devcontainer**, please see the [Developer Documentation](../developer_documentation/index.md).

### BLIS For Windows

Expand Down
2 changes: 1 addition & 1 deletion docs/user_guide/40_technician_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ Clicking **Generate Barcodes** allows the Technician to generate a unique barcod
The Backup Page is similarly designed to the Backup Data feature available for Lab Managers.

!!! tip "See Also"
The Backup Data functionality can be found in the [Lab Manager section on Backup Data.](../30_manager_overview/#backup-data)
The Backup Data functionality can be found in the [Lab Manager section on Backup Data.](30_manager_overview.md#backup-data)
98 changes: 98 additions & 0 deletions docs/user_guide/99_experimental_blis_cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Experimental: BLIS Cloud Command-Line Interface

The BLIS Cloud CLI is an experimental way to install and manage BLIS on cloud-based virtual machines.

!!! warning "This tool is in preview!"

Unless you are comfortable debugging issues, you should instead use the [article on Running BLIS on a Cloud Provider.](11_blis_cloud.md)

## Installation

The tool is intended to be used on **Ubuntu** installations only. In order to install the tool, you must first install the prerequisites:

```bash
sudo apt-get update
sudo apt-get install -y python3-pip
echo "export PATH=\"\$HOME/.local/bin:\$PATH\"" | tee -a ~/.bashrc
source ~/.bashrc
```

Then you can install the tool with:

```bash
pip3 install -U git+https://github.com/mrysav/blis-cloud-cli.git
```

## Usage

### Installing Docker

You can check the status of Docker with:

```bash
blis docker status
```

The tool will check to see if Docker is installed and configured correctly.
If Docker is not installed, then you should run:

```bash
blis docker install
```

### Checking the status of BLIS

```bash
blis status
```

This command will check the status of BLIS: whether or not it is running, and if the system is supported.

### BLIS Installation

```bash
blis install
```

This command will install the BLIS configuration file to `~/.blis/` and provision the database as a Docker container.

### Starting BLIS

```bash
blis start
```

This command will start BLIS.


### BLIS Update

```bash
blis update
```

This command will update the container used by BLIS. If BLIS is running, it will stop and start BLIS as needed.

### Stopping BLIS

```bash
blis stop
```

This command will stop BLIS.

### Accessing log files

```bash
blis logs application
blis logs database
```

These two log files are generated by the BLIS application. The `application` log is most useful for debugging issues.

```bash
blis logs apache2/error
blis logs apache2/access
```

These two log files are generated by the Apache2 webserver. The `apache2/error` log contains PHP errors useful for debugging issues.
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ markdown_extensions:
- pymdownx.details
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg


plugins:
Expand Down

0 comments on commit 78cb2ef

Please sign in to comment.