Skip to content

Commit

Permalink
Merge branch 'general_docker_improvments(amd64)'
Browse files Browse the repository at this point in the history
  • Loading branch information
SeniorKullken committed Aug 18, 2024
2 parents 5e0f1fb + 0fb674f commit 4fe47f7
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 6 deletions.
5 changes: 3 additions & 2 deletions amd64-jazzy-full-pico/docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
# Maintainer: stefan.kull@gmail.com
# Licens: MIT
# https://github.com/Pet-Series
#----------------------
#

# "jazzy" = ROS2 24.04
# "noble" = Ubuntu 24.04

# More info: https://github.com/Pet-Series/pet_docker
# More info: https://hub.docker.com/repositories/kullken
docker build --tag kullken/ros2_amd64:jazzy-full-pico .
11 changes: 10 additions & 1 deletion amd64-jazzy-full-pico/docker_exec.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/bash
# Start bash in existing container (Status Up/Paused).
#----------------------
# Maintainer: stefan.kull@gmail.com
# Licens: MIT
# https://github.com/Pet-Series

# "jazzy" = ROS2 24.04
# "noble" = Ubuntu 24.04

# More info: https://github.com/Pet-Series/pet_docker
# More info: https://hub.docker.com/repositories/kullken
docker exec -it --env HOSTUSER=$USER jazzy-full-pico-container bash
docker exec -it --env HOSTUSER=$USER jazzy-full-pico-container bash
9 changes: 9 additions & 0 deletions amd64-jazzy-full-pico/docker_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@
# Prerequisite:
# $ docker login -u "kullken" -p "@@@@@@@@" docker.io
#
#----------------------
# Maintainer: stefan.kull@gmail.com
# Licens: MIT
# https://github.com/Pet-Series

# "jazzy" = ROS2 24.04
# "noble" = Ubuntu 24.04

# More info: https://github.com/Pet-Series/pet_docker
# More info: https://hub.docker.com/repositories/kullken
docker push kullken/ros2_amd64:jazzy-full-pico
11 changes: 10 additions & 1 deletion amd64-jazzy-full-pico/docker_rm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/bash
# Remove existing container (Prereq: Status=Exited/Stoped)
#----------------------
# Maintainer: stefan.kull@gmail.com
# Licens: MIT
# https://github.com/Pet-Series

# "jazzy" = ROS2 24.04
# "noble" = Ubuntu 24.04

# More info: https://github.com/Pet-Series/pet_docker
# More info: https://hub.docker.com/repositories/kullken
docker container rm jazzy-full-pico-container
docker container rm jazzy-full-pico-container
36 changes: 34 additions & 2 deletions amd64-jazzy-full-pico/docker_run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
#!/bin/bash
# Run docker image from https://hub.docker.com/repositories/kullken
docker run \
# Run existing Docker Image and create + start a Docker Container
# - AMD64/x86 CPU Architecture
# - ROS Version: ROS2 20.24 LTS (AMD64) aka."jazzy"
# - OS version : Ubuntu 24.04 LTS (AMD64) aka."noble"
# - Source Image = osrf/ros:jazzy-desktop-full
# - Target Container = jazzy-full-container
#
# 1) Mount your local docker-host </home/{$USER}>-folder into the container
# This means your local docker-host ~/bashrc will be executed.
# 2) Mount local docker host </etc/group + /etc/passwd + ...etc.>
# To offer seamless right & user/group ID.
# 3) Mount local docker host </etc/localtime>
# To ensure that the host and container have the same time zone
# 4) Mount local docker host </tmp/.X11-unix>
# To enable GUI/X11 applications inside container
# Needs to be combined with exporting '$DISPLAY' and running '$ xhost local:docker' before starting the conatiner.
#
# --------A few other commands that may be useful to know....
# docker exec -it jazzy-full-container bash
# docker container pause jazzy-full-container
# docker container stop jazzy-full-container
# docker container restart jazzy-full-container
# docker container kill jazzy-full-container
# docker container rm jazzy-full-container
# docker container prune
#----------------------
# Maintainer: stefan.kull@gmail.com
# Licens: MIT
# https://github.com/Pet-Series
#----------------------
# More info: https://github.com/Pet-Series/pet_docker
# More info: https://hub.docker.com/repositories/kullken
xhost local:docker
docker run \
-it \
--privileged \
--name jazzy-full-pico-container \
Expand Down

0 comments on commit 4fe47f7

Please sign in to comment.