diff --git a/base/desktop.Dockerfile b/base/desktop.Dockerfile index 2fe4cb4..f99571d 100644 --- a/base/desktop.Dockerfile +++ b/base/desktop.Dockerfile @@ -31,5 +31,8 @@ RUN mkdir -p .scripts COPY --chown=designer:designer --chmod=755 scripts/* /home/designer/.scripts ENV PATH="/home/designer/.scripts:${PATH}" +# Add motd +RUN echo "/home/designer/.bashrc" >> "custom_motd" + # Initialize the enviroment keeping container alive ENTRYPOINT ["start_desktop"] diff --git a/scripts/custom_motd b/scripts/custom_motd new file mode 100644 index 0000000..47021e5 --- /dev/null +++ b/scripts/custom_motd @@ -0,0 +1,20 @@ +#!/bin/bash +cat << EOF + __ __ + __ /\ \__ /\ \ + ___ ____/\_\ ___ ____\ \ ,_\ __ ___\ \ \/'\ ____ + / __`\ /',__\/\ \ /'___\ /',__\\ \ \/ /'__`\ /'___\ \ , < /',__\ +/\ \L\ \/\__, `\ \ \/\ \__/ /\__, `\\ \ \_/\ \L\.\_/\ \__/\ \ \\`\ /\__, `\ +\ \____/\/\____/\ \_\ \____\ \/\____/ \ \__\ \__/.\_\ \____\\ \_\ \_\/\____/ + \/___/ \/___/ \/_/\/____/ \/___/ \/__/\/__/\/_/\/____/ \/_/\/_/\/___/ + +EOF + +if [[ -z "${PDK} "]] + cat << EOF + There is not an active PDK, Use: + volare_set_latest + to automatically download and configure the latest version of a PDK. + You can also manually configure a PDK using volare and setting the PDK environment variable + EOF +fi \ No newline at end of file diff --git a/scripts/desktop_init b/scripts/desktop_init index 32b1fe0..09c5d06 100644 --- a/scripts/desktop_init +++ b/scripts/desktop_init @@ -1,2 +1,3 @@ #!/bin/bash setwallpaper /home/designer/.media/defaultwallpaper.png +xfce4-terminal \ No newline at end of file diff --git a/scripts/volare_set_latest b/scripts/volare_set_latest index 87dd734..7b2f7fb 100644 --- a/scripts/volare_set_latest +++ b/scripts/volare_set_latest @@ -1,4 +1,5 @@ #!/bin/bash +if [[ -z "$1"]]; then PDK=$1 fi if [[ -z "${PDK}" ]]; then PDK_VERSION=$(volare ls-remote --pdk $PDK | sed -n '1 p') volare enable --pdk $PDK $PDK_VERSION