debian-forge-composer/.devcontainer/Dockerfile
Tom Gundersen bbbbe32b10 devcontainer: adapt to composer
Make the devcontainer more complete for osbuild-composer by
installing more dependencies and plugins.

This enables golang and github integration by default.
2022-02-27 20:55:03 +00:00

33 lines
945 B
Docker

FROM fedora:35
# Install:
# - a few packages for convenient usage
# - RPM tooling
# - the go compiler
# - weldr-client to use the weldr API
# - builddep to be able to pull in requirements from .spec
RUN dnf install -y \
fish \
fd-find \
ripgrep \
jq \
fedora-packager \
rpmdevtools \
go-srpm-macros \
go \
weldr-client \
osbuild \
osbuild-lvm2 \
osbuild-luks2 \
osbuild-ostree \
osbuild-tools \
'dnf-command(builddep)'
# install the language server
RUN go install -v golang.org/x/tools/gopls@latest
RUN go install -v github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest
RUN go install -v github.com/ramya-rao-a/go-outline@latest
RUN go install -v github.com/go-delve/delve/cmd/dlv@latest
RUN go install -v honnef.co/go/tools/cmd/staticcheck@latest
COPY ./osbuild-composer.spec /tmp/osbuild-composer.spec
RUN dnf builddep /tmp/osbuild-composer.spec -y
RUN rm /tmp/osbuild-composer.spec