-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·27 lines (20 loc) · 1.78 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
# docker build ./xserver -f ./xserver/Dockerfile -t ngxingyu/xserver
# sudo docker build ./select-index -f ./select-index/Dockerfile -t select-index
## base ros images used by devcontainer and base simulator images
# sudo docker build ./ -f ./devcontainers/melodic/Dockerfile.base -t ros-devcontainer:melodic-base
# sudo docker build ./ -f ./devcontainers/noetic/Dockerfile.base -t ros-devcontainer:noetic-base
sudo docker build ./ -f ./devcontainers/humble/Dockerfile.base -t ros-devcontainer:humble-base
# sudo docker build ./ -f ./devcontainers/melodic/Dockerfile -t ros-devcontainer:melodic-dev
# sudo docker build ./ -f ./devcontainers/noetic/Dockerfile -t ros-devcontainer:noetic-dev
sudo docker build ./ -f ./devcontainers/humble/Dockerfile -t ros-devcontainer:humble-dev
## base simulator images
# sudo docker build simulators/simulator-uuv/ -f simulators/simulator-uuv/Dockerfile.base -t ngxingyu/simulator_uuv_base:latest
# sudo docker build simulators/simulator-vrx/ -f simulators/simul/ator-vrx/Dockerfile.base -t ngxingyu/simulator_vrx_base:latest
sudo docker build simulators/simulator-vrx-gazebosim/ -f simulators/simulator-vrx-gazebosim/Dockerfile.base -t ros-devcontainer:simulator_vrx_gazebosim_base
# allow the container to access our github repos
# eval $(ssh-agent -s)
# ssh-add ~/.ssh/YOUR_PRIVATE_KEY_WITH_GITHUB_ACCESS
# sudo docker build --ssh default=${SSH_AUTH_SOCK} simulators/simulator-uuv/ -f simulators/simulator-uuv/Dockerfile -t simulator_uuv:latest
# sudo docker build --ssh default=${SSH_AUTH_SOCK} simulators/simulator-vrx/ -f simulators/simulator-vrx/Dockerfile -t simulator_vrx:latest
# sudo docker build --ssh default=${SSH_AUTH_SOCK} simulators/simulator-vrx-gazebosim/ -f simulators/simulator-vrx-gazebosim/Dockerfile -t simulator_vrx_gazebosim:latest