Sign inSign up

mkpro118/mk-sandbox

By mkpro118

•Updated about 2 years ago

A Sandbox Development Environment. Supports Python-3.11, GCC/G++, Java-17, Node.js-22.x and Rust.

Image
Languages & frameworks
Developer tools
1

10K+

mkpro118/mk-sandbox repository overview

⁠Development Sandbox Environment

This image creates a sandbox development environment based on Ubuntu 22.04. The environment includes a variety of programming languages and essential development tools: Python, Java, JavaScript (Node.js), Rust, GCC/G++, Valgrind and Git VCS.

⁠Version Information

  • 24.6.23: Upgrade python pip, setuptools and wheel by default
  • 24.6.20: Improve command prompts
  • 24.6.16: Adds Valgrind memory debugging tool.
  • 24.6.15: Adds Git version control system.
  • 24.6.5: Initial release with core development tools.

⁠Installed Software

The Docker image includes the following software:

  • Ubuntu 22.04: Uses the stable LTS Ubuntu 22.04 Operating System
  • Build Essentials: Tools such as wget, curl, unzip, vim, make.
  • GCC and G++: C and C++ compilers
  • Python: Version 3.11, including pip and CPython development headers
  • Java: JDK 17
  • Node.js: Version 22.x
  • Rust: Installed via rustup, with all rust development components.
  • Git: Version control system, version 2.34 (added in 24.6.15).
  • Valgrind: Memory debugging and profiling tool, version 3.18 (added in 24.6.16).

⁠Usage

⁠Python

Python 3.11 is installed and can be accessed using the python3 command. A shortcut alias py is also set up for convenience. Use pip for package management.

python3 --version
pip3 install <package-name>
py <script.py>
⁠Java

Java JDK 17 is installed. You can compile and run Java programs using javac and java.

javac MyProgram.java
java MyProgram
⁠Node.js

Node.js v22.x is installed along with npm.

node --version
npm install <package-name>
⁠Rust

Rust is installed via rustup, and the environment is configured. You can start using Rust with the cargo command.

rustc --version
cargo new my_project
cd my_project
cargo build
⁠GCC and G++

You can compile C and C++ programs using gcc and g++.

gcc my_program.c -o my_program
./my_program

g++ my_program.cpp -o my_program
./my_program
⁠Git VCS

Git requires that identity must be configured with username and email before use.

git config --global user.name <YOUR_USERNAME>
git config --global user.email <YOUR_EMAIL>

If you're using remote repositories, git must be configured with your remote VCS Host. Follow your host's documentation to setup git remote.

⁠Valgrind

You can use Valgrind to detect memory errors in executables.

valgrind --leak-check=full \
         --show-leak-kinds=all \
         --track-origins=yes \
         ./my_program <program_args>

⁠Notes

  • No external libraries for any programming languages are pre-installed to minimize the image size. You can install the libraries you need as you go.
  • The container is designed for development and testing purposes. It is not intended for production use.
  • Source Dockerfile for this image can be found on github⁠

For any issues or improvements, please feel free to contribute⁠ or raise an issue⁠.

Tag summary

Content type

Image

Digest

sha256:0776f5f2e…

Size

910 MB

Last updated

about 2 years ago

docker pull mkpro118/mk-sandbox