Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Development_Environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Montaño Sarria, Andres Felipe
Development_Environment
Commits
f165a664
Commit
f165a664
authored
5 months ago
by
Montaño Sarria, Andres Felipe
Browse files
Options
Downloads
Patches
Plain Diff
Fix Issue with SHELL
parent
d141045b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dockerfiles/devenv.Dockerfile
+6
-6
6 additions, 6 deletions
dockerfiles/devenv.Dockerfile
dockerfiles/ros_entrypoint.sh
+1
-12
1 addition, 12 deletions
dockerfiles/ros_entrypoint.sh
with
7 additions
and
18 deletions
dockerfiles/devenv.Dockerfile
+
6
−
6
View file @
f165a664
...
...
@@ -8,7 +8,7 @@ ENV ROS_DISTRO "${ROS_DISTRO}"
ARG
EXT_SHELL=bash
ENV
EXT_SHELL "${EXT_SHELL}"
ENV
SHELL
=
"/bin/${SHELL}"
ENV
SHELL
"/bin/${
EXT_
SHELL}"
RUN
echo
"Building devenv for ROS"
$ROS_DISTRO
"with shell"
$EXT_SHELL
# Avoid warnings by switching to noninteractive
...
...
@@ -123,10 +123,6 @@ RUN chmod a+x /ros_entrypoint.sh
# Set running in docker for zsh powerlevel10k
ENV
RUNNING_IN_DOCKER true
# Set extra environment variables for ROS2
ENV
ROS_LOCALHOST_ONLY=1
ENV
RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
# Define entrypoint and command
ENTRYPOINT
["/ros_entrypoint.sh"]
CMD
$EXT_SHELL
...
...
@@ -142,7 +138,7 @@ ENV DEBIAN_FRONTEND=
FROM
devenv
as
workspace-extended
# Avoid warnings by switching to noninteractive
ENV
DEBIAN_FRONTEND
=
noninteractive
ENV
DEBIAN_FRONTEND
noninteractive
# Install extra packages ws_dependencies
ARG
PACKAGES=none
...
...
@@ -198,3 +194,7 @@ RUN apt-get update \
# Switch back to dialog for any ad-hoc use of apt-get
ENV
DEBIAN_FRONTEND=
# Define entrypoint and command
ENTRYPOINT
["/ros_entrypoint.sh"]
CMD
$EXT_SHELL
This diff is collapsed.
Click to expand it.
dockerfiles/ros_entrypoint.sh
+
1
−
12
View file @
f165a664
#!/usr/bin/env bash
# Check if the shell is Bash or Zsh
if
[
-n
"
$BASH_VERSION
"
]
;
then
# Bash
source
"/opt/ros/
$ROS_DISTRO
/setup.bash"
elif
[
-n
"
$ZSH_VERSION
"
]
;
then
# Zsh
source
"/opt/ros/
$ROS_DISTRO
/setup.zsh"
else
echo
"Unknown shell. This script is designed for Bash and Zsh."
return
1
fi
source
"/opt/ros/
$ROS_DISTRO
/setup.bash"
exec
"
$@
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment