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

Gitlab: Create Static Sites #1994

Open
allenmanning opened this issue Aug 19, 2022 · 8 comments · May be fixed by quarto-dev/quarto-web#1287
Open

Gitlab: Create Static Sites #1994

allenmanning opened this issue Aug 19, 2022 · 8 comments · May be fixed by quarto-dev/quarto-web#1287
Assignees
Labels
documentation Doc improvements & quarto-web third-party Issues involving interaction with a third-party library
Milestone

Comments

@allenmanning
Copy link
Contributor

Gitlab has the ability to create static sites from a template (https://gitlab.com/pages). Quarto isn’t listed. These are the steps of setting that up: https://gitlab.com/pages/pages.gitlab.io/-/blob/master/CONTRIBUTING.md

@jjallaire jjallaire added this to the v1.2 milestone Aug 19, 2022
@matthewfranglen
Copy link

this .gitlab-ci.yml file allows me to publish a blog. It would be nice to have a good cache setting to skip installing quarto every time:

image: ubuntu:latest

variables:
  QUARTO_VERSION: "1.0.38"

pages:
  script:
  - apt-get update
  - apt-get -y install wget ca-certificates
  - wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb" -O quarto.deb
  - dpkg -i quarto.deb
  - quarto render . --output-dir public
  artifacts:
    paths:
    - public

@cderv
Copy link
Collaborator

cderv commented Aug 24, 2022

I see Gitlab is working on docker images. We could provide one maybe with Quarto pre-installed, and build the image at each release ?

Otherwise, I know that some projects already include Quarto (but also more) like the Rocker project (https://rocker-project.org/images/ with the verse image) useful for R users. There may be some around python already too.

But Quarto installation is quite fast, and on Github action we do not cache the installation. We could probably do it using cache setting for the tools, and checking the API version for release to know if we should update to not the installed version.
Gitlab may also have a cache system that could allow such logic.

Anyway, just wanted to share the docker image idea.

@rgaiacs
Copy link
Contributor

rgaiacs commented Sep 15, 2022

I created https://gitlab.com/quarto-forge/docker and I will be building some Docker images to be used primarily by GitLab Pages users. Contributions are welcome!

@dragonstyle dragonstyle modified the milestones: v1.2, v1.3 Sep 23, 2022
@cscheid cscheid added the documentation Doc improvements & quarto-web label Nov 15, 2022
@zachcp
Copy link
Contributor

zachcp commented Nov 30, 2022

@rgaiacs , I came across this issue due to a similar need. Thank you for setting up the docker image! Can I make a request to rebuild/push? I was exploring the use of shinylive-ext which requires a newer Quarto version:

ERROR: The extension Embedded Shinylive applications is incompatible with this quarto version.
Extension requires: >=1.2.198
Quarto version: 1.2.79

Do you think you can schedule a CI build & Push of the images in your repo?

@rgaiacs
Copy link
Contributor

rgaiacs commented Dec 1, 2022

@zachcp Thanks for the message. I'm looking to figure out why GitLab isn't updating the image in their registry. You will find a copy of the images in https://hub.docker.com/u/quarto2forge and they have been updated.

@zachcp
Copy link
Contributor

zachcp commented Dec 1, 2022

thanks @rgaiacs but Dockerhub does not seem to be updating:

docker pull quarto2forge/quarto
docker run -it --entrypoint /bin/bash quarto2forge/quarto
# quarto -v
# 1.2.79
# expect 1.3.XX

@rgaiacs
Copy link
Contributor

rgaiacs commented Dec 7, 2022

@zachcp I fixed the issue due some cache.

$ docker pull quarto2forge/quarto
Using default tag: latest
latest: Pulling from quarto2forge/quarto
Digest: sha256:705ba1cdcdf35c7f5930af92376c99d3c41d0a70c8d0edb159f7fe43d5c3bd03
Status: Downloaded newer image for quarto2forge/quarto:latest
docker.io/quarto2forge/quarto:latest
$ docker run quarto2forge/quarto quarto check

[✓] Checking Quarto installation......OK
      Version: 1.3.34
      Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

In January, I will have time to re-organise things and include a image with stable release of Quarto.

@allenmanning allenmanning removed their assignment Feb 8, 2023
@cscheid cscheid self-assigned this Feb 24, 2023
@dragonstyle dragonstyle assigned allenmanning and unassigned cscheid Feb 24, 2023
@allenmanning allenmanning removed their assignment Mar 2, 2023
@allenmanning allenmanning modified the milestones: v1.3, v1.4 Mar 9, 2023
@allenmanning allenmanning modified the milestones: v1.4, Future Mar 20, 2023
@allenmanning allenmanning added the third-party Issues involving interaction with a third-party library label Mar 23, 2023
@allenmanning
Copy link
Contributor Author

#973

@hansfn hansfn linked a pull request Aug 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Doc improvements & quarto-web third-party Issues involving interaction with a third-party library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants