1
0
mirror of https://gitlab.com/Anson-Projects/projects.git synced 2025-06-15 22:46:48 +00:00

switching to CI building the site

This commit is contained in:
Anson 2021-08-23 23:53:37 -07:00
parent bd361632cf
commit cbe0cd7909
5 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,32 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.191.1/containers/docker-existing-dockerfile
{
"name": "Existing Dockerfile",
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerFile": "../Dockerfile",
// Set *default* container specific settings.json values on container create.
"settings": {},
// Add the IDs of extensions you want installed when the container is created.
"extensions": []
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Uncomment the next line to run commands after the container is created - for example installing curl.
// "postCreateCommand": "apt-get update && apt-get install -y curl",
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker.
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
}

View File

@ -1,5 +1,10 @@
pages:
stage: deploy
image: r-base:latest
before_script:
- run apt-get update
- apt-get install libssl-dev pandoc build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev -y
- run Rscript builtit.R
script:
- mkdir .public
- cp -r ./docs/* .public

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM r-base:latest
RUN apt-get update
RUN apt-get install libssl-dev pandoc build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev -y
RUN Rscript builtit.R

2
builtit.R Normal file
View File

@ -0,0 +1,2 @@
install.packages('distill')
rmarkdown::render_site(encoding = 'UTF-8')

6
docs/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM r-base:latest
RUN apt-get update
RUN apt-get install libssl-dev pandoc -y
RUN apt install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev -y
# RUN R -e 'rmarkdown::render_site(encoding = \'UTF-8\')'