Skip to content
Open
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 Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/php:8.3
FROM mcr.microsoft.com/devcontainers/php:8.4

# Change default umask and add user to web group so we can share write permission on web files
# Configure pam_umask to set umask to 002 (works regardless of /etc/login.defs content)
Expand Down
5 changes: 5 additions & 0 deletions local/etc/uceap.d/devcontainer_on_create.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function devcontainer_on_create() {
_cwd_workspace

# Change default umask and add user to web group so we can share write permission on web files
sed -i 's/^#umask\s*022/umask 002/' ~/.profile
echo "umask 002" >>~/.zshrc
Expand Down Expand Up @@ -91,6 +93,9 @@ function devcontainer_on_create() {
if [ -x .devcontainer/onCreate.sh ]; then
.devcontainer/onCreate.sh
fi

# Leave the shellServer with a valid cwd for any subsequent step (see issue #45)
cd "$WORKSPACE_FOLDER"
}

_devcontainer_on_create_desc='runs when the devcontainer is created'
Expand Down
5 changes: 5 additions & 0 deletions local/etc/uceap.d/devcontainer_post_create.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function devcontainer_post_create() {
_cwd_workspace

# set global ServerName so that apachectl isn't chatty
if [[ -n "$CODESPACE_NAME" ]]; then
SERVER_NAME="$CODESPACE_NAME-8080.app.github.dev"
Expand Down Expand Up @@ -27,6 +29,9 @@ function devcontainer_post_create() {
if [ -x .devcontainer/postCreate.sh ]; then
.devcontainer/postCreate.sh
fi

# Leave the shellServer with a valid cwd for any subsequent step (see issue #45)
cd "$WORKSPACE_FOLDER"
}

_devcontainer_post_create_desc='runs after the devcontainer is created'
Expand Down
3 changes: 3 additions & 0 deletions local/etc/uceap.d/devcontainer_update_content.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ function devcontainer_update_content() {
if [ -x .devcontainer/updateContent.sh ]; then
.devcontainer/updateContent.sh
fi

# Leave the shellServer with a valid cwd for any subsequent step (see issue #45)
cd "$WORKSPACE_FOLDER"
}

_devcontainer_update_content_desc='runs when devcontainer content needs updating'
Expand Down
Loading