From 1047a167064b3bf6a0e38354adf43645504aaab2 Mon Sep 17 00:00:00 2001 From: Yu Asabe Date: Wed, 14 Dec 2022 00:08:18 +0900 Subject: [PATCH 1/3] add prerequisites of git --- docs/installation/docker-installation.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/installation/docker-installation.md b/docs/installation/docker-installation.md index 57053c4..a1e7942 100644 --- a/docs/installation/docker-installation.md +++ b/docs/installation/docker-installation.md @@ -9,6 +9,9 @@ In order to run the simulations explained in the [Tutorials](/tutorials) section For the newest documentation for the Docker installation of Autoware, see their [official documentation](https://autowarefoundation.github.io/autoware-documentation/main/installation/autoware/docker-installation/). +### Prerequisites +- git + ### Setup ```bash From 0df07a2b0fed0ad38c0bbb287a2940893aa70fc0 Mon Sep 17 00:00:00 2001 From: Yu Asabe Date: Wed, 21 Dec 2022 14:17:43 +0900 Subject: [PATCH 2/3] Add delpoy-docs workflow --- .github/workflows/deploy-docs.yaml | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/deploy-docs.yaml diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml new file mode 100644 index 0000000..6df361b --- /dev/null +++ b/.github/workflows/deploy-docs.yaml @@ -0,0 +1,41 @@ +name: deploy-docs + +on: + push: + branches: + - main + paths: + - mkdocs.yaml + - "**/*.md" + - "**/*.svg" + - "**/*.png" + - "**/*.jpg" + pull_request_target: + types: + - opened + - synchronize + - labeled + workflow_dispatch: + +jobs: + prevent-no-label-execution: + uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1 + with: + label: deploy-docs + + deploy-docs: + needs: prevent-no-label-execution + if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }} + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + + - name: Deploy docs + uses: autowarefoundation/autoware-github-actions/deploy-docs@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + latest: ${{ github.event_name != 'pull_request_target' && github.ref_name == github.event.repository.default_branch }} \ No newline at end of file From ff98af374bb310755af86a97574b4a4fb6b9cd0e Mon Sep 17 00:00:00 2001 From: Yu Asabe Date: Wed, 21 Dec 2022 14:17:58 +0900 Subject: [PATCH 3/3] Update docker installation docs --- docs/installation/docker-installation.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/installation/docker-installation.md b/docs/installation/docker-installation.md index a1e7942..d480db9 100644 --- a/docs/installation/docker-installation.md +++ b/docs/installation/docker-installation.md @@ -14,15 +14,21 @@ For the newest documentation for the Docker installation of Autoware, see their ### Setup +1. Prepare the repository. ```bash mkdir -p ~/workspace && cd ~/workspace git clone https://github.com/autowarefoundation/autoware.git autoware_docker cd autoware_docker +``` -# Install dependencies using Ansible +2. Run the setup script for docker installation. +``` ./setup-dev-env.sh docker +``` +You will need to restart your PC after the script is finished running. -# Make directory to store maps +3. Make directory to store maps +``` mkdir -p ~/data/maps ```