Skip to content

Commit 895ab36

Browse files
committed
Still trying to fix the file permission issues during server startup
1 parent 23da945 commit 895ab36

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.gitpod.Dockerfile

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff 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
99
RUN 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

0 commit comments

Comments
 (0)