Commit 118afd17 authored by Wohlgemuth, Jason's avatar Wohlgemuth, Jason
Browse files

fix(ci): Update ci config

parent cfb394c7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ build-and-publish:
    default: true
    variables: true
  script:
    - pwsh -Command Install-Module -Name Prelude -Scope CurrentUser
    - git lfs install
    - npm run build
    - git clone https://user:${ACCESS_TOKEN}@code-int.ornl.gov/sites/fact-sheets.git site
+1 −1
Original line number Diff line number Diff line
brew "git-lfs"
brew "node"
brew "vale"
brew "weasyprint"
brew "zint"
 No newline at end of file
+25 −7
Original line number Diff line number Diff line
FROM ghcr.io/jhwohlgemuth/dev:latest
# syntax=docker/dockerfile:1
ARG BASE=bitnami/minideb
ARG TAG=bookworm
ARG IMAGE=$BASE:$TAG
FROM $IMAGE
#
# %labels
#
@@ -14,12 +18,26 @@ ENV HOME=/root
# %files
#
COPY ./Brewfile /tmp/
COPY --chmod=0755 ./install_dotnet.sh /tmp/
COPY --chmod=0755 ./install_homebrew.sh /tmp/
#
# %post
#
RUN eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" \
RUN apt-get update \
    && apt-get install --no-install-recommends --yes \
        build-essential \
        ca-certificates \
        curl \
        file \
        git \
        git-lfs \
        procps \
    && /tmp/install_dotnet.sh \
    && /tmp/install_homebrew.sh \
    && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" \
        && brew bundle --file /tmp/Brewfile \
        && brew cleanup --prune=all \
    && curl -LOJ https://github.com/errata-ai/vale/releases/download/v3.2.2/vale_3.2.2_Linux_64-bit.tar.gz \
    && tar -xvzf vale_3.2.2_Linux_64-bit.tar.gz -C /bin \
    && cleanup
 No newline at end of file
    && apt-get clean \
    && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* \
    && rm -rf /usr/share/man/?? \
    && rm -rf /usr/share/man/??_*
 No newline at end of file
+17 −0
Original line number Diff line number Diff line
#! /bin/bash
set -e
#
# Add Microsoft PPA
#
curl -O https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
rm -f packages-microsoft-prod.deb
#
# Install dotnet and PowerShell core
#
VERSION="${1:-"7.0"}"
apt-get update
apt-get install --no-install-recommends --yes \
    "dotnet-sdk-${VERSION}" \
    "dotnet-runtime-${VERSION}" \
    powershell
+10 −0
Original line number Diff line number Diff line
#! /bin/bash
set -e

# WORKAROUND
# Need to ensure /.dockerenv exists in order for install script to work
touch /.dockerenv
#
# Install Homebrew
#
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Loading