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
12 changes: 6 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "DevEnv",
"image": "ghcr.io/roboeagles4828/developer-environment:7",
"image": "ghcr.io/gold-rush-robotics/dev_env:5",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace/DevEnv,type=bind",
"workspaceFolder": "/workspace/DevEnv",
"containerEnv": {
"SHELL": "/usr/bin/zsh",
"SHELL": "zsh",
"ROS_DOMAIN_ID": "0",
"FASTRTPS_DEFAULT_PROFILES_FILE": "/usr/local/share/middleware_profiles/rtps_udp_profile.xml",
"WORKSPACE_LOCAL_PATH": "${localWorkspaceFolder}",
Expand All @@ -16,14 +16,14 @@
},

"postCreateCommand": "sh .devcontainer/postCreate.sh",
"postStartCommand": " sh .devcontainer/postStart.sh",
// "postStartCommand": " sh .devcontainer/postStart.sh",
"initializeCommand": "sh .devcontainer/init.sh",
"securityOpt": [ "seccomp=unconfined" ],
"capAdd": ["SYS_PTRACE"],
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", // docker
"source=${localEnv:HOME}/docker/vscode,target=/home/admin/.vscode-server,type=bind", // vscode
"source=${localEnv:HOME}/.ssh,target=/home/admin/.ssh,type=bind" // vscode
// "source=${localEnv:HOME}/docker/vscode,target=/home/admin/.vscode-server,type=bind", // vscode
// "source=${localEnv:HOME}/.ssh,target=/home/admin/.ssh,type=bind" // vscode
],
"runArgs": [
"--privileged",
Expand All @@ -37,11 +37,11 @@
"extensions": [
"ms-azuretools.vscode-docker",
"ms-iot.vscode-ros",
"GitHub.copilot",
"eamodio.gitlens",
"appulate.filewatcher",
"formulahendry.code-runner",
]
}
}

}
10 changes: 5 additions & 5 deletions .devcontainer/init.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Pull the actual image so it is saved locally
docker pull ghcr.io/roboeagles4828/developer-environment:7
mkdir -p ~/docker/vscode
echo "Display to use: $DISPLAY"
#!/bin/bash
# Pull the actual image so it is saved locally
docker pull ghcr.io/gold-rush-robotics/dev_env:5
mkdir -p ~/docker/vscode
echo "Display to use: $DISPLAY"
30 changes: 7 additions & 23 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
#!/bin/bash
echo "source /opt/ros/humble/setup.bash"

git config --global core.filemode false
git config --global user.email "git@swiftcreekrobotics.onmicrosoft.com"
git config --global user.name "roboeagles"
git config devcontainers-theme.show-dirty 1
echo "source /opt/ros/jazzy/setup.zsh" | sudo tee -a ~/.zshrc > /dev/null
echo 'export ZSH="$HOME/.oh-my-zsh"' | sudo tee -a ~/.zshrc > /dev/null
sed -i 's/ZSH_THEME="devcontainers"/ZSH_THEME="eastwood"/' ~/.zshrc
echo "source /opt/ros/jazzy/setup.zsh" | sudo tee -a ~/.zshrc > /dev/null
echo "export ROS_DISTRO=jazzy" | sudo tee -a ~/.zshrc > /dev/null
echo "export RCUTILS_COLORIZED_OUTPUT=1" | sudo tee -a ~/.zshrc > /dev/null
echo 'complete -o nospace -o default -F _python_argcomplete "ros2"' | sudo tee -a ~/.zshrc > /dev/null
echo 'alias python="python3"' | sudo tee -a ~/.zshrc > /dev/null

echo "source /opt/ros/humble/setup.zsh" >> ~/.zshrc
echo "source /home/admin/workspaces/rtab_ws/install/setup.zsh" >> ~/.zshrc
# echo "if [ ! -d /workspaces/edna2023/install ]; then" >> ~/.zshrc
echo "echo -e 'No install folder found remember to build with ctrl + shift + b\n';" >> ~/.zshrc
# echo "else source /workspaces/edna2023/install/setup.zsh; fi" >> ~/.zshrc
echo "export ROS_DISTRO=humble" >> ~/.zshrc
echo "export RCUTILS_COLORIZED_OUTPUT=1" >> ~/.zshrc
echo 'complete -o nospace -o default -F _python_argcomplete "ros2"' >> ~/.zshrc
echo 'alias python="python3"' >> ~/.zshrc


# Update apt list and rosdep
# Skipping since this will be done recently in docker file
# sudo apt-get update
# rosdep update --rosdistro=humble
# rosdep install --from-paths src --ignore-src -r -y
# rm -rf /workspaces/edna2023/install /workspaces/edna2023/build /workspaces/edna2023/log
26 changes: 0 additions & 26 deletions .devcontainer/postStart.sh

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

Binary file not shown.
Loading