debian-forge-composer/.devcontainer/Dockerfile
Simon de Vlieger 9840ef750b Devcontainer update to Fedora 36.
The staticfiles dependency updated to support Go 1.18 generics in the
2022.1 release. This prevents the devcontainer (which has Go 1.16) from
being built. This moves the container to Fedora 36 which provides Go
1.18.
2022-05-04 10:44:21 +02:00

33 lines
945 B
Docker

FROM fedora:36
# 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