Skip to content

Commit

Permalink
feat(devcontainer): adjust file permissions
Browse files Browse the repository at this point in the history
Set the default umask to 022 within the devcontainer to ensure new files
are created with read permissions for all users.

Additionally, recursively add read permission to all existing files in
the devcontainer to ensure consistent access.

This improves collaboration and prevents permission issues when working
within the development container.
  • Loading branch information
jcscottiii committed Oct 23, 2024
1 parent faf5a44 commit b9f78bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/post_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Set umask inside the container for new files.
umask 022

# Make sure all files have read everyone for existing files.
chmod -R a+r ./*

# Clean up minikube just in case to ensure a fresh cluster.
make minikube-delete

Expand Down

0 comments on commit b9f78bf

Please sign in to comment.