Skip to content

Commit

Permalink
feat: create universal template (#3389)
Browse files Browse the repository at this point in the history
  • Loading branch information
CompuIves authored Oct 30, 2024
1 parent 4d1d3e5 commit ed72345
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
Binary file added universal/.codesandbox/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions universal/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {}
}
7 changes: 7 additions & 0 deletions universal/.codesandbox/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"title": "Universal",
"description": "A starter that contains almost all programming languages",
"iconUrl": "https://raw.githubusercontent.com/codesandbox/sandbox-templates/main/universal/.codesandbox/icon.png",
"tags": ["containers", "universal"],
"published": true
}
12 changes: 12 additions & 0 deletions universal/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# CodeSandbox supports debian & ubuntu based images
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04

# Example; install htop by default
RUN apt update -y && apt install -y htop

# The project will be mounted in /workspace by default

# Every new shell will open inside the built container

# On top of this build, we install `zsh`, `git` and `docker` as additional
# Docker layers.
4 changes: 4 additions & 0 deletions universal/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Devcontainer",
"image": "ghcr.io/codesandbox/devcontainers/universal:latest"
}
5 changes: 5 additions & 0 deletions universal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Universal Template

This template is based on a forked version of the [Universal image](https://github.com/codesandbox/devcontainer-images/pkgs/container/devcontainers%2Funiversal) from the Devcontainers team.

It contains almost all languages. It's the perfect starter for projects that can go in any direction.

0 comments on commit ed72345

Please sign in to comment.