diff --git a/images/configure/Dockerfile.ubuntu b/images/configure/Dockerfile.ubuntu index 8784713..873ae3f 100644 --- a/images/configure/Dockerfile.ubuntu +++ b/images/configure/Dockerfile.ubuntu @@ -1,3 +1,8 @@ FROM codercom/enterprise-base:ubuntu COPY [ "configure", "/coder/configure" ] + +USER root +COPY deprecated.txt /etc/motd +RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc +USER coder \ No newline at end of file diff --git a/images/configure/deprecated.txt b/images/configure/deprecated.txt new file mode 100644 index 0000000..6028508 --- /dev/null +++ b/images/configure/deprecated.txt @@ -0,0 +1,7 @@ +############################################################## +# DEPRECATED: this image is no longer updated. # +# Please migrate to codercom/enterprise-base:ubuntu # +# or build a custom image FROM it. # +# For more information see: # +# https://github.com/coder/enterprise-images/issues/238 # +############################################################## diff --git a/images/golang/Dockerfile.ubuntu b/images/golang/Dockerfile.ubuntu index a1ca633..161d1a2 100644 --- a/images/golang/Dockerfile.ubuntu +++ b/images/golang/Dockerfile.ubuntu @@ -14,5 +14,8 @@ ENV GOPATH /home/coder/go ENV GOBIN $GOPATH/bin ENV PATH $PATH:$GOBIN +COPY deprecated.txt /etc/motd +RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc + # Set back to coder user USER coder diff --git a/images/golang/deprecated.txt b/images/golang/deprecated.txt new file mode 100644 index 0000000..6028508 --- /dev/null +++ b/images/golang/deprecated.txt @@ -0,0 +1,7 @@ +############################################################## +# DEPRECATED: this image is no longer updated. # +# Please migrate to codercom/enterprise-base:ubuntu # +# or build a custom image FROM it. # +# For more information see: # +# https://github.com/coder/enterprise-images/issues/238 # +############################################################## diff --git a/images/java/Dockerfile.ubuntu b/images/java/Dockerfile.ubuntu index 4f76efb..5d5fbeb 100644 --- a/images/java/Dockerfile.ubuntu +++ b/images/java/Dockerfile.ubuntu @@ -52,5 +52,8 @@ RUN mkdir -p /usr/share/gradle /usr/share/gradle/ref \ ENV PATH $PATH:$GRADLE_HOME/bin +COPY deprecated.txt /etc/motd +RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc + # Set back to coder user USER coder diff --git a/images/java/deprecated.txt b/images/java/deprecated.txt new file mode 100644 index 0000000..6028508 --- /dev/null +++ b/images/java/deprecated.txt @@ -0,0 +1,7 @@ +############################################################## +# DEPRECATED: this image is no longer updated. # +# Please migrate to codercom/enterprise-base:ubuntu # +# or build a custom image FROM it. # +# For more information see: # +# https://github.com/coder/enterprise-images/issues/238 # +############################################################## diff --git a/images/jupyter/Dockerfile.ubuntu b/images/jupyter/Dockerfile.ubuntu index 022815d..e9f51a5 100644 --- a/images/jupyter/Dockerfile.ubuntu +++ b/images/jupyter/Dockerfile.ubuntu @@ -8,5 +8,8 @@ RUN pip3 install jupyterlab==3.5.2 && \ pip3 install jupyter-core==5.1.3 && \ pip3 install notebook==6.5.2 +COPY deprecated.txt /etc/motd +RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc + # Set back to coder user USER coder diff --git a/images/jupyter/deprecated.txt b/images/jupyter/deprecated.txt new file mode 100644 index 0000000..6028508 --- /dev/null +++ b/images/jupyter/deprecated.txt @@ -0,0 +1,7 @@ +############################################################## +# DEPRECATED: this image is no longer updated. # +# Please migrate to codercom/enterprise-base:ubuntu # +# or build a custom image FROM it. # +# For more information see: # +# https://github.com/coder/enterprise-images/issues/238 # +############################################################## diff --git a/images/multieditor/Dockerfile.ubuntu b/images/multieditor/Dockerfile.ubuntu index 1ea670e..bd4deb4 100644 --- a/images/multieditor/Dockerfile.ubuntu +++ b/images/multieditor/Dockerfile.ubuntu @@ -12,5 +12,8 @@ RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && \ libxi6 \ libgtk-3-0 +COPY deprecated.txt /etc/motd +RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc + # Set back to coder user USER coder diff --git a/images/multieditor/deprecated.txt b/images/multieditor/deprecated.txt new file mode 100644 index 0000000..6028508 --- /dev/null +++ b/images/multieditor/deprecated.txt @@ -0,0 +1,7 @@ +############################################################## +# DEPRECATED: this image is no longer updated. # +# Please migrate to codercom/enterprise-base:ubuntu # +# or build a custom image FROM it. # +# For more information see: # +# https://github.com/coder/enterprise-images/issues/238 # +############################################################## diff --git a/images/node/Dockerfile.ubuntu b/images/node/Dockerfile.ubuntu index b466aca..27dda13 100644 --- a/images/node/Dockerfile.ubuntu +++ b/images/node/Dockerfile.ubuntu @@ -13,5 +13,8 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list RUN DEBIAN_FRONTEND="noninteractive" apt-get update && apt-get install -y yarn +COPY deprecated.txt /etc/motd +RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc + # Set back to coder user USER coder diff --git a/images/node/deprecated.txt b/images/node/deprecated.txt new file mode 100644 index 0000000..6028508 --- /dev/null +++ b/images/node/deprecated.txt @@ -0,0 +1,7 @@ +############################################################## +# DEPRECATED: this image is no longer updated. # +# Please migrate to codercom/enterprise-base:ubuntu # +# or build a custom image FROM it. # +# For more information see: # +# https://github.com/coder/enterprise-images/issues/238 # +############################################################## diff --git a/images/ruby/Dockerfile.ubuntu b/images/ruby/Dockerfile.ubuntu index 9a6fa23..6dad619 100644 --- a/images/ruby/Dockerfile.ubuntu +++ b/images/ruby/Dockerfile.ubuntu @@ -11,5 +11,8 @@ RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && \ COPY ./install-ruby.sh /tmp RUN chmod +x /tmp/install-ruby.sh && /tmp/install-ruby.sh +COPY deprecated.txt /etc/motd +RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc + # Set back to coder user USER coder diff --git a/images/ruby/deprecated.txt b/images/ruby/deprecated.txt new file mode 100644 index 0000000..6028508 --- /dev/null +++ b/images/ruby/deprecated.txt @@ -0,0 +1,7 @@ +############################################################## +# DEPRECATED: this image is no longer updated. # +# Please migrate to codercom/enterprise-base:ubuntu # +# or build a custom image FROM it. # +# For more information see: # +# https://github.com/coder/enterprise-images/issues/238 # +############################################################## diff --git a/images/rust/Dockerfile.ubuntu b/images/rust/Dockerfile.ubuntu index a2bf30e..1536b6f 100644 --- a/images/rust/Dockerfile.ubuntu +++ b/images/rust/Dockerfile.ubuntu @@ -21,5 +21,8 @@ RUN /tmp/rustup.sh -y \ # Validate that cargo and rustc are available RUN cargo --version && rustc --version +COPY deprecated.txt /etc/motd +RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc + # Set back to coder user USER coder diff --git a/images/rust/deprecated.txt b/images/rust/deprecated.txt new file mode 100644 index 0000000..6028508 --- /dev/null +++ b/images/rust/deprecated.txt @@ -0,0 +1,7 @@ +############################################################## +# DEPRECATED: this image is no longer updated. # +# Please migrate to codercom/enterprise-base:ubuntu # +# or build a custom image FROM it. # +# For more information see: # +# https://github.com/coder/enterprise-images/issues/238 # +############################################################## diff --git a/images/vnc/Dockerfile.ubuntu b/images/vnc/Dockerfile.ubuntu index 82fa838..9e2ac36 100644 --- a/images/vnc/Dockerfile.ubuntu +++ b/images/vnc/Dockerfile.ubuntu @@ -105,6 +105,9 @@ RUN $VNC_SETUP_SCRIPTS/set_user_permission.sh $VNC_ROOT_DIR \ COPY ["./coder", "/coder"] RUN chmod +x /coder/configure +COPY deprecated.txt /etc/motd +RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc + USER coder RUN $VNC_SETUP_SCRIPTS/no_vnc.sh diff --git a/images/vnc/deprecated.txt b/images/vnc/deprecated.txt new file mode 100644 index 0000000..6028508 --- /dev/null +++ b/images/vnc/deprecated.txt @@ -0,0 +1,7 @@ +############################################################## +# DEPRECATED: this image is no longer updated. # +# Please migrate to codercom/enterprise-base:ubuntu # +# or build a custom image FROM it. # +# For more information see: # +# https://github.com/coder/enterprise-images/issues/238 # +##############################################################