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

Yuanzhou/deploy tweaks #331

Merged
merged 3 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.2
2.2.3
12 changes: 7 additions & 5 deletions hubmap-auth/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,19 @@ module_hotfixes=true\n'\
# 1 - Install the prerequisites
# 2 - By default, the repository for stable nginx packages is used. We would like to use mainline nginx packages
# 3 - Install nginx (using the custom yum repo specified earlier)
# 4 - Overwrite the nginx.conf with ours to run nginx as non-root
# 5 - Install flask app dependencies with pip (pip3 also works)
# 6 - Make the start script executable
# 7 - Clean all yum cache
# 4 - Remove the default nginx config file
# 5 - Overwrite the nginx.conf with ours to run nginx as non-root
# 6 - Install flask app dependencies with pip (pip3 also works)
# 7 - Make the start script executable
# 8 - Clean all yum cache
RUN yum install -y yum-utils && \
yum-config-manager --enable nginx-mainline && \
yum install -y nginx && \
rm /etc/nginx/conf.d/default.conf && \
mv nginx.conf /etc/nginx/nginx.conf && \
pip install -r src/requirements.txt && \
chmod +x start.sh && \
yum clean all
yum clean all

# The EXPOSE instruction informs Docker that the container listens on the specified network ports at runtime.
# EXPOSE does not make the ports of the container accessible to the host.
Expand Down
3 changes: 1 addition & 2 deletions hubmap-auth/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ if [ $? -ne 0 ]; then
fi

# When running Nginx as a non-root user, we need to create the pid file
# and give read and write access to a few directories
# and give read and write access to /var/run/nginx.pid, /var/cache/nginx, and /var/log/nginx
# In individual nginx *.conf, also don't listen on ports 80 or 443 because
# only root processes can listen to ports below 1024
touch /var/run/nginx.pid
chown -R hive:hive /var/run/nginx.pid
chown -R hive:hive /var/cache/nginx
chown -R hive:hive /var/log/nginx
chown -R hive:hive /var/lib/nginx

# No SSL in localhost mode
if [ $DEPLOY_MODE != "localhost" ]; then
Expand Down