We are trying a setup that uses Ansible but not Docker. We are importing some RScripts that used to run in Docker. The Dockerfile that ran the RScripts began with:
FROM rocker/tidyverse:latest
This set up some paths and URLs for us, such as the one for the CRAN repos:
FROM ubuntu:focal
LABEL org.opencontainers.image.licenses="GPL-2.0-or-later" \
org.opencontainers.image.source="https://github.com/rocker-org/rocker-versioned2" \
org.opencontainers.image.vendor="Rocker Project" \
org.opencontainers.image.authors="Carl Boettiger <cboettig@ropensci.org>"
ENV R_VERSION=4.2.1
ENV R_HOME=/usr/local/lib/R
ENV TZ=Etc/UTC
COPY scripts/install_R_source.sh /rocker_scripts/install_R_source.sh
RUN /rocker_scripts/install_R_source.sh
ENV CRAN=https://packagemanager.rstudio.com/cran/__linux__/focal/latest
ENV LANG=en_US.UTF-8
COPY scripts /rocker_scripts
RUN /rocker_scripts/setup_R.sh
CMD ["R"]
I'm curious if anyone knows of an Ansible playbook that would configure an EC2 instance like this?