Skip to content

Commit

Permalink
Merge pull request #6 from Alpaca-zip/feature/dockerfile
Browse files Browse the repository at this point in the history
Feature/dockerfile
  • Loading branch information
Alpaca-zip authored Aug 27, 2023
2 parents 5cd4bac + ff05314 commit 274f0bb
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/docker-build-check-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docker Build Check

on:
pull_request:
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: set up QEMU
uses: docker/setup-qemu-action@v1
- name: set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build and push
uses: docker/build-push-action@v2
with:
context: .
push: false
30 changes: 30 additions & 0 deletions .github/workflows/docker-deploy-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Docker Image Deployment

on:
pull_request:
types:
- closed
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: checkout
uses: actions/checkout@v2
- name: set up QEMU
uses: docker/setup-qemu-action@v1
- name: set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pupbot:noetic
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM tiryoh/ros-desktop-vnc:noetic
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install --no-install-recommends -y \
python3-pip \
ros-noetic-serial \
ros-noetic-ros-control \
ros-noetic-ros-controllers && \
apt-get clean && \
rm -r /var/lib/apt/lists/*
RUN mkdir -p ~/catkin_ws/src && \
/bin/bash -c "source /opt/ros/noetic/setup.bash ; cd ~/catkin_ws/src ; catkin_init_workspace" && \
/bin/bash -c "source /opt/ros/noetic/setup.bash ; cd ~/catkin_ws && catkin build" && \
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
RUN cd ~/catkin_ws && \
wstool init src && \
cd src && \
git clone -b noetic-devel https://github.com/Alpaca-zip/pupbot.git && \
wstool merge pupbot/pupbot.rosinstall && \
wstool update && \
cd ~/catkin_ws && \
rosdep install -r -y -i --from-paths . && \
catkin build
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# PupBot [![ROS-noetic Build Check](https://github.com/Alpaca-zip/pupbot/actions/workflows/ros1-build-check-bot.yml/badge.svg?event=pull_request)](https://github.com/Alpaca-zip/pupbot/actions/workflows/ros1-build-check-bot.yml)
# PupBot [![ROS-noetic Build Check](https://github.com/Alpaca-zip/pupbot/actions/workflows/ros1-build-check-bot.yml/badge.svg?event=pull_request)](https://github.com/Alpaca-zip/pupbot/actions/workflows/ros1-build-check-bot.yml) [![Docker Build Check](https://github.com/Alpaca-zip/pupbot/actions/workflows/docker-build-check-bot.yml/badge.svg?event=pull_request)](https://github.com/Alpaca-zip/pupbot/actions/workflows/docker-build-check-bot.yml)

[![dockeri.co](https://dockerico.blankenship.io/image/alpacazip/pupbot)](https://hub.docker.com/r/alpacazip/pupbot)

Open source ROS package for quadruped robot PupBot.
Dockerfiles: https://github.com/Alpaca-zip/docker-pupbot
Expand Down
2 changes: 2 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
<depend>icm_20948</depend>
<depend>dynamixel_workbench</depend>
<depend>rqt</depend>
<depend>ros_control</depend>
<depend>ros_controllers</depend>
</package>

0 comments on commit 274f0bb

Please sign in to comment.