Skip to content

Devadv 1705 gitpod startup env #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM couchbase:latest

RUN echo "* soft nproc 20000\n"\
"* hard nproc 20000\n"\
"* soft nofile 200000\n"\
"* hard nofile 200000\n" >> /etc/security/limits.conf
"* hard nproc 20000\n"\
"* soft nofile 200000\n"\
"* hard nofile 200000\n" >> /etc/security/limits.conf

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive &&\
apt-get install -y wget &&\
Expand All @@ -18,9 +18,12 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive &&\
export FLASK_ENV=development

RUN addgroup --gid 33333 gitpod && \
useradd --no-log-init --create-home --home-dir /home/gitpod --shell /bin/bash --uid 33333 --gid 33333 gitpod && \
usermod -a -G gitpod,couchbase,sudo gitpod && \
echo 'gitpod ALL=(ALL) NOPASSWD:ALL'>> /etc/sudoers
useradd --no-log-init --create-home --home-dir /home/gitpod --shell /bin/bash --uid 33333 --gid 33333 gitpod && \
usermod -a -G gitpod,couchbase,sudo gitpod && \
echo 'gitpod ALL=(ALL) NOPASSWD:ALL'>> /etc/sudoers

COPY startcb.sh /opt/couchbase/bin/startcb.sh
USER gitpod
ENV PYTHONUSERBASE=/workspace/.pip-modules
ENV PATH=$PYTHONUSERBASE/bin:$PATH
ENV PIP_USER=yes