File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,14 @@ RUN echo "* soft nproc 20000\n"\
77
88# Simple example on how to extend the image to install Java and maven
99RUN apt-get -qq update && \
10- apt-get install -yq maven default-jdk
10+ apt-get install -yq maven default-jdk acl
1111
12- RUN /opt/couchbase/bin/couchbase-server --stop || \
13- rm -rf /opt/couchbase/var && \
14- chmod -R 777 /opt/couchbase && \
12+ RUN rm -rf /opt/couchbase/var && \
13+ chmod -R g+rwX /opt/couchbase && \
1514 addgroup --gid 33333 gitpod && \
1615 useradd --no-log-init --create-home --home-dir /home/gitpod --shell /bin/bash --uid 33333 --gid 33333 gitpod && \
17- usermod -a -G gitpod,couchbase,sudo gitpod
16+ usermod -a -G gitpod,couchbase,sudo gitpod && \
17+ setfacl -d -m g::rwX /opt/couchbase
18+
1819
19- RUN ls -lR /opt/couchbase/ && /opt/couchbase/bin/couchbase-server --start && sleep 10 && /opt/couchbase/bin/couchbase-server --stop
20- RUN ls -lR /opt/couchbase/ && chown -R gitpod:gitpod /opt/couchbase/var
21-
22- USER gitpod
23-
24- CMD nohup /opt/couchbase/bin/couchbase-server --start & sleep infinity
20+ USER gitpod
You can’t perform that action at this time.
0 commit comments