Skip to content

Commit

Permalink
reaktiviert
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Oct 11, 2023
1 parent 05d5fdf commit 0f58bb4
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions ci/Dockerfile.bullseye.test_install.armv7
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ ENV GIT_URL=$GIT_URL
COPY . /code
WORKDIR /code

RUN echo "DOCKER_RUNNING=$DOCKER_RUNNING" ;\
echo "USER=$USER" ;\
echo "USER_GROUP=$USER_GROUP" ;\
echo "GIT_BRANCH=$GIT_BRANCH" ;\
echo "GIT_URL=$GIT_URL"

RUN groupadd --gid 1000 $USER_GROUP ;\
useradd -u 1000 -g 1000 -G sudo -d /home/$USER -m -s /bin/bash -p '$1$iV7TOwOe$6ojkJQXyEA9bHd/SqNLNj0' $USER ;\
chown -R $USER:$USER_GROUP /code /home/$USER ;\
Expand All @@ -29,24 +23,20 @@ RUN groupadd --gid 1000 $USER_GROUP ;\
RUN export DEBIAN_FRONTEND=noninteractive ;\
apt-get update ;\
apt-get -y install curl gnupg sudo nano systemd apt-utils ;\
# install here to speed up GitHub Action
# apt-get -y install raspberrypi-kernel raspberrypi-kernel-headers ;\
# echo 'deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi' > /etc/apt/sources.list.d/raspi.list ;\
# echo 'deb http://archive.raspberrypi.org/debian/ bullseye main' >> /etc/apt/sources.list.d/raspi.list ;\
# curl http://raspbian.raspberrypi.org/raspbian.public.key | apt-key add - ;\
# curl http://archive.raspberrypi.org/debian/raspberrypi.gpg.key | apt-key add - ;\
echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER
# apt-get clean ;\
# rm -rf /var/cache/apt/* /var/lib/apt/lists/*

RUN sudo cat /etc/sudoers.d/$USER
echo 'deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi' > /etc/apt/sources.list.d/raspi.list ;\
echo 'deb http://archive.raspberrypi.org/debian/ bullseye main' >> /etc/apt/sources.list.d/raspi.list ;\
curl http://raspbian.raspberrypi.org/raspbian.public.key | apt-key add - ;\
curl http://archive.raspberrypi.org/debian/raspberrypi.gpg.key | apt-key add - ;\
echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER ;\
apt-get clean ;\
rm -rf /var/cache/apt/* /var/lib/apt/lists/*

# RUN export DEBIAN_FRONTEND=noninteractive ;\
# apt-get update ;\
# apt-get -y dist-upgrade --auto-remove --purge ;\
# apt-get -y install wget build-essential git iw locales wpasupplicant;\
# apt-get clean ;\
# touch /boot/cmdlinetxt ;\
# rm -rf /var/cache/apt/* /var/lib/apt/lists/*
RUN export DEBIAN_FRONTEND=noninteractive ;\
apt-get update ;\
apt-get -y dist-upgrade --auto-remove --purge ;\
apt-get -y install wget build-essential git iw locales wpasupplicant;\
apt-get clean ;\
touch /boot/cmdlinetxt ;\
rm -rf /var/cache/apt/* /var/lib/apt/lists/*

USER $USER

0 comments on commit 0f58bb4

Please sign in to comment.