devcontainer: introduce VSCode dev container
Introduce Dockerfile and devcontainer.json specifying how to build and run a containerized development environment in VSCode. The configuration is inspired by the osbuild repo where a similar configuration directory already exists.
This commit is contained in:
parent
471353db60
commit
b7df6ac627
2 changed files with 28 additions and 0 deletions
17
.devcontainer/Dockerfile
Normal file
17
.devcontainer/Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
FROM fedora:34
|
||||
|
||||
# Install few packages for convenient usage.
|
||||
# Inspired by the devcontainer in osbuild.
|
||||
RUN dnf install -y \
|
||||
fish \
|
||||
fd-find \
|
||||
ripgrep \
|
||||
jq
|
||||
# We build composer using RPM, install the tooling
|
||||
RUN dnf install fedora-packager rpmdevtools go-srpm-macros -y
|
||||
# The list of requirements is specified in the spec file.
|
||||
# To install them, dnf needs the "builddep" command.
|
||||
RUN dnf install 'dnf-command(builddep)' -y
|
||||
# Copy the specfile and install the dependencies.
|
||||
COPY osbuild-composer.spec /tmp/osbuild-composer.spec
|
||||
RUN dnf builddep /tmp/osbuild-composer.spec -y
|
||||
Loading…
Add table
Add a link
Reference in a new issue