cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cassandra-website] ossarga commented on a change in pull request #6: Make sure the home directory in the docker container has correct permissions
Date Wed, 29 Apr 2020 12:04:07 GMT

ossarga commented on a change in pull request #6:
URL: https://github.com/apache/cassandra-website/pull/6#discussion_r417262645



##########
File path: Dockerfile
##########
@@ -39,18 +39,19 @@ RUN gem install bundler && \
     bundle install && \
     rm /Gemfile /Gemfile.lock
 
-# Run as build user from here
-USER build
-
 ENV CASSANDRA_DIR="/home/build/cassandra"
 
 # Setup repositories to building the docs
-RUN mkdir -p /home/build/cassandra-site && \
-    git clone https://gitbox.apache.org/repos/asf/cassandra.git ${CASSANDRA_DIR}
+RUN mkdir -p /home/build/cassandra-site
+RUN git clone https://gitbox.apache.org/repos/asf/cassandra.git ${CASSANDRA_DIR}
+
+# hack: give build user rw access, eg on the asf websites jenkins agent
+RUN chmod -R a+rw /home/build/

Review comment:
       LGTM. Let's merge it.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Mime
View raw message