Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add conditional logic for rhel7 #14

Merged
merged 1 commit into from
Jan 14, 2023
Merged

feat: add conditional logic for rhel7 #14

merged 1 commit into from
Jan 14, 2023

Conversation

dpastoor
Copy link
Owner

No description provided.

@dpastoor
Copy link
Owner Author

tested in a docker container

# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

[root@018158cff973 /]# sudo wget https://github.com/dpastoor/qvm/releases/download/v0.2.0-rc.1/qvm_Linux_x86_64.tar.gz -O /tmp/qvm.tar.gz
--2023-01-14 11:04:57--  https://github.com/dpastoor/qvm/releases/download/v0.2.0-rc.1/qvm_Linux_x86_64.tar.gz
Resolving github.com (github.com)... 140.82.113.3
Connecting to github.com (github.com)|140.82.113.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/494831961/962ad9b2-e597-4d6d-9d42-4f1167cdbb9c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230114%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230114T160457Z&X-Amz-Expires=300&X-Amz-Signature=b106b8cbcbaeb3d43b87341221fa2d18b87a5714fe0d6396e3b8d95b27b05813&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=494831961&response-content-disposition=attachment%3B%20filename%3Dqvm_Linux_x86_64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2023-01-14 11:04:57--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/494831961/962ad9b2-e597-4d6d-9d42-4f1167cdbb9c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230114%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230114T160457Z&X-Amz-Expires=300&X-Amz-Signature=b106b8cbcbaeb3d43b87341221fa2d18b87a5714fe0d6396e3b8d95b27b05813&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=494831961&response-content-disposition=attachment%3B%20filename%3Dqvm_Linux_x86_64.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5153643 (4.9M) [application/octet-stream]
Saving to: ‘/tmp/qvm.tar.gz’

100%[=================================================================================================================>] 5,153,643   21.3MB/s   in 0.2s   

2023-01-14 11:04:58 (21.3 MB/s) - ‘/tmp/qvm.tar.gz’ saved [5153643/5153643]

[root@018158cff973 /]# sudo tar xzf /tmp/qvm.tar.gz qvm
[root@018158cff973 /]# sudo mv qvm /usr/local/bin/qvm
[root@018158cff973 /]# sudo chmod +x /usr/local/bin/qvm
[root@018158cff973 /]# qvm
quarto version manager

Usage:
  qvm [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  debug       debug
  help        Help about any command
  init        initialize qvm
  install     install a given quarto version
  ls          list versions
  path        get the path to the active quarto executable
  rm          remove a version of quarto
  use         use a version of quarto

Flags:
  -h, --help              help for qvm
      --loglevel string   log level (default "info")
  -v, --version           version for qvm

Use "qvm [command] --help" for more information about a command.
[root@018158cff973 /]# qvm install v1.2.313
INFO[0000] attempting to install quarto version: v1.2.313 
INFO[0000] downloading quarto version v1.2.313 ... (7.9 MB/78 MB) 
INFO[0000] downloading quarto version v1.2.313 ... (17 MB/78 MB) 
INFO[0000] downloading quarto version v1.2.313 ... (25 MB/78 MB) 
INFO[0000] downloading quarto version v1.2.313 ... (34 MB/78 MB) 
INFO[0001] downloading quarto version v1.2.313 ... (42 MB/78 MB) 
INFO[0001] downloading quarto version v1.2.313 ... (51 MB/78 MB) 
INFO[0001] downloading quarto version v1.2.313 ... (60 MB/78 MB) 
INFO[0001] downloading quarto version v1.2.313 ... (69 MB/78 MB) 
INFO[0001] downloading quarto version v1.2.313 ... (78 MB/78 MB) 
INFO[0001] completed downloading quarto version v1.2.313 
INFO[0002] new quarto version v1.2.313 installed        
[root@018158cff973 /]# /opt/quarto/v1.2.313/bin/quarto --version
1.2.313
[root@018158cff973 test]# cd /tmp
[root@018158cff973 tmp]# /opt/quarto/v1.2.313/bin/quarto create
 ? Create › project
 ? Type › default
 ? Directory › testproj
Creating project at /tmp/testproj:
  - Created _quarto.yml
  - Created Testproj.qmd
[root@018158cff973 tmp]# cd testproj/
[root@018158cff973 testproj]# quarto render Testproj.qmd 
bash: quarto: command not found
[root@018158cff973 testproj]# /opt/quarto/v1.2.313/bin/quarto render Testproj.qmd 
pandoc 
  to: html
  output-file: Testproj.html
  standalone: true
  section-divs: true
  html-math-method: mathjax
  wrap: none
  default-image-extension: png
  
metadata
  document-css: false
  link-citations: true
  date-format: long
  lang: en
  title: Testproj
  
Output created: Testproj.html

@dpastoor dpastoor merged commit 5c34787 into main Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant