File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 11FROM couchbase:latest
22
3- RUN rm -rf /opt/couchbase/var/lib && \
4- chmod -R 777 /opt/couchbase && \
5- addgroup --gid 33333 gitpod && \
6- useradd --no-log-init --create-home --home-dir /home/gitpod --shell /bin/bash --uid 33333 --gid 33333 gitpod && \
7- usermod -a -G gitpod,couchbase gitpod && \
8- chown -R gitpod:gitpod /opt/couchbase/var /etc/service /etc/runit/runsvdir/default/couchbase-server/supervise && \
9- sed -i -e 's/couchbase:couchbase/gitpod:gipod/g' -e 's/-ucouchbase/-ugitpod/g' -e 's/"couchbase"/"gitpod"/g' /etc/service/couchbase-server/run
10-
11-
123RUN echo "* soft nproc 20000\n " \
134"* hard nproc 20000\n " \
145"* soft nofile 200000\n " \
@@ -18,4 +9,15 @@ RUN echo "* soft nproc 20000\n"\
189RUN apt-get -qq update && \
1910 apt-get install -yq maven default-jdk
2011
12+ RUN rm -rf /opt/couchbase/var && \
13+ chmod -R 777 /opt/couchbase && \
14+ addgroup --gid 33333 gitpod && \
15+ useradd --no-log-init --create-home --home-dir /home/gitpod --shell /bin/bash --uid 33333 --gid 33333 gitpod && \
16+ usermod -a -G gitpod,couchbase,sudo gitpod
17+
18+ RUN ls -lR /opt/couchbase/ && /opt/couchbase/bin/couchbase-server --start && sleep 10 && /opt/couchbase/bin/couchbase-server --stop
19+ RUN ls -lR /opt/couchbase/ && chown -R gitpod:gitpod /opt/couchbase/var
20+
21+ USER gitpod
2122
23+ CMD nohup /opt/couchbase/bin/couchbase-server --start & sleep infinity
You can’t perform that action at this time.
0 commit comments