flyerzrule
flyerzrule
Explore posts from servers
CCoder.com
Created by flyerzrule on 3/16/2024 in #help
PATH getting overwritten
No I didnt
10 replies
CCoder.com
Created by flyerzrule on 4/3/2024 in #help
Error: couldn't parse owner groups ""
I rebooted the server again and now it is working. For some reason the first reboot didn't do anything
18 replies
CCoder.com
Created by flyerzrule on 3/16/2024 in #help
PATH getting overwritten
if you create a workspace using that template and open the terminal, you will not be able to run cargo
10 replies
CCoder.com
Created by flyerzrule on 3/16/2024 in #help
PATH getting overwritten
Sure! These are the files for the broken version. dockerfile:
FROM rust:1.77-bookworm

RUN apt-get update \
&& apt-get install -y \
curl \
git \
sudo \
vim \
wget \
&& rm -rf /var/lib/apt/lists/*

ARG USER=coder
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER}
USER ${USER}
WORKDIR /home/${USER}
FROM rust:1.77-bookworm

RUN apt-get update \
&& apt-get install -y \
curl \
git \
sudo \
vim \
wget \
&& rm -rf /var/lib/apt/lists/*

ARG USER=coder
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER}
USER ${USER}
WORKDIR /home/${USER}
10 replies
CCoder.com
Created by flyerzrule on 3/16/2024 in #help
PATH getting overwritten
I fixed it by adding RUN echo "export PATH=\$PATH:/usr/local/cargo/bin" >> ~/.profile to the bottom of the Dockerfile. Its still quite annoying that that needs to be done.
10 replies