Installation Manual: QOps in GitHub Codespace
- Go to your repository (e.g.,
https://github.com/your-username/your-repo
). - Create a
.devcontainer
directory in the root of the repository and add adevcontainer.json
file inside it.
Example devcontainer.json
content:
{
"image": "qopsimages/qops:latest",
"containerEnv": {
"QOPS_LICENSE_KEY": "QOPS_LICENSE_KEY"
},
"extensions": [
"dvstseood.qlik-ext"
],
"postCreateCommand": "curl -sL https://raw.githubusercontent.com/qops-hub/codespace-scripts/main/post-create.sh | bash"
}
- Add your QOps license key as a Codespace secret:
- Go to the ⚙️ Settings tab in your repository.
- Expand Secrets and variables → Codespaces.
- Click New repository secret.
- Set the name as
QOPS_LICENSE_KEY
. - Paste your license key and click Add secret.
- Go back to the Code tab and click the green Code button.
- Open the Codespaces tab and click Create codespace on main.
- Wait for your Codespace to build.
- In the Terminal tab, open the dropdown next to the + button and select pwsh.
- (Optional) Run
QOps-Version
to check the module version.
You are now ready to use QOps in your GitHub Codespace.