Skip to content

Commit 4d77474

Browse files
committed
Fixing couchbase start issues for the gitpod user
1 parent 367b322 commit 4d77474

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.gitpod.Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
FROM couchbase:latest
22

3-
RUN echo "couchbase soft nproc 20000\n"\
4-
"couchbase hard nproc 20000\n"\
5-
"couchbase soft nofile 200000\n"\
6-
"couchbase hard nofile 200000\n" >> /etc/security/limits.conf
3+
RUN addgroup --gid 33333 gitpod && \
4+
useradd --no-log-init --create-home --home-dir /home/gitpod --shell /bin/bash --uid 33333 --gid 33333 gitpod && \
5+
usermod -a -G gitpod,couchbase gitpod && \
6+
chmod -R g+rwx /opt/couchbase
7+
8+
RUN echo "* soft nproc 20000\n"\
9+
"* hard nproc 20000\n"\
10+
"* soft nofile 200000\n"\
11+
"* hard nofile 200000\n" >> /etc/security/limits.conf
712

813
#Simple example on how to extend the image to install Java and maven
914
RUN apt-get -qq update && \

0 commit comments

Comments
 (0)