Commit 18eac680 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Added docker, ubuntu home, disabled prompt name.

parent 0f651ef6
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -184,6 +184,11 @@ COPY files/eclipse128.png /opt/eclipse/eclipse128.png
COPY files/Eclipse.desktop /ubuntu_home_vanilla/Desktop/
COPY files/Eclipse.desktop /ubuntu_home_vanilla/Desktop/
RUN chown -R ubuntu:ubuntu /ubuntu_home_vanilla/Desktop/
RUN chown -R ubuntu:ubuntu /ubuntu_home_vanilla/Desktop/


# Docker
ARG DOCKER_GID
RUN groupadd -g $DOCKER_GID docker
RUN apt-get install docker.io -y
RUN usermod -aG docker ubuntu


# Giveagain, since xfce install "fixed" it)  write access to anyone to the home folder so the entrypoint
# Giveagain, since xfce install "fixed" it)  write access to anyone to the home folder so the entrypoint
# will be able to copy over the /home/matauser_vanilla into /home/ubuntu (for Singularity)
# will be able to copy over the /home/matauser_vanilla into /home/ubuntu (for Singularity)
@@ -208,3 +213,5 @@ USER ubuntu


# To access: expose 8590/tcp and 5900/tcp
# To access: expose 8590/tcp and 5900/tcp
ENV CONTAINER_NAME='xubuntudesktop'
ENV CONTAINER_NAME='xubuntudesktop'

+6 −1
Original line number Original line Diff line number Diff line
#!/bin/bash
#!/bin/bash


docker build  . -t xubuntudesktop
# Get host Docker group id
DOCKER_GID=$(getent group docker | cut -d':' -f3)

echo "Using host Docker group id : $DOCKER_GID"

docker build --build-arg DOCKER_GID=$DOCKER_GID . -t xubuntudesktop
+2 −2
Original line number Original line Diff line number Diff line
@@ -89,8 +89,8 @@ else
    fi
    fi


							
							
	echo "[INFO] Setting new prompt @$CONTAINER_NAME container"
    #echo "[INFO] Setting new prompt @$CONTAINER_NAME container"
	echo 'export PS1="${debian_chroot:+($debian_chroot)}\u@$CONTAINER_NAME@\h:\w\$ "' >> /home/ubuntu/.bashrc
    #echo 'export PS1="${debian_chroot:+($debian_chroot)}\u@$CONTAINER_NAME@\h:\w\$ "' >> /home/ubuntu/.bashrc
	
	
	
	
	
	
+1 −1
Original line number Original line Diff line number Diff line
#!/bin/bash
#!/bin/bash
docker run -v$PWD/:/data -p8590:8590 -it xubuntudesktop
docker run -v/home/ubuntu/:/home/ubuntu -v/var/run/docker.sock:/var/run/docker.sock  -p8590:8590 -it xubuntudesktop