Skip to content

Commit

Permalink
Build dotnet6
Browse files Browse the repository at this point in the history
  • Loading branch information
soup-bowl authored Apr 6, 2024
1 parent 65d0007 commit 47a9210
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ jobs:
strategy:
matrix:
tag:
- '{ "tag": "latest", "folder": "build/latest", "platforms": "linux/amd64,linux/arm64" }'
- '{ "tag": "alpine-beta", "folder": "beta/alpine", "platforms": "linux/amd64,linux/arm64" }'
- '{ "tag": "source", "folder": "beta/source", "platforms": "linux/amd64,linux/arm64" }'
- '{ "tag": "latest", "folder": "build/latest", "file": "Dockerfile", "platforms": "linux/amd64,linux/arm64" }'
- '{ "tag": "alpine-beta", "folder": "beta/alpine", "file": "Dockerfile", "platforms": "linux/amd64,linux/arm64" }'
- '{ "tag": "source", "folder": "beta/source", "file": "Dockerfile", "platforms": "linux/amd64,linux/arm64" }'
- '{ "tag": "dotnet6", "folder": "beta/source", "file": "Dockerfile.dotnet6", "platforms": "linux/amd64,linux/arm64" }'
steps:
- name: Checkout Codebase
uses: actions/checkout@v4
Expand Down Expand Up @@ -54,5 +55,6 @@ jobs:
soupbowl/opensimulator:${{ fromJSON(matrix.tag).tag }},
ghcr.io/soup-bowl/opensimulator-docker:${{ fromJSON(matrix.tag).tag }},
platforms: ${{ fromJSON(matrix.tag).platforms }}
file: "{context}/${{ fromJSON(matrix.tag).file }}"
cache-from: type=gha
cache-to: type=gha,mode=max
33 changes: 33 additions & 0 deletions beta/source/Dockerfile.dotnet6
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 as build

# Cache Bust to avoid caching skipping the latest commit
ADD https://api.github.com/repos/opensim/opensim/git/refs/heads/dotnet6 version.json
RUN git clone https://github.com/opensim/opensim.git /app
WORKDIR /app
RUN git checkout dotnet6

RUN ./runprebuild.sh && ./compile.sh

RUN rm bin/config-include/storage/SQLiteStandalone.ini

FROM mcr.microsoft.com/dotnet/runtime:6.0

LABEL org.opencontainers.image.title="OpenSimulator (unofficial)"
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/soup-bowl/opensimulator-docker"
LABEL org.opencontainers.image.licenses="MIT"

RUN apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev libsqlite3-dev screen uuid-runtime

COPY --from=build /app /opt/opensim

COPY defaults /opt/opensim/bin/defaults

EXPOSE 9000

WORKDIR /opt/opensim/bin

COPY docker-entrypoint.sh /usr/local/bin/

ENTRYPOINT ["docker-entrypoint.sh"]
CMD [ "screen", "-S", "OpenSim", "-D", "-m", "sh", "./opensim.sh" ]

0 comments on commit 47a9210

Please sign in to comment.