Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HWORKS-1671] Make certain directories 777 so RonDB Pods can run as any user other than 1000 #92

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ RUN mkdir $BENCHMARKS_DIR && cd $BENCHMARKS_DIR \
# Avoid changing files if they are already owned by mysql; otherwise image size doubles
RUN chown mysql:mysql --from=root:root -R $HOPSWORK_DIR /home/mysql

# These directories have to have 777 permissions if we want to
# run RonDB Pods as any user
RUN chmod 777 $RONDB_DATA_DIR \
&& chmod 777 $RONDB_DATA_DIR/ndb \
&& chmod 777 $BACKUP_DATA_DIR \
&& chmod 777 $HOPSWORK_DIR/docker/rondb_standalone \
&& chmod -R 777 $MYSQLD_DATA_DIR

ENTRYPOINT ["./docker/rondb_standalone/entrypoints/entrypoint.sh"]
EXPOSE 3306 33060 11860 1186 4406 5406
CMD ["mysqld"]