diff --git a/.gitignore b/.gitignore index e0327b447..6ed6ff11c 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ /.project .DS_Store +.clion.source.upload.marker .idea .vscode *.iml diff --git a/container/Containerfile.ubuntu b/container/Containerfile.ubuntu index 00ff029f4..a081a6acc 100644 --- a/container/Containerfile.ubuntu +++ b/container/Containerfile.ubuntu @@ -15,18 +15,32 @@ # specific language governing permissions and limitations # under the License. +# SSH credentials: +# root@password + FROM docker.io/library/ubuntu:22.04@sha256:b492494d8e0113c4ad3fe4528a4b5ff89faa5331f7d52c5c138196f69ce176a6 -# Install build & Celix dependencies -RUN apt-get update && \ - apt-get install -y --no-install-recommends \ +# Install dependencies +RUN DEBIAN_FRONTEND="noninteractive" apt-get update && \ + DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ + # Development dependencies \ + dos2unix \ + git \ + locales-all \ + rsync \ + tar \ + ssh \ + tzdata \ # Build dependencies \ build-essential \ ccache \ cmake \ curl \ default-jdk \ - git \ + gcc \ + g++ \ + gdb \ + make \ python3 \ # Celix dependencies \ civetweb \ @@ -43,3 +57,15 @@ RUN apt-get update && \ uuid-dev && \ apt-get clean +RUN ( \ + echo 'Port 2233'; \ + echo 'LogLevel INFO'; \ + echo 'PermitRootLogin yes'; \ + echo 'PasswordAuthentication yes'; \ + echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \ + ) > /etc/ssh/sshd_config_clion \ + && mkdir /run/sshd + +RUN yes password | passwd root + +CMD ["/usr/sbin/sshd", "-D", "-e", "-f", "/etc/ssh/sshd_config_clion"]