From 76d78b539c2ebef91b6b903eb77f960474cba780 Mon Sep 17 00:00:00 2001 From: Marno van der Maas Date: Mon, 11 Nov 2024 10:12:10 +0000 Subject: [PATCH] Dev container removed This is not maintained anymore --- .devcontainer/Dockerfile | 44 --------------------------------- .devcontainer/devcontainer.json | 26 ------------------- .devcontainer/lowrisc.art | 12 --------- .devcontainer/terminals.json | 14 ----------- 4 files changed, 96 deletions(-) delete mode 100644 .devcontainer/Dockerfile delete mode 100644 .devcontainer/devcontainer.json delete mode 100644 .devcontainer/lowrisc.art delete mode 100644 .devcontainer/terminals.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 8211bc1..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright lowRISC Contributors. -# SPDX-License-Identifier: Apache-2.0 - -FROM ubuntu:22.04 -ARG USERNAME=sonata -# Install nix, git and cmake (required to build sonata-system software, -# temporary addition to this dockerfile until we have software build setup in -# sonata-software). -RUN apt update -y -RUN apt install curl git sudo -y - -# Setup user -RUN adduser --disabled-password --gecos "" --uid 1001 $USERNAME \ - && usermod -aG sudo $USERNAME \ - && sed -i 's/\(%sudo.*\) ALL/\1 NOPASSWD:ALL/' /etc/sudoers - -# Switch to user -USER $USERNAME - -# Install nix -RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux \ - --extra-conf "sandbox = false" \ - --init none \ - --no-confirm - -RUN sudo chown -R $USERNAME /nix - -ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin" - -# Setup lowRISC nix cache and devshell bash prompt -RUN sudo bash -c 'echo "substituters = https://cache.nixos.org https://nix-cache.lowrisc.org/public/" >> /etc/nix/nix.conf' \ - && sudo bash -c 'echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-cache.lowrisc.org-public-1:O6JLD0yXzaJDPiQW1meVu32JIDViuaPtGDfjlOopU7o=" >> /etc/nix/nix.conf' \ - && sudo bash -c "echo trusted-users = $USERNAME >> /etc/nix/nix.conf" \ - && sudo bash -c "echo 'bash-prompt = \[\e[1m\]Sonata \[\e[0m\]\w>\040' >> /etc/nix/nix.conf" \ - && sudo bash -c "echo 'bash-prompt-prefix =' >> /etc/nix/nix.conf" \ - && mkdir -p /home/$USERNAME/.local/share/nix \ - && echo '{"extra-substituters":{"https://nix-cache.lowrisc.org/public/":true},"extra-trusted-public-keys":{"nix-cache.lowrisc.org-public-1:O6JLD0yXzaJDPiQW1meVu32JIDViuaPtGDfjlOopU7o=":true}}' > /home/$USERNAME/.local/share/nix/trusted-settings.json - -# Download/build/install everything required for the nix devshell by starting it -# to run 'true' and immediately exit -RUN nix develop "github:lowRISC/sonata-software#env-with-sim" -c "true" - -ENV SHELL /bin/bash -CMD nix develop "github:lowRISC/sonata-software#env-with-sim" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 81547d9..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "image": "ghcr.io/gregac/sonata-software-container:latest", - "remoteUser": "sonata", - "containerUser": "sonata", - "onCreateCommand": "git submodule init && git submodule update --init --recursive", - "customizations": { - "vscode": { - "extensions": [ - "fabiospampinato.vscode-terminals" - ], - "settings": { - "terminal.integrated.profiles.linux": { - "nix-devshell": { - "path": "nix", - "args": [ - "develop", - "github:lowRISC/sonata-software#env-with-sim" - ] - } - }, - "terminal.integrated.defaultProfile.linux": "nix-devshell", - "terminals.configPath": "/workspaces/sonata-software/.devcontainer/terminals.json", - } - } - } -} diff --git a/.devcontainer/lowrisc.art b/.devcontainer/lowrisc.art deleted file mode 100644 index 5f1b9b1..0000000 --- a/.devcontainer/lowrisc.art +++ /dev/null @@ -1,12 +0,0 @@ - ╓╗Φ╬╬╫╫╬╬Æ╗w - ╔╬╫╫╫╫╫╫╫╫M "╣╬╗ - ╔╣╫╫╫╫╣╝╝╣╫╫╕ ╬╫╫╫╗ - ╬╫Å╝╝╝╛ ╟╫╫╬ ß╣╫╫╫╫╫▌ .╓, - ╔╜╓╬╬╬╬N ,╣╫╫╫⌐╢╫╫╫╫╫╫╣^ ║█▌ ║█████▓⌐ ╫█▌ ╓▓████▌ ▄▓████▌ - ╔╬╫╫Å╜╙╝╫╫╫╫╫╫╫Å,╬╫╫╫╫▌"╔╣ ║█▌ ╓▄▓▓# Φ▓⌐ ▓▓ ▓▓ ╫█▌ ▓█▌ ▓█▌ ▀█▌▄╓, ▓█▌ - ╣╫╫M ╟╫╫╫╫M,Φ╫╫╫╫Å`╔╣╫╫ ║█▌ █▌ '█M╙█▌╓██▌║█▌ ╫█████▀ ▓█▌ `╙▀██▓ ██▌ - ╙╫╣╜╓,,╔╣╫╣╜╓╬╫╫╫╫M,╗▓╫╫╫M ║█▌ ▀█▄▄▓█ ╢██▌╙██▌ ╫█▌ ╙██▄ ▓█▌ ╣▓▄▄▓█▀ ╙██▓▄▓▓▌ - "╔╣╫╫╫╫▌╨╔╬╫Å╝╣╜╓╬╫╫╫╫╫Å `` `` `` `` ``` ` ``` ``` """` - ╙╣╫╫Å"╔╣╫╬ ╙╫╫╫╫╫╫╜ - "`╗╣╫╫╫╬, ╔╫╫╫╣╜ - `╙╝╝Φ╣╣ΦÅ╝╜" diff --git a/.devcontainer/terminals.json b/.devcontainer/terminals.json deleted file mode 100644 index c0d1e9f..0000000 --- a/.devcontainer/terminals.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "autorun": true, - "terminals": [ - { - "name": "Sonata DevShell", - "description": "This is a description.", - "focus": true, - "commands": [ - "cat /workspaces/sonata-software/.devcontainer/lowrisc.art", - "echo 'github:lowRISC/sonata-software development shell is ready.'", - ] - } - ] -}