Skip to content

Commit b313e61

Browse files
committedOct 8, 2024
[HWORKS-1671] Make certain directories 777 so RonDB Pods can run as any user other than 1000
1 parent 6d13246 commit b313e61

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ RUN mkdir $BENCHMARKS_DIR && cd $BENCHMARKS_DIR \
142142
# Avoid changing files if they are already owned by mysql; otherwise image size doubles
143143
RUN chown mysql:mysql --from=root:root -R $HOPSWORK_DIR /home/mysql
144144

145+
# These directories have to have 777 permissions if we want to
146+
# run RonDB Pods as any user
147+
RUN chmod 777 $RONDB_DATA_DIR \
148+
&& chmod 777 $RONDB_DATA_DIR/ndb \
149+
&& chmod 777 $BACKUP_DATA_DIR \
150+
&& chmod 777 $HOPSWORK_DIR/docker/rondb_standalone \
151+
&& chmod -R 777 $MYSQLD_DATA_DIR
152+
145153
ENTRYPOINT ["./docker/rondb_standalone/entrypoints/entrypoint.sh"]
146154
EXPOSE 3306 33060 11860 1186 4406 5406
147155
CMD ["mysqld"]

0 commit comments

Comments
 (0)