From 54bb1d4e25732c91f33083b625c2b2512a03c472 Mon Sep 17 00:00:00 2001 From: Josh Spicer Date: Fri, 27 May 2022 13:20:32 -0400 Subject: update jupyter and ruby features (#26) * jekyll and jupyter updates * add ruby to jekylls pr test * update jekyll and ruby test * remove features that dont follow my rules --- src/jekyll/feature.json | 16 ------------- src/jekyll/install.sh | 60 ------------------------------------------------- 2 files changed, 76 deletions(-) delete mode 100644 src/jekyll/feature.json delete mode 100644 src/jekyll/install.sh (limited to 'src/jekyll') diff --git a/src/jekyll/feature.json b/src/jekyll/feature.json deleted file mode 100644 index 852aa30..0000000 --- a/src/jekyll/feature.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "jekyll", - "name": "Jekyll", - "options": { - "version": { - "type": "string", - "proposals": ["latest"], - "default": "latest", - "description": "Select or enter a version." - } - }, - "install": { - "app": "", - "file": "install.sh" - } -} diff --git a/src/jekyll/install.sh b/src/jekyll/install.sh deleted file mode 100644 index 53efa82..0000000 --- a/src/jekyll/install.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env bash -#------------------------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. -#------------------------------------------------------------------------------------------------------------- -# -# Docs: https://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/hugo.md -# Maintainer: The VS Code and Codespaces Teams -# -# Syntax: ./jekyll-debian.sh [Jekyll version] [Non-root user] [Add rc files flag] - -VERSION=${1:-"latest"} -USERNAME=${2:-"automatic"} - -set -e - -# If in automatic mode, determine if a user already exists, if not use codespace -if [ "${USERNAME}" = "auto" ] || [ "${USERNAME}" = "automatic" ]; then - USERNAME="" - POSSIBLE_USERS=("vscode" "node" "codespace" "$(awk -v val=1000 -F ":" '$3==val{print $1}' /etc/passwd)") - for CURRENT_USER in ${POSSIBLE_USERS[@]}; do - if id -u ${CURRENT_USER} > /dev/null 2>&1; then - USERNAME=${CURRENT_USER} - break - fi - done - if [ "${USERNAME}" = "" ]; then - USERNAME=codespace - fi -elif [ "${USERNAME}" = "none" ]; then - USERNAME=root - USER_UID=0 - USER_GID=0 -fi - -# Use sudo to run as non-root user is not already running -sudoUserIf() -{ - if [ "$(id -u)" -eq 0 ] && [ "${USERNAME}" != "root" ]; then - sudo -u ${USERNAME} "$@" - else - "$@" - fi -} - -# If we don't yet have Ruby installed, exit. -if ! /usr/local/rvm/rubies/default/bin/ruby --version > /dev/null ; then - echo "You need to install Ruby before installing Jekyll." - exit 1 -fi - -# If we don't already have Jekyll installed, install it now. -if ! jekyll --version > /dev/null ; then - echo "Installing Jekyll..." - if [ "${VERSION}" = "latest" ]; then - PATH="/usr/local/rvm/rubies/default/bin:${PATH}" /usr/local/rvm/rubies/default/bin/gem install jekyll - else - PATH="/usr/local/rvm/rubies/default/bin:${PATH}" /usr/local/rvm/rubies/default/bin/gem install jekyll -v "${VERSION}" - fi -fi -- cgit v1.2.3