Ajout run
This commit is contained in:
@@ -17,11 +17,17 @@ RUN apt-get update && apt-get install -y openssh-server && rm -rf /var/lib/apt/l
|
|||||||
|
|
||||||
# Set up SSH
|
# Set up SSH
|
||||||
# RUN mkdir /var/run/sshd
|
# RUN mkdir /var/run/sshd
|
||||||
RUN echo 'root:root' | chpasswd
|
# Create user 'platformio' with password 'platformio' and add to sudo
|
||||||
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
RUN useradd -m -s /bin/bash platformio \
|
||||||
|
&& echo 'platformio:platformio' | chpasswd \
|
||||||
|
&& adduser platformio sudo
|
||||||
|
# Allow password authentication for SSH and allow user 'platformio' to login
|
||||||
|
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \
|
||||||
|
&& sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
|
# SER platformio
|
||||||
CMD ["/usr/sbin/sshd", "-D"]
|
CMD ["/usr/sbin/sshd", "-D"]
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ shift
|
|||||||
# exit 1
|
# exit 1
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
IMAGE="easylinux/platformio-dev:1.0"
|
IMAGE="easylinux/platformio-dev:1.1"
|
||||||
CONTAINER="pio-dev"
|
CONTAINER="pio-dev"
|
||||||
PROJECT_DIR="$(pwd)"
|
PROJECT_DIR="$(pwd)"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user