Closed awsompankaj closed 3 years ago
Dockerfile for omnidb
FROM alpine:3.11
MAINTAINER Taivo Käsper <taivo.kasper@gmail.com>
ENV OMNIDB_VERSION 2.17.0
RUN apk add --no-cache --virtual .build-deps curl unzip g++ python3-dev \
&& apk add --no-cache make wget llvm \
&& apk add --no-cache --update python3 \
&& pip3 install --upgrade pip \
&& apk add postgresql-dev libffi-dev \
&& pip3 install psycopg2 \
&& pip3 install cffi \
&& curl -Lo /tmp/OmniDB.zip https://github.com/OmniDB/OmniDB/archive/${OMNIDB_VERSION}.zip \
&& unzip /tmp/OmniDB.zip -d /opt/ \
&& rm -f /tmp/OmniDB.zip \
&& mkdir /etc/omnidb \
&& cd /opt/OmniDB-${OMNIDB_VERSION} \
&& pip3 install cherrypy \
&& pip3 install -r requirements.txt \
&& apk del .build-deps \
&& find /usr/local -name '*.a' -delete \
&& addgroup -S omnidb && adduser -S omnidb -G omnidb \
&& chown -R omnidb:omnidb /opt/OmniDB-${OMNIDB_VERSION} \
&& chown -R omnidb:omnidb /etc/omnidb
USER omnidb
EXPOSE 8080 25482 80
WORKDIR /opt/OmniDB-${OMNIDB_VERSION}/OmniDB
ENTRYPOINT ["python3", "omnidb-server.py", "--host=127.0.0.1", "--port=8080", "--wsport=25482", "--ewsport=80", "-d", "/etc/omnidb"]
Dockerfile for nginx
FROM ubuntu:16.04
MAINTAINER Pankaj Sharma
RUN apt-get update \
&& apt-get install -y nginx \
&& apt-get clean \
&& apt-get install -y telnet vim \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& rm -rf /etc/nginx/sites-available/default
COPY my.conf /etc/nginx/conf.d/
EXPOSE 80
EXPOSE 2000
EXPOSE 25482
CMD ["nginx", "-g", "daemon off;"]
#############################################
if we run same containers as deployment on same kubernetes cluster,they are working fine.
@awsompankaj have you tried to restart a workspace in debug mode to get more info?
I was not able to start a workspace with docker.io/mongo on che.openshift.io because of mkdir pod failure, but after I replaced it with mongo image we use in our devfiles, I've got the following:
I assume your logs may be different but I hope debug mode will help you and us understand the issue better.
Issues go stale after 180
days of inactivity. lifecycle/stale
issues rot after an additional 7
days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale
in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen
label to avoid stale mode.
My custom stack which is running fine on eclipse che hosted on OCP 3.11 is running fine.
the same stack when i run on echipse che hosted on kubernetes cluster it is failing.
below is the devfile.