-
Notifications
You must be signed in to change notification settings - Fork 42
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 #411 from BYU-PCCL/develop
Release 0.3.1
- Loading branch information
Showing
90 changed files
with
2,797 additions
and
424 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,21 @@ | ||
*.pyc | ||
*.xml | ||
*.xmi | ||
.idea/ | ||
.vscode/ | ||
.tflogs/ | ||
worlds/ | ||
!docs/worlds | ||
build/ | ||
env/ | ||
venv/ | ||
docs/_build | ||
dist/ | ||
holodeck.egg-info/ | ||
.tox | ||
.pytest_cache | ||
pip-wheel-metadata | ||
!tests/worlds | ||
docker | ||
.dockerignore | ||
.github |
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,44 @@ | ||
name: Docker build | ||
|
||
on: | ||
push: | ||
branches: [ docker-improvement ] | ||
pull_request: | ||
branches: [ docker-improvement ] | ||
|
||
jobs: | ||
|
||
build-images: | ||
env: | ||
IMAGE_NAME: pccl/holodeck | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Login to DockerHub registry | ||
run: | | ||
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build base image | ||
working-directory: ./docker | ||
run: | | ||
docker build -t ${IMAGE_NAME}:base -f ./Dockerfile .. | ||
- name: Build default worlds image | ||
working-directory: ./docker | ||
run: docker build -t ${IMAGE_NAME}:default-worlds -f ./Dockerfile_default_worlds .. | ||
|
||
- name: Build dexterity image | ||
working-directory: ./docker | ||
run: docker build -t ${IMAGE_NAME}:dexterity -f ./Dockerfile_dexterity .. | ||
|
||
- name: Push images | ||
run: | | ||
docker push ${IMAGE_NAME}:base | ||
docker push ${IMAGE_NAME}:default-worlds | ||
docker push ${IMAGE_NAME}:dexterity |
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,26 @@ | ||
FROM nvidia/cudagl:9.2-runtime-ubuntu18.04 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
python3 python3-dev ipython3 module-init-tools curl build-essential python3-pip | ||
|
||
# OpenCV's runtime dependencies | ||
RUN apt-get install -y libglib2.0-0 libsm6 libxrender-dev libxext6 | ||
|
||
RUN pip3 install -U pip setuptools wheel | ||
|
||
RUN pip3 install numpy posix_ipc holodeck pytest opencv-python | ||
|
||
RUN adduser --disabled-password --gecos "" holodeckuser | ||
|
||
WORKDIR /home/holodeckuser/source/holodeck/ | ||
|
||
# This should be COPY ../ but docker doesn't allow copying files outside the context | ||
# To copy the project files either run the build command in this directory with the | ||
# previous directory as the context: docker build -t pccl/holodeck[:tag] -f ./Dockerfile .. | ||
# or run it from the parent directory and provide the docekr file location | ||
# docker build -t pccl/holodeck[:tag] -f ./docker/Dockerfile . | ||
COPY ./ . | ||
|
||
USER holodeckuser | ||
|
||
CMD ["/bin/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM pccl/holodeck:base | ||
|
||
RUN python3 -c 'import holodeck; holodeck.install("DefaultWorlds")' | ||
|
||
CMD ["/bin/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM pccl/holodeck:base | ||
|
||
RUN python3 -c 'import holodeck; holodeck.install("Dexterity")' | ||
|
||
CMD ["/bin/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker build -t pccl/holodeck:base -f ./Dockerfile .. |
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,28 @@ | ||
This folder contains holodeck's user-facing documentation (hosted at | ||
holodeck.readthedocs.io), and is compiled with [Sphinx](http://www.sphinx-doc.org/en/master/). | ||
|
||
The documentation can be built locally to preview changes before pushing to | ||
GitHub. | ||
|
||
### Prerequisites | ||
|
||
`pip install sphinx autodocsumm sphinx_rtd_theme doc8` | ||
|
||
### Building | ||
|
||
From this directory, | ||
```console | ||
~/dev/holodeck/docs$ make clean && make html | ||
``` | ||
|
||
[This VSCode extension](https://marketplace.visualstudio.com/items?itemName=lextudio.restructuredtext) | ||
is useful since it allows you to preview the docs without needing to | ||
compile them. | ||
|
||
### Style Note | ||
|
||
Pay careful attention to the warnings when you build the docs. The expectation | ||
is that we have a clean build. This includes | ||
|
||
Make sure to have the VSCode extension and doc8 installed you you get proper | ||
linting. |
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
File renamed without changes
File renamed without changes
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
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.