Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 48 additions & 42 deletions orbit/radius.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,40 +812,39 @@ def handle_containerfile(rocket):
return rocket.raw_respond(HTTPStatus.OK, rf'''
FROM fedora:42

RUN <<DNF
dnf -y update
dnf install -y --setopt=install_weak_deps=False \
git \
tar \
make \
gcc \
qemu-system-riscv \
qemu-user-static-riscv \
binutils-riscv64-linux-gnu \
gcc-riscv64-linux-gnu \
bc \
flex \
bison \
openssl-devel \
elfutils-libelf-devel \
ncurses-devel \
dwarves \
git-email \
vim \
nano \
{nano_default_editor} \
mutt \
cpio \
wget \
cyrus-sasl-plain \
gdb \
diffutils \
strace \
man \
man-pages \
;
dnf clean all
DNF
RUN dnf -y update && \
dnf install -y --setopt=install_weak_deps=False \
git \
tar \
make \
gcc \
qemu-system-riscv \
qemu-user-static-riscv \
binutils-riscv64-linux-gnu \
gcc-riscv64-linux-gnu \
bc \
flex \
bison \
openssl-devel \
elfutils-libelf-devel \
ncurses-devel \
dwarves \
git-email \
vim \
nano \
{nano_default_editor} \
mutt \
cpio \
wget \
cyrus-sasl-plain \
gdb \
diffutils \
strace \
man \
man-pages \
&& \
dnf clean all && \
:

RUN useradd {username} -U
USER {username}:{username}
Expand All @@ -871,20 +870,27 @@ def handle_containerfile(rocket):

RUN cat <<'GITCONFIG' > ~/.gitconfig
[user]
name = '{fullname}'
email = {username}@{hostname}
name = '{fullname}'
email = {username}@{hostname}
[sendemail]
smtpUser = {username}
smtpPass = {password}
smtpserver = {hostname}
smtpserverport = 465
smtpencryption = ssl
smtpUser = {username}
smtpPass = {password}
smtpserver = {hostname}
smtpserverport = 465
smtpencryption = ssl
[credential "https://{hostname}"]
helper = store
username = {username}
GITCONFIG

RUN cat <<'GITCREDENTIALS' > ~/.git-credentials
https://{username}:{password}@{hostname}
GITCREDENTIALS

VOLUME /home

ENTRYPOINT ["/usr/bin/bash", "-l", "-i"]
'''.encode())
'''.encode()) # NOQA: W191 E101


def handle_error(rocket):
Expand Down