File tree Expand file tree Collapse file tree 8 files changed +59
-38
lines changed Expand file tree Collapse file tree 8 files changed +59
-38
lines changed Original file line number Diff line number Diff line change 3
3
"name" : " Sailbot Workspace" ,
4
4
"dockerComposeFile" : [
5
5
// Uncomment the files containing the programs you need
6
- " docker-compose.db.yml" , // mongodb
7
6
// "docker-compose.docs.yml", // docs
8
- // "docker-compose.website.yml", // website
7
+ " docker-compose.website.yml" , // website
9
8
10
9
" docker-compose.yml"
11
10
],
12
11
"forwardPorts" : [
13
- 3005 , // website
14
12
8000 // docs
15
13
],
16
14
"service" : " sailbot-workspace" ,
19
17
"containerEnv" : {
20
18
"LIBGL_ALWAYS_SOFTWARE" : " 1" // Needed for software rendering of opengl
21
19
},
20
+ "postCreateCommand" : " ./setup.sh" ,
22
21
// Set *default* container specific settings.json values on container create.
23
22
"customizations" : {
24
23
"codespaces" : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ services:
7
7
build :
8
8
context : .
9
9
dockerfile : Dockerfile
10
+ ports :
11
+ - " 3005:3005"
10
12
volumes :
11
13
- ..:/workspaces/sailbot_workspace:cached
12
14
- sailbot-new-project-bashhistory:/home/ros/commandhistory:delegated
@@ -22,6 +24,23 @@ services:
22
24
- seccomp:unconfined
23
25
- apparmor:unconfined
24
26
27
+ # URL: mongodb://localhost:27017
28
+ mongodb :
29
+ image : mongo:7
30
+ restart : unless-stopped
31
+ volumes :
32
+ - mongodb-data:/data/db:delegated
33
+
34
+ # Runs on the same network as the workspace container, allows "forwardPorts" in devcontainer.json function.
35
+ network_mode : service:sailbot-workspace
36
+
37
+ # Uncomment to change startup options
38
+ # environment:
39
+ # MONGO_INITDB_ROOT_USERNAME: root
40
+ # MONGO_INITDB_ROOT_PASSWORD: example
41
+ # MONGO_INITDB_DATABASE: your-database-here
42
+
25
43
volumes :
44
+ mongodb-data :
26
45
sailbot-new-project-bashhistory :
27
46
sailbot-new-project-roslog :
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ runs:
14
14
steps :
15
15
- name : Build Containers
16
16
shell : bash
17
- run : docker- compose -f .devcontainer/docker-compose.yml build
17
+ run : docker compose -f .devcontainer/docker-compose.yml build
18
18
19
19
- name : Run Containers
20
20
shell : bash
21
- run : docker- compose -f .devcontainer/docker-compose.yml up -d
21
+ run : docker compose -f .devcontainer/docker-compose.yml up -d
22
22
23
23
- name : Run Tests
24
24
shell : bash
25
- run : docker- compose -f .devcontainer/docker-compose.yml exec -T sailbot-workspace /bin/bash -c "export LINTER=${{ inputs.linter}} && export DISABLE_VCS=${{ inputs.disable_vcs }} && cd /workspaces/sailbot_workspace && .github/actions/ament-lint/run.sh"
25
+ run : docker compose -f .devcontainer/docker-compose.yml exec -T sailbot-workspace /bin/bash -c "export LINTER=${{ inputs.linter}} && export DISABLE_VCS=${{ inputs.disable_vcs }} && cd /workspaces/sailbot_workspace && .github/actions/ament-lint/run.sh"
Original file line number Diff line number Diff line change 23
23
repository : UBCSailbot/custom_interfaces
24
24
path : src/custom_interfaces
25
25
26
+ - name : Checkout network_systems ROS package
27
+ if : ${{ inputs.repository != 'sailbot_workspace' && inputs.repository == 'local_pathfinding' }}
28
+ uses : actions/checkout@v4
29
+ with :
30
+ repository : UBCSailbot/network_systems
31
+ path : src/network_systems
32
+
33
+ - name : Checkout website ROS package
34
+ if : ${{ inputs.repository != 'sailbot_workspace' && inputs.repository == 'local_pathfinding' }}
35
+ uses : actions/checkout@v4
36
+ with :
37
+ repository : UBCSailbot/website
38
+ path : src/website
39
+
26
40
- name : Checkout virtual_iridium repository
27
- if : ${{ inputs.repository != 'sailbot_workspace' && inputs.repository == 'network_systems' }}
41
+ if : ${{ inputs.repository != 'sailbot_workspace' && ( inputs.repository == 'network_systems' || inputs.repository == 'local_pathfinding') }}
28
42
uses : actions/checkout@v4
29
43
with :
30
44
repository : UBCSailbot/virtual_iridium
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ runs:
11
11
steps :
12
12
- name : Build Containers
13
13
shell : bash
14
- run : docker- compose -f .devcontainer/docker-compose.yml build
14
+ run : docker compose -f .devcontainer/docker-compose.yml build
15
15
16
16
- name : Run Containers
17
17
shell : bash
18
- run : docker- compose -f .devcontainer/docker-compose.yml up -d
18
+ run : docker compose -f .devcontainer/docker-compose.yml up -d
19
19
20
20
- name : Run Tests
21
21
shell : bash
22
- run : docker- compose -f .devcontainer/docker-compose.yml exec -T sailbot-workspace /bin/bash -c "export DISABLE_VCS=${{ inputs.disable_vcs }} && cd /workspaces/sailbot_workspace && .github/actions/clang-tidy/run.sh"
22
+ run : docker compose -f .devcontainer/docker-compose.yml exec -T sailbot-workspace /bin/bash -c "export DISABLE_VCS=${{ inputs.disable_vcs }} && cd /workspaces/sailbot_workspace && .github/actions/clang-tidy/run.sh"
Original file line number Diff line number Diff line change @@ -9,14 +9,17 @@ inputs:
9
9
runs :
10
10
using : " composite"
11
11
steps :
12
- - name : Build Containers
12
+ # TODO: remove once monorepo and combine website docker compose into main one
13
+ - name : Setup Code
13
14
shell : bash
14
- run : docker-compose -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.db.yml build
15
+ run : |
16
+ docker compose -f .devcontainer/docker-compose.yml up -d
17
+ docker compose -f .devcontainer/docker-compose.yml exec -T sailbot-workspace /bin/bash -c "export DISABLE_VCS=${{ inputs.disable_vcs }} && cd /workspaces/sailbot_workspace && ./setup.sh"
15
18
16
19
- name : Run Containers
17
20
shell : bash
18
- run : docker- compose -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.db .yml up -d
21
+ run : docker compose -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.website .yml up -d
19
22
20
23
- name : Run Tests
21
24
shell : bash
22
- run : docker- compose -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.db .yml exec -T sailbot-workspace /bin/bash -c "export DISABLE_VCS=${{ inputs.disable_vcs }} && cd /workspaces/sailbot_workspace && .github/actions/test/run.sh"
25
+ run : docker compose -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.website .yml exec -T sailbot-workspace /bin/bash -c "export DISABLE_VCS=${{ inputs.disable_vcs }} && cd /workspaces/sailbot_workspace && .github/actions/test/run.sh"
Original file line number Diff line number Diff line change @@ -13,7 +13,16 @@ trap 'exit' INT TERM
13
13
trap ' signal_handler' EXIT
14
14
15
15
if [ -f install/local_setup.bash ]; then source install/local_setup.bash; fi
16
- if [ -d src/network_systems ]; then ./run_virtual_iridium.sh & > /dev/null & fi
16
+
17
+ NET_DIR=src/network_systems
18
+ if [ -d $NET_DIR ]; then
19
+ ./run_virtual_iridium.sh & > /dev/null &
20
+ pushd $NET_DIR
21
+ ./scripts/sailbot_db sailbot_db --clear
22
+ ./scripts/sailbot_db sailbot_db --populate
23
+ popd
24
+ fi
25
+
17
26
colcon test --packages-ignore virtual_iridium --merge-install --event-handlers console_cohesion+
18
27
colcon test-result
19
28
exit 0
You can’t perform that action at this time.
0 commit comments