Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/deb/dpkg_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ build_package()
exit -1
fi
cd $BUILD_ROOT
dpkg-buildpackage -W -us -uc -rfakeroot
dpkg-buildpackage -W -us -uc -b -rfakeroot
if test $? -ne 0; then
echo "dpkg-build failed"
exit -1
Expand All @@ -184,9 +184,7 @@ build_package()
copy_debfiles()
{
mv ./openrtm2*.deb ..
mv ./openrtm2*.dsc ..
mv ./openrtm2*.changes ..
mv ./openrtm2*.tar.gz ..
}

#==============================
Expand Down
51 changes: 51 additions & 0 deletions scripts/ubuntu_2204/Dockerfile.package
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FROM ubuntu:22.04

ARG VERSION

ENV TZ=Asia/Tokyo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt update\
&& apt install -y --no-install-recommends \
gnupg \
python3 \
python3-all-dev \
wget \
doxygen \
graphviz \
pkg-config \
libssl-dev \
build-essential \
debhelper \
devscripts \
fakeroot \
python3-pip \
python3.10-venv \
git

RUN python3 -m pip install build

RUN wget --no-check-certificate https://openrtm.org/pub/openrtm-keyring.gpg -O /etc/apt/keyrings/openrtm-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/openrtm-keyring.gpg] http://openrtm.org/pub/Linux/ubuntu/ $(cat /etc/os-release | sed -n 's/VERSION_CODENAME=//p') main" | tee /etc/apt/sources.list.d/openrtm.list > /dev/null \
&& apt update \
&& apt install -y --no-install-recommends \
libomniorb4-dev \
omniidl \
omniorb-nameserver \
omniidl-python3 \
python3-omniorb-omg

COPY OpenRTM-aist-Python /root/OpenRTM-aist-Python
WORKDIR /root/OpenRTM-aist-Python
RUN python3 -m build \
&& cd dist \
&& python3 -m pip install --no-index --prefix=./ openrtm_aist_python-${VERSION}-py3-none-any.whl \
&& mv local/lib/python3*/dist-packages/OpenRTM_aist/examples . \
&& mv local/lib/python3*/dist-packages/* . \
&& cp -r ../packages/deb/conf packages/deb/

WORKDIR /root/OpenRTM-aist-Python/dist/packages/deb
RUN mkdir -p /root/python-deb-pkgs \
&& chmod 775 dpkg_build.sh \
&& ./dpkg_build.sh \
&& cp ../openrtm* /root/python-deb-pkgs/
50 changes: 50 additions & 0 deletions scripts/ubuntu_2404/Dockerfile.package
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FROM ubuntu:24.04

ARG VERSION

ENV TZ=Asia/Tokyo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt update\
&& apt install -y --no-install-recommends \
gnupg \
python3 \
python3-all-dev \
wget \
doxygen \
graphviz \
pkg-config \
libssl-dev \
build-essential \
debhelper \
devscripts \
fakeroot \
python3-pip \
python3-venv \
python3-build \
git

RUN wget --no-check-certificate https://openrtm.org/pub/openrtm-keyring.gpg -O /etc/apt/keyrings/openrtm-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/openrtm-keyring.gpg] http://openrtm.org/pub/Linux/ubuntu/ $(cat /etc/os-release | sed -n 's/VERSION_CODENAME=//p') main" | tee /etc/apt/sources.list.d/openrtm.list > /dev/null \
&& apt update \
&& apt install -y --no-install-recommends \
libomniorb4-dev \
omniidl \
omniorb-nameserver \
omniidl-python3 \
python3-omniorb-omg

COPY OpenRTM-aist-Python /root/OpenRTM-aist-Python
WORKDIR /root/OpenRTM-aist-Python
RUN python3 -m build \
&& cd dist \
&& python3 -m pip install --no-index --prefix=./ openrtm_aist_python-${VERSION}-py3-none-any.whl \
&& mv local/lib/python3*/dist-packages/OpenRTM_aist/examples . \
&& mv local/lib/python3*/dist-packages/* . \
&& cp -r ../packages/deb/conf packages/deb/

WORKDIR /root/OpenRTM-aist-Python/dist/packages/deb
RUN mkdir -p /root/python-deb-pkgs \
&& chmod 775 dpkg_build.sh \
&& ./dpkg_build.sh \
&& cp ../openrtm* /root/python-deb-pkgs/
Loading