Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 0e9c440

Browse files
authored
Add devcontainers for Linux (#257)
Motivation: Linux is the most important deployment OS, but a significant amount of development takes place on Windows and MacOS. Devcontainers allow developers to quickly spin up a Docker container, to run their IDE inside a native Linux environment. This is helpful for debugging and testing. Intellij IDEA Ultimate and Visual Studio Code both have support for devcontainers. Modifications: Add devcontainer spec file for ubuntu Result: It's now possible to run an IDE in a Linux devcontainer environment on Windows and MacOS.
1 parent 6a3704b commit 0e9c440

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.devcontainer/ubuntu/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu
2+
RUN apt-get update && apt-get install -y \
3+
autotools-dev autoconf automake libtool make tar libaio-dev libssl-dev libapr1-dev gcc \
4+
htop strace openjdk-8-jdk-headless openjdk-8-source openjdk-11-jdk-headless openjdk-11-source \
5+
openjdk-17-jdk-headless openjdk-17-source openjdk-21-jdk-headless openjdk-21-source
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
name: "netty-on-ubuntu",
3+
containerEnv: {
4+
CPATH: "/usr/lib/jvm/java-21-openjdk-arm64/include/:/usr/lib/jvm/java-21-openjdk-arm64/include/linux/"
5+
},
6+
build: {
7+
dockerfile: "Dockerfile",
8+
},
9+
"securityOpt": [ "seccomp=unconfined" ]
10+
}

0 commit comments

Comments
 (0)