diff --git a/dockerfiles/dev/.cccp.yml b/dockerfiles/dev/.cccp.yml deleted file mode 100644 index e007e7349c3..00000000000 --- a/dockerfiles/dev/.cccp.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2012-2019 Red Hat, Inc -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# - -# This is file is needed to include the project in the CentOS Container -# Pipeline main index. It can be used to set the image name (using job-id), set -# the test script and/or build script and whether to perform or skip the -# user-defined tests. More information on cccp.yml file can be found on: -# https://github.com/CentOS/container-index#the-cccpyml-file - -job-id: che-dev diff --git a/dockerfiles/dev/Dockerfile b/dockerfiles/dev/Dockerfile deleted file mode 100644 index a81c7526f87..00000000000 --- a/dockerfiles/dev/Dockerfile +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright (c) 2012-2019 Red Hat, Inc. -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Red Hat, Inc.- initial API and implementation - - -FROM registry.centos.org/che-stacks/centos-stack-base - -EXPOSE 4403 8080 8000 9876 22 - -RUN sudo yum -y install epel-release && \ - sudo yum -y update && \ - sudo yum -y install \ - rh-maven35 \ - plexus-classworlds \ - rh-nodejs8 \ - gcc-c++ \ - gcc \ - glibc-devel \ - bzip2 \ - make \ - golang \ - sudo yum clean all && \ - cat /opt/rh/rh-maven35/enable >> /home/user/.bashrc && \ - cat /opt/rh/rh-nodejs8/enable >> /home/user/.bashrc && \ - sudo ln -s /opt/rh/rh-nodejs8/root/usr/bin/node /usr/local/bin/nodejs - -ENV TOMCAT_VERSION=8.5.23 YARN_VERSION=1.15.2 - -RUN mkdir $HOME/.m2 && \ - wget -O /home/user/tomcat8.zip "https://oss.sonatype.org/content/repositories/releases/org/eclipse/che/lib/che-tomcat8-slf4j-logback/6.11.0/che-tomcat8-slf4j-logback-6.11.0.zip" ;\ - unzip /home/user/tomcat8.zip -d /home/user/tomcat8;\ - rm /home/user/tomcat8.zip;\ - mkdir /home/user/tomcat8/webapps;\ - sed -i -- 's/autoDeploy=\"false\"/autoDeploy=\"true\"/g' /home/user/tomcat8/conf/server.xml; \ - sed -i 's///g' /home/user/tomcat8/conf/context.xml; \ - echo "export MAVEN_OPTS=\$JAVA_OPTS" >> /home/user/.bashrc - -RUN wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --import \ - && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \ - && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \ - && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ - && sudo mkdir -p /opt \ - && sudo tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \ - && sudo ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \ - && sudo ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \ - && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz - -USER user - -ENV LD_LIBRARY_PATH=/opt/rh/rh-nodejs8/root/usr/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} \ - PYTHONPATH=/opt/rh/rh-nodejs8/root/usr/lib/python2.7/site-packages${PYTHONPATH:+:${PYTHONPATH}} \ - MANPATH=/opt/rh/rh-nodejs8/root/usr/share/man:$MANPATH \ - TOMCAT_HOME=/home/user/tomcat8 \ - TERM=xterm \ - M2_HOME=/opt/rh/rh-maven35/root/usr/share/maven \ - GOPATH=$HOME/go \ - NODEJS_VERSION=6 \ - NPM_RUN=start \ - NPM_CONFIG_PREFIX=$HOME/.npm-global - -ENV PATH=$HOME/node_modules/.bin/:$HOME/.npm-global/bin/:$GOPATH/bin:$M2_HOME/bin:/opt/rh/rh-nodejs8/root/usr/bin:/usr/local/go/bin:$PATH - -RUN mkdir /home/user/traefik ;\ - wget -O /home/user/traefik/traefik "https://github.com/containous/traefik/releases/download/v1.4.3/traefik_linux-amd64"; \ - chmod +x /home/user/traefik/traefik -COPY traefik.toml /home/user/traefik/ -ADD entrypoint.sh /home/user/entrypoint.sh -RUN sudo mkdir /var/run/sshd && \ - sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' && \ - sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_ecdsa_key -N '' && \ - sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_ed25519_key -N '' && \ - npm install -g typescript@2.5.3 typescript-language-server@0.1.4 && \ - sudo chgrp -R 0 ~ && \ - sudo chmod -R g+rwX ~ -WORKDIR /projects -ENTRYPOINT ["/home/user/entrypoint.sh"] -CMD tail -f /dev/null diff --git a/dockerfiles/dev/build.sh b/dockerfiles/dev/build.sh deleted file mode 100755 index fa5a0999528..00000000000 --- a/dockerfiles/dev/build.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2017 Red Hat, Inc. -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# - -base_dir=$(cd "$(dirname "$0")"; pwd) -. "${base_dir}"/../build.include - -init --name:dev "$@" -build diff --git a/dockerfiles/dev/entrypoint.sh b/dockerfiles/dev/entrypoint.sh deleted file mode 100755 index 6fda45fe253..00000000000 --- a/dockerfiles/dev/entrypoint.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2012-2019 Red Hat, Inc. -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# Red Hat, Inc. - initial API and implementation -# -set -e - -export USER_ID=$(id -u) -export GROUP_ID=$(id -g) - -if ! grep -Fq "${USER_ID}" /etc/passwd; then - # current user is an arbitrary - # user (its uid is not in the - # container /etc/passwd). Let's fix that - cat ${HOME}/passwd.template | \ - sed "s/\${USER_ID}/${USER_ID}/g" | \ - sed "s/\${GROUP_ID}/${GROUP_ID}/g" | \ - sed "s/\${HOME}/\/home\/user/g" > /etc/passwd - - cat ${HOME}/group.template | \ - sed "s/\${USER_ID}/${USER_ID}/g" | \ - sed "s/\${GROUP_ID}/${GROUP_ID}/g" | \ - sed "s/\${HOME}/\/home\/user/g" > /etc/group -fi - -is_current_user_sudoer() { - sudo -n true > /dev/null 2>&1 -} - - -if ! is_current_user_sudoer; then - sed -i "s/che-host/che-host.eclipse-che.svc/g" /home/user/traefik/traefik.toml -fi -exec "$@" diff --git a/dockerfiles/dev/traefik.toml b/dockerfiles/dev/traefik.toml deleted file mode 100644 index 328afefb0ae..00000000000 --- a/dockerfiles/dev/traefik.toml +++ /dev/null @@ -1,122 +0,0 @@ -################################################################ -# Global configuration -################################################################ - -# Enable debug mode -# -# Optional -# Default: false -# -debug = true - -# Log level -# -# Optional -# Default: "ERROR" -# - logLevel = "DEBUG" - -# Entrypoints to be used by frontends that do not specify any entrypoint. -# Each frontend can specify its own entrypoints. -# -# Optional -# Default: ["http"] -# -defaultEntryPoints = ["http"] - -# Entrypoints definition -# -# Optional -# Default: -[entryPoints] - [entryPoints.http] - address = ":8085" - [entryPoints.http2] - address = ":8087" - -# Traefik logs -# Enabled by default and log to stdout -# -# Optional -# -[traefikLog] - -# Sets the filepath for the traefik log. If not specified, stdout will be used. -# Intermediate directories are created if necessary. -# -# Optional -# Default: os.Stdout -# -# filePath = "log/traefik.log" - -# Format is either "json" or "common". -# -# Optional -# Default: "common" -# -# format = "common" - -# Enable access logs -# By default it will write to stdout and produce logs in the textual -# Common Log Format (CLF), extended with additional fields. -# -# Optional -# -[accessLog] - -# Sets the file path for the access log. If not specified, stdout will be used. -# Intermediate directories are created if necessary. -# -# Optional -# Default: os.Stdout -# - filePath = "/home/user/traefik/log.txt" - -# Format is either "json" or "common". -# -# Optional -# Default: "common" -# -# format = "common" - -################################################################ -# Web configuration backend -################################################################ - -# Enable web configuration backend -#[web] - -# Web administration port -# -# Required -# -#address = ":8086" - - - -[file] - -[backends] - [backends.backend1] - [backends.backend1.servers.server1] - url = "http://localhost:8080" - [backends.backend2] - [backends.backend2.servers.server1] - url = "http://che-host:8080" -[frontends] - [frontends.frontend2] - priority = 10 - backend = "backend2" - passHostHeader = true - [frontends.frontend2.routes.api] - rule = "PathPrefix:/api/" - [frontends.frontend1] - priority = 5 - backend = "backend1" - passHostHeader = true - [frontends.frontend1.routes.ide] - rule = "PathPrefix: /; AddPrefix: /ide" - [frontends.frontend3] - backend = "backend1" - passHostHeader = true - entrypoints = ["http2"] \ No newline at end of file