mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Consolidate .env files. More work on dev containers.
This commit is contained in:
parent
2a959f354c
commit
3773d659cc
17 changed files with 137 additions and 106 deletions
|
@ -1,18 +1,27 @@
|
|||
FROM ubuntu:20.04
|
||||
|
||||
ARG DOCKER_UID
|
||||
ARG DOCKER_DEV_SSH_PASSWORD
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV TZ=UTC
|
||||
|
||||
# Set up some core packages
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y sudo git curl
|
||||
|
||||
# Set up SSH access
|
||||
RUN apt-get update && apt-get install -y openssh-server sudo git
|
||||
RUN apt-get install -y openssh-server iptables
|
||||
RUN mkdir /var/run/sshd
|
||||
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u "${DOCKER_UID}" ubuntu
|
||||
RUN echo 'ubuntu:password' | chpasswd
|
||||
RUN echo "ubuntu:${DOCKER_DEV_SSH_PASSWORD}" | chpasswd
|
||||
|
||||
# Install Node.js 16
|
||||
# Set up proper permissions for volumes
|
||||
RUN mkdir -p /home/ubuntu/zeppelin /home/ubuntu/.vscode-remote /home/ubuntu/.vscode-server /home/ubuntu/.cache/JetBrains
|
||||
RUN chown -R ubuntu /home/ubuntu
|
||||
|
||||
# Install Node.js 16 and packages needed to build native packages
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
||||
RUN apt-get install -y nodejs
|
||||
RUN apt-get install -y nodejs gcc g++ make python3
|
||||
|
||||
CMD /usr/sbin/sshd -D -e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue