-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from lucimobility/main
New 2.0.0 release
- Loading branch information
Showing
28 changed files
with
474 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Create and Deploy Docker | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
DEV: | ||
type: boolean | ||
description: "If the DEV image should be build" | ||
required: true | ||
default: false | ||
RELEASE: | ||
type: boolean | ||
description: "If the public RELEASE image should be build" | ||
required: true | ||
default: false | ||
|
||
|
||
env: | ||
REPO: ${{github.event.repository.name}} | ||
JF_URL: ${{secrets.JF_URL}} | ||
JF_ACCESS_TOKEN: ${{secrets.ARTIFACTORY_TOKEN}} | ||
|
||
jobs: | ||
Build-and-deploy-dev: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: jfrog/setup-jfrog-cli@v3 | ||
|
||
- name: Checkout SDK Branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
path: ${{env.REPO}} | ||
|
||
- name: Build and deploy dev | ||
if: ${{ github.event.inputs.DEV == 'true'}} | ||
run: | | ||
cd ${{env.REPO}} | ||
./build-and-deploy-dockers.sh -d | ||
shell: bash | ||
|
||
Build-and-deploy-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: jfrog/setup-jfrog-cli@v3 | ||
- name: Checkout SDK Branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
path: ${{env.REPO}} | ||
|
||
- name: Build and deploy release | ||
if: ${{ github.event.inputs.RELEASE == 'true' }} | ||
run: | | ||
cd ${{env.REPO}} | ||
./build-and-deploy-dockers.sh -r | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
while getopts 'dr' flag; | ||
do | ||
case "${flag}" in | ||
d) development=true;; | ||
r) release=true;; | ||
esac | ||
done | ||
|
||
# Get current path of this file | ||
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) | ||
|
||
if [ "$development" = true ]; then | ||
echo "Development building..." | ||
cd $parent_path/development | ||
# Build development image | ||
docker build -t luci.jfrog.io/ros2-sdk-docker-local/luci-sdk-development-image:latest . | ||
# Push development image to jfrog | ||
jf docker push luci.jfrog.io/ros2-sdk-docker-local/luci-sdk-development-image:latest | ||
fi | ||
|
||
if [ "$release" = true ]; then | ||
echo "Release building..." | ||
cd $parent_path/release | ||
# Build release image | ||
docker build -t luci.jfrog.io/ros2-sdk-docker-local/luci-ros2-sdk:latest . | ||
# Push release image to jfrog | ||
jf docker push luci.jfrog.io/ros2-sdk-docker-local/luci-ros2-sdk:latest | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
This folder is used by Github actions to auto build the SDK documentation that is hosted at https://lucimobility.github.io/luci-sdk-docs/ | ||
|
||
# Building | ||
|
||
This docker container is by github actions to build the docs site. Building should only be needed if updating tools needed for docs generation. | ||
|
||
## Building manually | ||
|
||
In order to build this docker file please run the following commands | ||
1. git clone this repository | ||
2. `cd deployment-scripts` | ||
3. `docker build -t luci.jfrog.io/ros2-sdk-docker-local/sdk-docs-deployment:latest .` | ||
|
||
# Using (FOR LUCI EMPLOYEES) | ||
|
||
In order for this image to be used in the github actions it needs to be uploaded to the artifactory in jfrog. | ||
`docker push luci.jfrog.io/ros2-sdk-docker-local/sdk-docs-deployment:latest` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Docker image for developers adding / releasing packages | ||
FROM ubuntu:22.04 | ||
|
||
# Set env variables used duing install of gRPC | ||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
MY_INSTALL_DIR=/usr | ||
|
||
WORKDIR /root | ||
|
||
# General install stuff | ||
RUN apt update \ | ||
&& apt install -y \ | ||
cmake \ | ||
vim \ | ||
gdb \ | ||
build-essential \ | ||
autoconf \ | ||
libtool \ | ||
pkg-config \ | ||
libspdlog-dev \ | ||
curl \ | ||
gnupg \ | ||
lsb-release \ | ||
git \ | ||
automake \ | ||
make \ | ||
g++ \ | ||
unzip \ | ||
dpkg-sig \ | ||
&& apt-get clean | ||
|
||
# Locales | ||
RUN apt install locales \ | ||
&& locale-gen en_US en_US.UTF-8 \ | ||
&& update-locale LC_ALL=en_US.UTF-8 LAND=en_US.UTF-8 \ | ||
&& export LANG=en_US.UTF-8 | ||
|
||
|
||
# Add ROS repo | ||
RUN apt update \ | ||
&& apt upgrade -y \ | ||
&& curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg \ | ||
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null | ||
|
||
# Install (static) gRPC with protobuf, we can use versions newer then the ones used by LUCI because ite regenerated at compile time | ||
RUN git clone -b v1.56.2 https://github.com/grpc/grpc grpc \ | ||
&& cd grpc \ | ||
&& git submodule update --init \ | ||
&& mkdir -p cmake/build \ | ||
&& cd cmake/build \ | ||
&& cmake -DgRPC_INSTALL=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DgRPC_BUILD_TESTS=OFF \ | ||
-DgRPC_PROTOBUF_PROVIDER=module \ | ||
-DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \ | ||
../.. \ | ||
&& make -j$(nproc) \ | ||
&& make install | ||
|
||
# Install ROS2 Humble for LTS | ||
RUN apt update \ | ||
&& apt install -y ros-dev-tools \ | ||
ros-humble-desktop \ | ||
python3-bloom \ | ||
python3-rosdep \ | ||
fakeroot \ | ||
debhelper \ | ||
dh-python \ | ||
&& apt-get clean | ||
|
||
|
||
# Install Foxglove support | ||
RUN apt install ros-humble-foxglove-bridge | ||
|
||
# Add ROS2 sources to terminal by default | ||
RUN echo source "/opt/ros/humble/setup.bash" >> /root/.bashrc |
Oops, something went wrong.