Skip to content

Commit

Permalink
feat: add docfx (#7)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Create docfx.sh

* Update Dockerfile

* Update Dockerfile

* installing mono

* Update Dockerfile

* Update README.md

* Update README.md

Co-authored-by: James Frowen <jamesfrowendev@gmail.com>
  • Loading branch information
paulpach and James-Frowen authored Mar 8, 2021
1 parent cae1718 commit 5c0cf59
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
20 changes: 17 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LABEL "homepage"="http://github.com/MirrorNG/unity-runner"
LABEL "maintainer"="Paul Pacheco <paulpach@gmail.com>"

RUN apt-get update && \
apt-get install -y --no-install-recommends default-jre && \
apt-get install -y --no-install-recommends default-jre unzip && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
apt-get autoremove -y

Expand All @@ -20,13 +20,27 @@ RUN /opt/Unity/Editor/Data/NetCore/Sdk-2.2.107/dotnet tool install dotnet-sonars
COPY unity_csc.sh.patch .
RUN patch /opt/Unity/Editor/Data/Tools/RoslynScripts/unity_csc.sh unity_csc.sh.patch

COPY entrypoint.sh activate.sh sonar-scanner.sh request_activation.sh /
# install mono
RUN apt install gnupg ca-certificates && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list && \
apt update && \
apt install -y mono-devel

# install docfx
RUN wget https://github.com/dotnet/docfx/releases/download/v2.56.6/docfx.zip && \
unzip docfx.zip -d /docfx && \
rm docfx.zip


COPY entrypoint.sh activate.sh sonar-scanner.sh request_activation.sh docfx.sh /

ENV DOTNET_ROOT=/opt/Unity/Editor/Data/NetCore/Sdk-2.2.107/

RUN chmod +x /entrypoint.sh && \
chmod +x /activate.sh && \
chmod +x /request_activation.sh && \
chmod +x /sonar-scanner.sh
chmod +x /sonar-scanner.sh && \
chmod +x /docfx.sh

ENTRYPOINT ["/entrypoint.sh"]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ GitHub Action to
[run unity](https://github.com/marketplace/actions/unity-runner)
for any Unity project.

This Action also includes [SonarScanner](https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/) and [DocFX](https://dotnet.github.io/docfx/) installs

---

## Usage
Expand Down
3 changes: 3 additions & 0 deletions docfx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

mono "/docfx/docfx.exe" "$@"

0 comments on commit 5c0cf59

Please sign in to comment.