arnaucube
arnaucube/configsPublic Self-hosted repository
configs/bin/box_profiles.sh
bin/box_profiles.shRaw
 1#!/bin/bash
 2#
 3# See `box` file for more details.
 4
 5profile_minimal() {
 6    apt-get install -y neovim git curl wget
 7}
 8
 9profile_nodejs() {
10    apt-get install -y curl
11    curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
12    apt-get install -y nodejs
13}
14
15profile_docker() {
16    apt-get install -y ca-certificates curl gnupg
17    install -m 0755 -d /etc/apt/keyrings
18    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
19    chmod a+r /etc/apt/keyrings/docker.gpg
20
21    echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
22        https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" \
23        > /etc/apt/sources.list.d/docker.list
24
25    apt-get update
26    apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
27}
28
29profile_default() {
30    profile_minimal
31    profile_nodejs
32    profile_docker
33}