Initial commit

This commit is contained in:
Adam Štrauch 2025-04-21 02:48:26 +02:00
commit 3f0d6fd6c5
Signed by: cx
GPG key ID: 7262DAFE292BCE20
5 changed files with 61 additions and 0 deletions

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
FROM registry.fedoraproject.org/fedora-toolbox:42
# Basic packages
RUN dnf check-update
RUN dnf install -y duf fd-find fish fzf htop ncdu tmux vim zstd ipcalc sdcv tldr jq genius pwgen httpie ripgrep lsd
# Dev stuff
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc
RUN echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | tee /etc/yum.repos.d/vscode.repo
RUN dnf check-update
RUN dnf install -y golang nodejs python3-devel mycli pgcli git-lfs awscli openssh-askpass make code
# User
RUN groupadd cx -g 1000
RUN useradd cx -u 1000 -g cx -d /var/home/cx -s /usr/bin/fish
# Podman
ADD uni.sh /usr/bin/podman
ADD podman-compose.sh /usr/bin/podman-compose
ADD uni.sh /usr/bin/docker
# Incus
ADD uni.sh /usr/bin/incus

17
README.md Normal file
View file

@ -0,0 +1,17 @@
# My devcontainer
Container for distrobox that I use for development based on Fedora.
## Usage
Including systemd:
```
distrobox create -i gitea.ceperka.net/cx/devcontainer:f42-latest -n drone --hostname drone --init
```
No systemd:
```
distrobox create -i gitea.ceperka.net/cx/devcontainer:f42-latest -n drone --hostname drone
```

15
Taskfile.yml Normal file
View file

@ -0,0 +1,15 @@
# https://taskfile.dev
version: '3'
vars:
IMAGE: gitea.ceperka.net/cx/devcontainer:f42-latest
tasks:
build:
cmds:
- docker pull registry.fedoraproject.org/fedora-toolbox
- docker build -t {{ .IMAGE }} .
push:
cmds:
- docker push {{ .IMAGE }}

3
podman-compose.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
distrobox-host-exec podman compose $*

3
uni.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
distrobox-host-exec $(basename "$0") $*