Skip to content

Commit 12d912c

Browse files
committed
Still trying to fix the file permission issues during server startup
1 parent 897f28b commit 12d912c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.gitpod.Dockerfile

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

3-
RUN addgroup --gid 33333 gitpod && \
3+
RUN rm -rf /opt/couchbase/var/lib && \
4+
chmod -R 777 /opt/couchbase && \
5+
addgroup --gid 33333 gitpod && \
46
useradd --no-log-init --create-home --home-dir /home/gitpod --shell /bin/bash --uid 33333 --gid 33333 gitpod && \
57
usermod -a -G gitpod,couchbase gitpod && \
6-
rm -rf /opt/couchbase/var/lib && \
7-
chmod -R g+rwx /opt/couchbase && \
8-
mkdir /opt/couchbase/gitpod && \
9-
chown gitpod:gitpod /opt/couchbase/gitpod && \
10-
sed -i 's/var/gitpod/g' /opt/couchbase/bin/couchbase-server
8+
chown -R gitpod:gitpod /opt/couchbase/var
119

1210
RUN echo "* soft nproc 20000\n"\
1311
"* hard nproc 20000\n"\
@@ -17,3 +15,5 @@ RUN echo "* soft nproc 20000\n"\
1715
#Simple example on how to extend the image to install Java and maven
1816
RUN apt-get -qq update && \
1917
apt-get install -yq maven default-jdk
18+
19+
USER gitpod

0 commit comments

Comments
 (0)