Skip to content

Commit

Permalink
linux: switch to self made image
Browse files Browse the repository at this point in the history
That we can install additonal packages and have
manpages.
Use a docker-compose for the build and image specification
and for the mount paths, that the build-images action
also builds this image.
At least we know that the image can be built.
  • Loading branch information
BacLuc committed Mar 6, 2024
1 parent 9878c59 commit 019da3f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions .devcontainer/linux/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**
13 changes: 13 additions & 0 deletions .devcontainer/linux/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
nano \
tmux \
vim \
&& yes | unminimize \
&& rm -rf /var/lib/apt/lists/*

CMD ["tail", "-f", "/dev/null"]
4 changes: 3 additions & 1 deletion .devcontainer/linux/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "Jumpstart linux part",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
"dockerComposeFile": "./docker-compose.yml",
"service": "linux-devcontainer",
"workspaceFolder": "/workspace",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"dockerDashComposeVersion": "v2"
Expand Down
6 changes: 6 additions & 0 deletions .devcontainer/linux/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
linux-devcontainer:
image: ${REGISTRY:-ghcr.io}/${REPO_OWNER:-scs}/${REPO_NAME:-jumpstart-docs}/linux-devcontainer:${VERSION:-latest}
build: .
volumes:
- "../../:/workspace:cached"

0 comments on commit 019da3f

Please sign in to comment.