forked from nasa/astrobee
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Half-way syncing with nasa ros1 develop
- Loading branch information
Showing
887 changed files
with
40,037 additions
and
17,787 deletions.
There are no files selected for viewing
File renamed without changes.
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,31 @@ | ||
ARG UBUNTU_VERSION=20.04 | ||
ARG REMOTE=ghcr.io/nasa | ||
FROM ${REMOTE}/astrobee:latest-ubuntu${UBUNTU_VERSION} | ||
ENV DEBIAN_FRONTEND=dialog | ||
|
||
# Rationale for packages: | ||
# xvfb: X server that doesn't need GPU or physical display | ||
# x11vnc: VNC server that shares xvfb display with external VNC clients | ||
# xfce4: lightweight window manager | ||
# dbus-x11: inter-process communication needed by xfce | ||
# x11-apps: X11 apps to demo such as xeyes | ||
# x11-utils: debugging commands such as xdpyinfo | ||
# x11-xserver-utils: setup commands such as xset | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
dbus-x11 \ | ||
x11-apps \ | ||
x11-utils \ | ||
x11-xserver-utils \ | ||
x11vnc \ | ||
xfce4 \ | ||
xvfb \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN ls -l | ||
|
||
CMD ["/src/astrobee/src/scripts/start_vnc.sh"] | ||
|
||
# Expose VNC server's port | ||
EXPOSE 5900 |
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,26 @@ | ||
{ | ||
"dockerFile": "Dockerfile", | ||
"build": { | ||
"args": { | ||
"WORKSPACE": "${containerWorkspaceFolder}" | ||
} | ||
}, | ||
"remoteUser": "root", | ||
"overrideCommand": false, | ||
"forwardPorts": [ | ||
5900 | ||
], | ||
"runArgs": [ | ||
"-ti", | ||
"--rm", | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt=seccomp:unconfined", | ||
"--security-opt=apparmor:unconfined" | ||
], | ||
"containerEnv": { | ||
"DISPLAY": ":0", | ||
"LIBGL_ALWAYS_SOFTWARE": "1" // Needed for software rendering of opengl | ||
}, | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/src/astrobee/src,type=bind", | ||
"workspaceFolder": "/src/astrobee/src" | ||
} |
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 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,50 @@ | ||
# Check for lint error and auto correct them | ||
|
||
name: Build jar messages | ||
|
||
on: ['push', 'pull_request'] | ||
|
||
jobs: | ||
build-jar-msgs: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build image astrobee/astrobee:msgs-ubuntu20.04 | ||
run: docker build . -f ./scripts/docker/astrobee_msgs.Dockerfile | ||
-t astrobee/astrobee:msgs-ubuntu20.04 | ||
|
||
- name: Build image astrobee/astrobee:latest-msgs-jar-ubuntu20.04 | ||
run: docker build . -f ./scripts/docker/build_msgs_jar.Dockerfile | ||
-t ghcr.io/${{ github.repository_owner }}/astrobee:latest-msgs-jar | ||
|
||
- name: Copy jar files | ||
run: | | ||
docker cp $(docker create --rm ghcr.io/${{ github.repository_owner }}/astrobee:latest-msgs-jar):/src/msgs/devel/share/maven/ . | ||
find maven -name *.jar | ||
- name: Upload .jar messages artifact | ||
if: ${{ github.event_name == 'push' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: jar-msgs | ||
path: maven/**/*.jar | ||
|
||
- name: Log in to registry | ||
run: | | ||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin | ||
- name: Push Docker image if master or develop | ||
run: > | ||
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}; | ||
if [[ "${{ github.repository_owner }}" == "nasa" ]]; then | ||
if [[ $branch == "develop" ]]; then | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:latest-msgs-jar; | ||
fi; | ||
if [[ $branch == "master" ]]; then | ||
export VERSION=`grep -w -m 1 "Release" RELEASE.md | awk '{print $3}'`; | ||
docker tag ghcr.io/${{ github.repository_owner }}/astrobee:latest-msgs-jar ghcr.io/${{ github.repository_owner }}/astrobee:v${VERSION}-msgs-jar | ||
docker push ghcr.io/${{ github.repository_owner }}/astrobee:v${VERSION}-msgs-jar; | ||
fi; | ||
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
Oops, something went wrong.