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

Restore postStartCommand.sh for backward compatibility #93

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
18 changes: 18 additions & 0 deletions setup/src/common/scripts/postStartCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0

# Put your "post start" actions here:
BjoernAtBosch marked this conversation as resolved.
Show resolved Hide resolved

.devcontainer/scripts/upgrade-cli.sh
2 changes: 1 addition & 1 deletion setup/src/cpp/common/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
// "forwardPorts": [],
// Use 'onCreateCommand' to run commands when the container is created.
"onCreateCommand": "bash .devcontainer/scripts/onCreateCommand.sh",
"postStartCommand": "bash .devcontainer/scripts/upgrade-cli.sh",
"postStartCommand": "bash .devcontainer/scripts/postStartCommand.sh",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
2 changes: 1 addition & 1 deletion setup/src/python/common/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
}
},
"onCreateCommand": "bash .devcontainer/scripts/onCreateCommand.sh",
"postStartCommand": "bash .devcontainer/scripts/upgrade-cli.sh",
"postStartCommand": "bash .devcontainer/scripts/postStartCommand.sh",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
Loading