Skip to content

Commit

Permalink
Trying to cleanup dockerfile and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanmunawar committed Jan 5, 2022
1 parent c2f974c commit b0858da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:

- name: Build docker image
run: |
docker build --tag=ambf-ros-noetic .
docker build --tag=ambf-ros-noetic docker/noetic/Dockerfile -f .
57 changes: 0 additions & 57 deletions Dockerfile

This file was deleted.

4 changes: 2 additions & 2 deletions docker/noetic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*

# Build AMBF
RUN . /opt/ros/${ROS_VERSION}/setup.sh && \
RUN . /opt/ros/noetic/setup.sh && \
mkdir -p ${AMBF_WS}/build && \
cd ${AMBF_WS}/build && \
cmake ../ && \
make -j$(nproc)

RUN touch ${HOME}/.bashrc && \
echo "source /opt/ros/${ROS_VERSION}/setup.bash" >> ${HOME}/.bashrc && \
echo "source /opt/ros/$ROS_VERSION/setup.bash" >> ${HOME}/.bashrc && \
echo "source $AMBF_WS/build/devel/setup.bash" >> ${HOME}/.bashrc

RUN . ${HOME}/.bashrc
Expand Down

0 comments on commit b0858da

Please sign in to comment.