Commit ffa89092 authored by Alexander Poddubny's avatar Alexander Poddubny Committed by Kelly Guo

Fixes CI pipeline (#204)

After extensions have been renamed, the CI pipeline was still
recognizing previous folder names. This PR fixes the pipeline to only
retrieve the latest updates.
Previously, builds also fail to identify that they are running in docker
and try to set up vscode-related configs.

---------
Co-authored-by: 's avatarKelly Guo <kellyguo123@hotmail.com>
parent 3d7b9cda
...@@ -6,7 +6,7 @@ phases: ...@@ -6,7 +6,7 @@ phases:
- echo "Launching EC2 instance to run tests" - echo "Launching EC2 instance to run tests"
- | - |
INSTANCE_ID=$(aws ec2 run-instances \ INSTANCE_ID=$(aws ec2 run-instances \
--image-id ami-0b3a9d48380433e49 \ --image-id ami-0e6cc441f9f4caab3 \
--count 1 \ --count 1 \
--instance-type g5.2xlarge \ --instance-type g5.2xlarge \
--key-name production/ssh/isaaclab \ --key-name production/ssh/isaaclab \
...@@ -36,7 +36,6 @@ phases: ...@@ -36,7 +36,6 @@ phases:
--availability-zone us-west-2a \ --availability-zone us-west-2a \
--ssh-public-key file://~/.ssh/id_rsa.pub \ --ssh-public-key file://~/.ssh/id_rsa.pub \
--instance-os-user ubuntu --instance-os-user ubuntu
build: build:
commands: commands:
- echo "Running tests on EC2 instance" - echo "Running tests on EC2 instance"
......
...@@ -22,6 +22,15 @@ export ISAACLAB_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && p ...@@ -22,6 +22,15 @@ export ISAACLAB_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && p
# Helper functions # Helper functions
#== #==
# check if running in docker
is_docker() {
[ -f /.dockerenv ] || \
grep -q docker /proc/1/cgroup || \
[[ $(cat /proc/1/comm) == "containerd-shim" ]] || \
grep -q docker /proc/mounts || \
[[ "$(hostname)" == *"."* ]]
}
# extract isaac sim path # extract isaac sim path
extract_isaacsim_path() { extract_isaacsim_path() {
# Use the sym-link path to Isaac Sim directory # Use the sym-link path to Isaac Sim directory
...@@ -291,7 +300,7 @@ while [[ $# -gt 0 ]]; do ...@@ -291,7 +300,7 @@ while [[ $# -gt 0 ]]; do
# check if we are inside a docker container or are building a docker image # check if we are inside a docker container or are building a docker image
# in that case don't setup VSCode since it asks for EULA agreement which triggers user interaction # in that case don't setup VSCode since it asks for EULA agreement which triggers user interaction
if [ -f /.dockerenv ]; then if is_docker; then
echo "[INFO] Running inside a docker container. Skipping VSCode settings setup." echo "[INFO] Running inside a docker container. Skipping VSCode settings setup."
echo "[INFO] To setup VSCode settings, run 'isaaclab -v'." echo "[INFO] To setup VSCode settings, run 'isaaclab -v'."
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment