Commit c38cb7ca authored by Jacob Priddy's avatar Jacob Priddy 👌

add container for esp32 builds

parent 8f6cf4d7
......@@ -94,3 +94,15 @@ services:
- "8000:8000"
networks:
- doorcode
esp32:
build:
context: ./src/embedded
dockerfile: ./esp32.Dockerfile
tty: true
container_name: esp32
volumes:
- ./src/embedded:/project
# This only works on linux
- /dev:/dev
ports:
- "2222:22"
FROM espressif/idf:latest
RUN apt-get update \
&& apt-get install -y ssh \
rsync \
tar \
&& apt-get clean
RUN ( \
echo 'LogLevel DEBUG2'; \
echo 'PermitRootLogin yes'; \
echo 'PasswordAuthentication yes'; \
echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \
) > /etc/ssh/sshd_config_test_clion \
&& mkdir /run/sshd
RUN groupmod -g 985 users && useradd -u 1000 -ms /bin/bash -g users builder \
&& yes password | passwd builder
CMD ["/usr/sbin/sshd", "-D", "-e", "-f", "/etc/ssh/sshd_config_test_clion"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment