Skip to content

Commit

Permalink
Add devcontainers for Linux (#257)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
normanmaurer authored Oct 4, 2024
1 parent 6a3704b commit 0e9c440
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu
RUN apt-get update && apt-get install -y \
autotools-dev autoconf automake libtool make tar libaio-dev libssl-dev libapr1-dev gcc \
htop strace openjdk-8-jdk-headless openjdk-8-source openjdk-11-jdk-headless openjdk-11-source \
openjdk-17-jdk-headless openjdk-17-source openjdk-21-jdk-headless openjdk-21-source
10 changes: 10 additions & 0 deletions .devcontainer/ubuntu/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
name: "netty-on-ubuntu",
containerEnv: {
CPATH: "/usr/lib/jvm/java-21-openjdk-arm64/include/:/usr/lib/jvm/java-21-openjdk-arm64/include/linux/"
},
build: {
dockerfile: "Dockerfile",
},
"securityOpt": [ "seccomp=unconfined" ]
}

0 comments on commit 0e9c440

Please sign in to comment.