diff --git a/images/android/Dockerfile.ubuntu b/images/android/Dockerfile.ubuntu index a883db2..4b83170 100644 --- a/images/android/Dockerfile.ubuntu +++ b/images/android/Dockerfile.ubuntu @@ -38,5 +38,7 @@ RUN add-apt-repository ppa:maarten-fonville/android-studio && \ apt install -y android-studio && \ ln -s /opt/android-studio/bin/studio.sh /usr/local/bin/studio +COPY deprecated.txt /etc/motd + # Set back to coder user USER coder diff --git a/images/android/deprecated.txt b/images/android/deprecated.txt new file mode 100644 index 0000000..e73b4de --- /dev/null +++ b/images/android/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/issue/238 # +############################################################## diff --git a/images/clion/Dockerfile.ubuntu b/images/clion/Dockerfile.ubuntu index 2896615..f759988 100644 --- a/images/clion/Dockerfile.ubuntu +++ b/images/clion/Dockerfile.ubuntu @@ -10,5 +10,7 @@ RUN curl -L "https://download.jetbrains.com/product?code=CL&latest&distribution= # Add a binary to the PATH that points to the clion startup script. RUN ln -s /opt/clion/bin/clion.sh /usr/bin/clion +COPY deprecated.txt /etc/motd + # Set back to coder user USER coder diff --git a/images/clion/deprecated.txt b/images/clion/deprecated.txt new file mode 100644 index 0000000..e73b4de --- /dev/null +++ b/images/clion/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/issue/238 # +############################################################## diff --git a/images/configure/Dockerfile.ubuntu b/images/configure/Dockerfile.ubuntu index 8784713..6d17eb8 100644 --- a/images/configure/Dockerfile.ubuntu +++ b/images/configure/Dockerfile.ubuntu @@ -1,3 +1,7 @@ FROM codercom/enterprise-base:ubuntu COPY [ "configure", "/coder/configure" ] + +USER root +COPY deprecated.txt /etc/motd +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..e73b4de --- /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/issue/238 # +############################################################## diff --git a/images/dataSpell/Dockerfile.ubuntu b/images/dataSpell/Dockerfile.ubuntu index 2be2ee9..d01d060 100644 --- a/images/dataSpell/Dockerfile.ubuntu +++ b/images/dataSpell/Dockerfile.ubuntu @@ -10,5 +10,7 @@ RUN curl -L "https://download-cdn.jetbrains.com/python/dataspell-2021.3.3.tar.gz # Add a binary to the PATH that points to the pycharm startup script. RUN ln -s /opt/dataspell/bin/dataspell.sh /usr/bin/dataspell +COPY deprecated.txt /etc/motd + # Set back to coder user USER coder \ No newline at end of file diff --git a/images/dataSpell/deprecated.txt b/images/dataSpell/deprecated.txt new file mode 100644 index 0000000..e73b4de --- /dev/null +++ b/images/dataSpell/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/issue/238 # +############################################################## diff --git a/images/goland/Dockerfile.ubuntu b/images/goland/Dockerfile.ubuntu index b6565fb..c713d64 100644 --- a/images/goland/Dockerfile.ubuntu +++ b/images/goland/Dockerfile.ubuntu @@ -19,5 +19,7 @@ RUN curl -L "https://download.jetbrains.com/product?code=GO&latest&distribution= # Add a binary to the PATH that points to the goland startup script. RUN ln -s /opt/goland/bin/goland.sh /usr/bin/goland +COPY deprecated.txt /etc/motd + # Set back to coder user USER coder diff --git a/images/goland/deprecated.txt b/images/goland/deprecated.txt new file mode 100644 index 0000000..e73b4de --- /dev/null +++ b/images/goland/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/issue/238 # +############################################################## diff --git a/images/golang/Dockerfile.ubuntu b/images/golang/Dockerfile.ubuntu index a1ca633..1e91366 100644 --- a/images/golang/Dockerfile.ubuntu +++ b/images/golang/Dockerfile.ubuntu @@ -14,5 +14,7 @@ ENV GOPATH /home/coder/go ENV GOBIN $GOPATH/bin ENV PATH $PATH:$GOBIN +COPY deprecated.txt /etc/motd + # 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..e73b4de --- /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/issue/238 # +############################################################## diff --git a/images/intellij/Dockerfile.ubuntu b/images/intellij/Dockerfile.ubuntu index 548f4ef..1cacca7 100644 --- a/images/intellij/Dockerfile.ubuntu +++ b/images/intellij/Dockerfile.ubuntu @@ -19,5 +19,7 @@ RUN curl -L "https://download.jetbrains.com/product?code=IIC&latest&distribution # Add a binary to the PATH that points to the intellij startup script. RUN ln -s /opt/idea/bin/idea.sh /usr/bin/intellij-idea-community +COPY deprecated.txt /etc/motd + # Set back to coder user USER coder diff --git a/images/intellij/deprecated.txt b/images/intellij/deprecated.txt new file mode 100644 index 0000000..e73b4de --- /dev/null +++ b/images/intellij/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/issue/238 # +############################################################## diff --git a/images/java/Dockerfile.ubuntu b/images/java/Dockerfile.ubuntu index 4f76efb..be2a9cf 100644 --- a/images/java/Dockerfile.ubuntu +++ b/images/java/Dockerfile.ubuntu @@ -52,5 +52,7 @@ RUN mkdir -p /usr/share/gradle /usr/share/gradle/ref \ ENV PATH $PATH:$GRADLE_HOME/bin +COPY deprecated.txt /etc/motd + # 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..e73b4de --- /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/issue/238 # +############################################################## diff --git a/images/jupyter/Dockerfile.ubuntu b/images/jupyter/Dockerfile.ubuntu index 022815d..b62b4d4 100644 --- a/images/jupyter/Dockerfile.ubuntu +++ b/images/jupyter/Dockerfile.ubuntu @@ -8,5 +8,7 @@ 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 + # 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..e73b4de --- /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/issue/238 # +############################################################## diff --git a/images/multieditor/Dockerfile.ubuntu b/images/multieditor/Dockerfile.ubuntu index 1ea670e..00bd3bb 100644 --- a/images/multieditor/Dockerfile.ubuntu +++ b/images/multieditor/Dockerfile.ubuntu @@ -12,5 +12,7 @@ RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && \ libxi6 \ libgtk-3-0 +COPY deprecated.txt /etc/motd + # 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..e73b4de --- /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/issue/238 # +############################################################## diff --git a/images/node/Dockerfile.ubuntu b/images/node/Dockerfile.ubuntu index b466aca..2773123 100644 --- a/images/node/Dockerfile.ubuntu +++ b/images/node/Dockerfile.ubuntu @@ -13,5 +13,7 @@ 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 + # 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..e73b4de --- /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/issue/238 # +############################################################## diff --git a/images/pycharm/Dockerfile.ubuntu b/images/pycharm/Dockerfile.ubuntu index 7649199..b5657aa 100644 --- a/images/pycharm/Dockerfile.ubuntu +++ b/images/pycharm/Dockerfile.ubuntu @@ -10,5 +10,7 @@ RUN curl -L "https://download.jetbrains.com/product?code=PCC&latest&distribution # Add a binary to the PATH that points to the pycharm startup script. RUN ln -s /opt/pycharm/bin/pycharm.sh /usr/bin/pycharm-community +COPY deprecated.txt /etc/motd + # Set back to coder user USER coder diff --git a/images/pycharm/deprecated.txt b/images/pycharm/deprecated.txt new file mode 100644 index 0000000..e73b4de --- /dev/null +++ b/images/pycharm/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/issue/238 # +############################################################## diff --git a/images/ruby/Dockerfile.ubuntu b/images/ruby/Dockerfile.ubuntu index 9a6fa23..0c4ccf2 100644 --- a/images/ruby/Dockerfile.ubuntu +++ b/images/ruby/Dockerfile.ubuntu @@ -11,5 +11,7 @@ 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 + # 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..e73b4de --- /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/issue/238 # +############################################################## diff --git a/images/rust/Dockerfile.ubuntu b/images/rust/Dockerfile.ubuntu index a2bf30e..833033f 100644 --- a/images/rust/Dockerfile.ubuntu +++ b/images/rust/Dockerfile.ubuntu @@ -21,5 +21,7 @@ RUN /tmp/rustup.sh -y \ # Validate that cargo and rustc are available RUN cargo --version && rustc --version +COPY deprecated.txt /etc/motd + # 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..e73b4de --- /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/issue/238 # +############################################################## diff --git a/images/vnc/Dockerfile.ubuntu b/images/vnc/Dockerfile.ubuntu index 82fa838..33f534b 100644 --- a/images/vnc/Dockerfile.ubuntu +++ b/images/vnc/Dockerfile.ubuntu @@ -105,6 +105,8 @@ RUN $VNC_SETUP_SCRIPTS/set_user_permission.sh $VNC_ROOT_DIR \ COPY ["./coder", "/coder"] RUN chmod +x /coder/configure +COPY deprecated.txt /etc/motd + 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..e73b4de --- /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/issue/238 # +############################################################## diff --git a/images/webstorm/Dockerfile.ubuntu b/images/webstorm/Dockerfile.ubuntu index d187595..e9e8fee 100644 --- a/images/webstorm/Dockerfile.ubuntu +++ b/images/webstorm/Dockerfile.ubuntu @@ -10,5 +10,7 @@ RUN curl -L "https://download.jetbrains.com/product?code=WS&latest&distribution= # Add a binary to the PATH that points to the webstorm startup script. RUN ln -s /opt/webstorm/bin/webstorm.sh /usr/bin/webstorm +COPY deprecated.txt /etc/motd + # Set back to coder user USER coder diff --git a/images/webstorm/deprecated.txt b/images/webstorm/deprecated.txt new file mode 100644 index 0000000..e73b4de --- /dev/null +++ b/images/webstorm/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/issue/238 # +##############################################################