Giter Site home page Giter Site logo

ietxaniz / vscode-in-docker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

Run and manage reproducible, secure, and isolated VSCode environments in Docker containers on Linux for customizable development setups.

License: MIT License

Dockerfile 75.09% Shell 24.91%

vscode-in-docker's Introduction

VSCode in Docker

This repository contains Dockerfiles and scripts for setting up Visual Studio Code (VSCode) in Docker environments, tailored for different development needs.

Structure

images Directory

This directory contains Dockerfiles for creating the following images:

  • vscode-base: A base Docker image with VSCode installed.
  • vscode-go: An image that extends vscode-base by adding a Go development environment.
  • vscode-ext-devel: An image that adds a VSCode extension development environment, including Node.js and tools for extension development.

The build.sh script in this directory can be used to build these Docker images. The last part of this script uploads the images to DockerHub. Modify this section of the script according to your DockerHub account details before running it.

examples Directory

This directory provides example scripts for running VSCode in Docker under different configurations:

  • vscode
  • go
  • ext-devel

Each subdirectory contains the following scripts:

  • run.sh: Script to run the VSCode environment.
  • init.sh: Initial setup script for creating directories.
  • clear.sh: Clears all data in the environment, including the home directory and Documents. Use this only if you encounter problems with the container. Note that executing this script will remove the ./Documents folder.
  • clear-config.sh: Resets the environment to a fresh state but retains the Documents directory.
  • .gitignore: Git ignore file specific to the environment.

These scripts have been tested on Ubuntu LTS.

Usage

To use these environments:

  1. Navigate to the desired environment directory under examples.
  2. Execute init.sh to perform initial setup.
  3. Run run.sh to start the VSCode environment.
  4. Use clear-config.sh to return to a fresh state while keeping Documents.
  5. Use clear.sh only if you encounter issues with folder permissions.

License

This project is licensed under the terms of the MIT License.

vscode-in-docker's People

Contributors

ietxaniz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.