This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
makes cleanupDanglingUnityFiles run before every unity task (#82)
* adds dangling unity assets cleanup task before every unity run * iupdate java minimum version to java 11
- Loading branch information
1 parent
d80b34d
commit eddba00
Showing
5 changed files
with
46 additions
and
24 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 |
---|---|---|
@@ -1,32 +1,25 @@ | ||
FROM openjdk:8-jdk | ||
ARG RUST_VERSION=1.50.0 | ||
|
||
FROM rust:$RUST_VERSION | ||
ARG UVM_VERSION=2.2.0 | ||
|
||
RUN mkdir -p /home/ci | ||
|
||
# Create an app user so our program doesn't run as root. | ||
RUN groupadd -r ci &&\ | ||
useradd -r -g ci -d /home/ci -s /sbin/nologin -c "Docker image user" ci | ||
|
||
# Set the home directory to our app user's home. | ||
ENV HOME=/home/ci | ||
ENV RUST_BACKTRACE=1 | ||
ENV RUST_LOG="warning, uvm_core=trace, uvm_jni=trace" | ||
ENV IN_DOCKER="1" | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y build-essential libssl-dev pkg-config openssl p7zip-full cpio -y | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
RUN curl -Lo "unity-version-manager-$UVM_VERSION.tar.gz" "https://github.com/Larusso/unity-version-manager/archive/v$UVM_VERSION.tar.gz" | ||
RUN tar -xzf "unity-version-manager-$UVM_VERSION.tar.gz" && rm "unity-version-manager-$UVM_VERSION.tar.gz" | ||
|
||
RUN cd "unity-version-manager-$UVM_VERSION" && PATH="${HOME}/.cargo/bin:$PATH" make install | ||
|
||
ENV PATH="${HOME}/.cargo/bin:${PATH}" | ||
FROM openjdk:11-jdk-buster | ||
ARG USER_ID=1001 | ||
ARG GROUP_ID=100 | ||
|
||
WORKDIR /home/ci/ | ||
RUN useradd -u ${USER_ID} -g ${GROUP_ID} --create-home jenkins_agent | ||
|
||
RUN curl -Lo unity-version-manager-2.2.0.tar.gz https://github.com/Larusso/unity-version-manager/archive/v2.2.0.tar.gz && \ | ||
tar -xzf unity-version-manager-2.2.0.tar.gz && \ | ||
cd unity-version-manager-2.2.0 && make install && \ | ||
uvm install 2019.1.0a7 /home/ci/.local/share/Unity-2019.1.0a7 | ||
USER jenkins_agent | ||
COPY --from=0 /usr/local/bin/uvm* ./usr/local/bin/ | ||
|
||
# Chown all the files to the app user. | ||
RUN chown -R ci:ci $HOME | ||
RUN chmod -R 777 $HOME | ||
RUN uvm install 2019.1.0a7 /home/jenkins_agent/.local/share/Unity-2019.1.0a7 |
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
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