outroddet_
outroddet_
CCoder.com
Created by outroddet_ on 9/20/2024 in #help
Use custom install Script as Terraform Resource
I want that everything will be executed with the workspace user for full permissions.
5 replies
CCoder.com
Created by outroddet_ on 9/20/2024 in #help
Use custom install Script as Terraform Resource
FROM ubuntu

RUN apt-get update \
&& apt-get install -y \
curl \
git \
python3 \
python3-pip \
sudo \
vim \
nano \
openjdk-8-jdk \
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 ubuntu

RUN apt-get update \
&& apt-get install -y \
curl \
git \
python3 \
python3-pip \
sudo \
vim \
nano \
openjdk-8-jdk \
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}
Dockerfile
5 replies
CCoder.com
Created by outroddet_ on 9/20/2024 in #help
Use custom install Script as Terraform Resource
#!/bin/sh

pip3 install findspark pyspark --break-system-packages
#!/bin/sh

pip3 install findspark pyspark --break-system-packages
Test install.sh file
5 replies