chore: add deprecation notices (#239)
Adds deprecation notices in /etc/motd to all images except enterprise-base and enterprise-minimal. Adds a line in global bashrc to print /etc/motd
This commit is contained in:
parent
a4c3fc3ca8
commit
43506266a6
|
@ -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
|
|
@ -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 #
|
||||
##############################################################
|
|
@ -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
|
||||
|
|
|
@ -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 #
|
||||
##############################################################
|
|
@ -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
|
||||
|
|
|
@ -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 #
|
||||
##############################################################
|
|
@ -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
|
||||
|
|
|
@ -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 #
|
||||
##############################################################
|
|
@ -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
|
||||
|
|
|
@ -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 #
|
||||
##############################################################
|
|
@ -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
|
||||
|
|
|
@ -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 #
|
||||
##############################################################
|
|
@ -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
|
||||
|
|
|
@ -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 #
|
||||
##############################################################
|
|
@ -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
|
||||
|
|
|
@ -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 #
|
||||
##############################################################
|
|
@ -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
|
||||
|
|
|
@ -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 #
|
||||
##############################################################
|
Loading…
Reference in New Issue