├── .editorconfig ├── .github └── workflows │ ├── ci.yml │ └── publish.yml ├── 6.0.0 ├── Dockerfile └── entrypoint.sh ├── 6.0.1 ├── Dockerfile └── entrypoint.sh ├── 6.0.2 ├── Dockerfile └── entrypoint.sh ├── 6.1.0 ├── Dockerfile └── entrypoint.sh ├── 6.1.1 ├── Dockerfile └── entrypoint.sh ├── 6.1.2 ├── Dockerfile └── entrypoint.sh ├── 6.2.1 ├── Dockerfile └── entrypoint.sh ├── 6.2.3 ├── Dockerfile └── entrypoint.sh ├── 6.2.4 ├── Dockerfile └── entrypoint.sh ├── 6.2.5 ├── Dockerfile └── entrypoint.sh ├── 6.3.0 ├── Dockerfile └── entrypoint.sh ├── 6.4.0-beta0 ├── Dockerfile └── entrypoint.sh ├── 6.4.0-beta1 ├── Dockerfile └── entrypoint.sh ├── 6.4.0-beta2 ├── Dockerfile └── entrypoint.sh ├── 6.4.0-beta3 ├── Dockerfile └── entrypoint.sh ├── 6.4.0-beta4 ├── Dockerfile └── entrypoint.sh ├── 6.4.0 ├── Dockerfile └── entrypoint.sh ├── Dockerfile ├── LICENSE ├── README.md ├── docker-compose.yml ├── entrypoint.sh └── v5 ├── 2017.1.0 └── Dockerfile ├── 2017.1.1 └── Dockerfile ├── 2017.1.2 └── Dockerfile ├── 2017.1.3 └── Dockerfile ├── 2017.2.0 └── Dockerfile ├── 2017.2.1 └── Dockerfile ├── 2017.2.2 └── Dockerfile ├── 2017.2.3 └── Dockerfile ├── 2017.3.0 └── Dockerfile ├── 2017.3.1 └── Dockerfile ├── 2017.4.1 └── Dockerfile ├── 2017.4.2 └── Dockerfile ├── 2017.4.3 └── Dockerfile ├── 2017.4.4 └── Dockerfile ├── 2018.1.0 └── Dockerfile ├── 2018.1.1 └── Dockerfile ├── Dockerfile ├── LICENSE ├── README.md ├── docker-compose.nolegacy.yml └── docker-compose.yml /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: Build check 2 | 3 | on: 4 | push: 5 | pull_request: 6 | 7 | jobs: 8 | build: 9 | strategy: 10 | matrix: 11 | versions: 12 | - '6.0.0' 13 | - '6.0.1' 14 | - '6.0.2' 15 | - '6.1.0' 16 | - '6.1.1' 17 | - '6.1.2' 18 | - '6.2.1' 19 | - '6.2.3' 20 | - '6.2.4' 21 | - '6.2.5' 22 | - '6.3.0' 23 | - '6.4.0-beta0' 24 | - '6.4.0-beta1' 25 | - '6.4.0-beta2' 26 | - '6.4.0-beta2' 27 | - '6.4.0-beta4' 28 | - '6.4.0' 29 | - 'latest' 30 | 31 | runs-on: ubuntu-latest 32 | 33 | steps: 34 | - uses: actions/checkout@v2 35 | 36 | - uses: docker/setup-qemu-action@v1 37 | 38 | - uses: docker/setup-buildx-action@v1 39 | 40 | - uses: docker/build-push-action@v2 41 | with: 42 | context: ./${{ matrix.versions }} 43 | file: ./${{ matrix.versions }}/Dockerfile 44 | platforms: linux/amd64 45 | tags: ${{ matrix.versions }} 46 | if: ${{ matrix.versions != 'latest' }} 47 | 48 | # latest build only 49 | - uses: docker/build-push-action@v2 50 | with: 51 | context: . 52 | file: ./Dockerfile 53 | platforms: linux/amd64 54 | tags: latest 55 | if: ${{ matrix.versions == 'latest' }} 56 | -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | name: Publish to Docker Hub 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | schedule: 8 | # NOTE: Weekly 9 | - cron: '0 9 * * 0' 10 | workflow_dispatch: 11 | 12 | jobs: 13 | publish: 14 | strategy: 15 | max-parallel: 1 16 | matrix: 17 | versions: 18 | - '6.0.0' 19 | - '6.0.1' 20 | - '6.0.2' 21 | - '6.1.0' 22 | - '6.1.1' 23 | - '6.1.2' 24 | - '6.2.1' 25 | - '6.2.3' 26 | - '6.2.4' 27 | - '6.2.5' 28 | - '6.3.0' 29 | - '6.4.0-beta0' 30 | - '6.4.0-beta1' 31 | - '6.4.0-beta2' 32 | - '6.4.0-beta2' 33 | - '6.4.0-beta4' 34 | - '6.4.0' 35 | - 'latest' 36 | 37 | runs-on: ubuntu-latest 38 | 39 | steps: 40 | - uses: actions/checkout@v2 41 | 42 | - uses: docker/setup-qemu-action@v1 43 | 44 | - uses: docker/setup-buildx-action@v1 45 | 46 | - name: Login to Docker Hub 47 | uses: docker/login-action@v1 48 | with: 49 | username: ${{ github.repository_owner }} 50 | password: ${{ secrets.DOCKER_PASSWORD }} 51 | 52 | - name: Login to GitHub Container Registry 53 | uses: docker/login-action@v1 54 | with: 55 | registry: ghcr.io 56 | username: ${{ github.repository_owner }} 57 | password: ${{ secrets.GHCR_TOKEN }} 58 | 59 | - uses: docker/build-push-action@v2 60 | with: 61 | context: ./${{ matrix.versions }} 62 | file: ./${{ matrix.versions }}/Dockerfile 63 | platforms: linux/amd64 64 | tags: | 65 | ghcr.io/windyakin/docker-unity-cache-server:${{ matrix.versions }} 66 | windyakin/docker-unity-cache-server:${{ matrix.versions }} 67 | push: true 68 | if: ${{ matrix.versions != 'latest' }} 69 | 70 | - uses: docker/build-push-action@v2 71 | with: 72 | context: . 73 | file: ./Dockerfile 74 | platforms: linux/amd64 75 | tags: | 76 | ghcr.io/windyakin/docker-unity-cache-server:latest 77 | windyakin/docker-unity-cache-server:latest 78 | push: true 79 | if: ${{ matrix.versions == 'latest' }} 80 | -------------------------------------------------------------------------------- /6.0.0/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.0.0 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.0.0/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.0.1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.0.1 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.0.1/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.0.2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.1.2 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.0.2/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.1.0/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.1.0 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.1.0/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.1.1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.1.1 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.1.1/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.1.2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.1.1 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.1.2/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.2.1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.2.1 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.2.1/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.2.3/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.2.3 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.2.3/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.2.4/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.2.4 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.2.4/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.2.5/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.2.5 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.2.5/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.3.0/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:10-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.3.0 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.3.0/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.4.0-beta0/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:10-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.4.0-beta0 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.4.0-beta0/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.4.0-beta1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:10-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.4.0-beta1 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.4.0-beta1/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.4.0-beta2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:10-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.4.0-beta2 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.4.0-beta2/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.4.0-beta3/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:10-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.4.0-beta3 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.4.0-beta3/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.4.0-beta4/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:10-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.4.0-beta4 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.4.0-beta4/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /6.4.0/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:12-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.4.0 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /6.4.0/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:12-alpine 2 | 3 | ARG CACHE_SERVER_VERSION=6.4.0 4 | 5 | LABEL org.label-schema.version=${CACHE_SERVER_VERSION} 6 | 7 | RUN apk add --no-cache dumb-init 8 | 9 | WORKDIR /srv/unity 10 | 11 | COPY entrypoint.sh entrypoint.sh 12 | 13 | RUN npm i -g unity-cache-server@${CACHE_SERVER_VERSION} 14 | 15 | VOLUME [ "/srv/unity/cache" ] 16 | EXPOSE 8126 17 | ENTRYPOINT [ "/srv/unity/entrypoint.sh" ] 18 | CMD [ "unity-cache-server" ] 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2018 windyakin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Docker Unity Cache Server 2 | 3 | ## Description 4 | 5 | [Unity-Technologies/unity-cache-server](https://github.com/Unity-Technologies/unity-cache-server) on Docker container. **Supporting versions later than 6.x** 6 | 7 | It is recommended to use [Accelarator](https://blogs.unity3d.com/2019/09/11/speed-up-your-team-with-the-unity-accelerator/) in Unity version 2019.3 and later. That Docker image is [provided by Unity Technologies](https://hub.docker.com/r/unitytechnologies/accelerator). 8 | 9 | ## Available on GitHub Container Registry and Docker Hub 🐳 10 | 11 | ![](https://images.microbadger.com/badges/image/windyakin/docker-unity-cache-server.svg) 12 | ![](https://github.com/windyakin/docker-unity-cache-server/workflows/Publish%20to%20Docker%20Hub/badge.svg?branch=master) 13 | ![](https://img.shields.io/docker/pulls/windyakin/docker-unity-cache-server?label=Docker%20pulls&logo=docker&logoColor=white) 14 | 15 | * [ghcr.io/windyakin/docker-unity-cache-server](https://github.com/users/windyakin/packages/container/package/docker-unity-cache-server) 16 | * [windyakin/docker-unity-cache-server](https://hub.docker.com/r/windyakin/docker-unity-cache-server) 17 | 18 | ## Usage 19 | 20 | ### Start server 21 | 22 | ```sh 23 | docker run -d -p 8126:8126 -v $(pwd):/srv/unity/cache --name unity-cache-server ghcr.io/windyakin/docker-unity-cache-server 24 | ``` 25 | 26 | [Sample docker-compose.yml](docker-compose.yml) 27 | 28 | ### Volume position 29 | 30 | Recommend volume setting position is `/srv/unity/cache`. 31 | 32 | ### Environment variables 33 | 34 | #### Using for `unity-cache-server` and `unity-cache-server-cleanup` 35 | 36 | | Variable name | Command | Description | Default value | 37 | | ------------- | -------------- | --------------------------------- | ------------------ | 38 | | `CACHE_PATH` | `--cache-path` | Cache files position in container | `/srv/unity/cache` | 39 | | `LOG_LEVEL` | `--log-level` | Output log level | `3` (info) | 40 | 41 | #### Using only for `unity-cache-server-cleanup` 42 | 43 | | Variable name | Command | Description | Default value | 44 | | ------------------ | -------------------- | -------------------------------------- | ----------------------- | 45 | | `MAX_CACHE_SIZE` | `--max-cache-size` | Max cache size (bytes) | `53687091200` (50GiB) | 46 | | `EXPIRE_TIME_SPAN` | `--expire-time-span` | Cache expire time (ASP.NET style time) | `90.00:00:00` (90 days) | 47 | | `DAEMON_INTERVAL` | `--daemon` | Daemon working interval (seconds) | `86400` (24 hours) | 48 | 49 | ## Build other version 50 | 51 | Build with parameters. 52 | 53 | ```sh 54 | docker build --tag unity-cache-server:6.1.0 --build-arg CACHE_SERVER_VERSION=6.1.0 . 55 | ``` 56 | 57 | ## You wanna get old versions cache server image? 58 | 59 | Old cache server (enclosed Unity version 2017.1.0 - 2017.3.1) moved ["v5/" directory](v5) 60 | 61 | ## License 62 | 63 | [MIT License](LICENSE) 64 | 65 | ## Author 66 | 67 | * windyakin ([Twitter](https://twitter.com/MITLicense)) 68 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | volumes: 4 | unity_cache_data: {} 5 | 6 | services: 7 | cache_server: 8 | image: ghcr.io/windyakin/docker-unity-cache-server:latest 9 | ports: 10 | - 8126:8126 11 | volumes: 12 | - unity_cache_data:/srv/unity/cache 13 | -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -xe 2 | 3 | if [ "$@" = "unity-cache-server" ] || [ -z "$@" ]; then 4 | dumb-init -- \ 5 | unity-cache-server-cleanup \ 6 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 7 | --delete \ 8 | --max-cache-size "${MAX_CACHE_SIZE:-53687091200}" \ 9 | --expire-time-span "${EXPIRE_TIME_SPAN:-"90.00:00:00"}" \ 10 | --log-level "${LOG_LEVEL:-3}" \ 11 | --daemon "${DAEMON_INTERVAL:-86400}" & \ 12 | dumb-init -- \ 13 | unity-cache-server \ 14 | --cache-path "${CACHE_PATH:-"/srv/unity/cache"}" \ 15 | --log-level "${LOG_LEVEL:-3}" 16 | else 17 | exec $@ 18 | fi 19 | -------------------------------------------------------------------------------- /v5/2017.1.0/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/472613c02cf7/CacheServer-2017.1.0f3.zip 4 | ARG UNITY_VERSION=2017.1.0f3 5 | ARG VERSION_HASH=472613c02cf7 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.1.1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/5d30cf096e79/CacheServer-2017.1.1f1.zip 4 | ARG UNITY_VERSION=2017.1.1f1 5 | ARG VERSION_HASH=5d30cf096e79 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.1.2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/cc85bf6a8a04/CacheServer-2017.1.2f1.zip 4 | ARG UNITY_VERSION=2017.1.2f1 5 | ARG VERSION_HASH=cc85bf6a8a04 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.1.3/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/574eeb502d14/CacheServer-2017.1.3f1.zip 4 | ARG UNITY_VERSION=2017.1.3f1 5 | ARG VERSION_HASH=574eeb502d14 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.2.0/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/46dda1414e51/CacheServer-2017.2.0f3.zip 4 | ARG UNITY_VERSION=2017.2.0f3 5 | ARG VERSION_HASH=46dda1414e51 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.2.1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/94bf3f9e6b5e/CacheServer-2017.2.1f1.zip 4 | ARG UNITY_VERSION=2017.2.1f1 5 | ARG VERSION_HASH=94bf3f9e6b5e 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.2.2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/1f4e0f9b6a50/CacheServer-2017.2.2f1.zip 4 | ARG UNITY_VERSION=2017.2.2f1 5 | ARG VERSION_HASH=1f4e0f9b6a50 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.2.3/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/372229934efd/CacheServer-2017.2.3f1.zip 4 | ARG UNITY_VERSION=2017.2.3f1 5 | ARG VERSION_HASH=372229934efd 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.3.0/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/a9f86dcd79df/CacheServer-2017.3.0f3.zip 4 | ARG UNITY_VERSION=2017.3.0f3 5 | ARG VERSION_HASH=a9f86dcd79df 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.3.1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/fc1d3344e6ea/CacheServer-2017.3.1f1.zip 4 | ARG UNITY_VERSION=2017.3.1f1 5 | ARG VERSION_HASH=fc1d3344e6ea 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.4.1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/9231f953d9d3/CacheServer-2017.4.1f1.zip 4 | ARG UNITY_VERSION=2017.4.1f1 5 | ARG VERSION_HASH=9231f953d9d3 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.4.2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/52d9cb89b362/CacheServer-2017.4.2f2.zip 4 | ARG UNITY_VERSION=2017.4.2f2 5 | ARG VERSION_HASH=52d9cb89b362 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.4.3/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/21ae32b5a9cb/CacheServer-2017.4.3f1.zip 4 | ARG UNITY_VERSION=2017.4.3f1 5 | ARG VERSION_HASH=21ae32b5a9cb 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2017.4.4/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/645c9050ba4d/CacheServer-2017.4.4f1.zip 4 | ARG UNITY_VERSION=2017.4.4f1 5 | ARG VERSION_HASH=645c9050ba4d 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2018.1.0/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/d4d99f31acba/CacheServer-2018.1.0f2.zip 4 | ARG UNITY_VERSION=2018.1.0f2 5 | ARG VERSION_HASH=d4d99f31acba 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/2018.1.1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/b8cbb5de9840/CacheServer-2018.1.1f1.zip 4 | ARG UNITY_VERSION=2018.1.1f1 5 | ARG VERSION_HASH=b8cbb5de9840 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-alpine 2 | 3 | # https://download.unity3d.com/download_unity/b8cbb5de9840/CacheServer-2018.1.1f1.zip 4 | ARG UNITY_VERSION=2018.1.1f1 5 | ARG VERSION_HASH=b8cbb5de9840 6 | 7 | LABEL org.label-schema.version=${UNITY_VERSION} 8 | 9 | RUN apk add --no-cache --virtual build-dependencies \ 10 | curl \ 11 | unzip \ 12 | && curl https://download.unity3d.com/download_unity/${VERSION_HASH}/CacheServer-${UNITY_VERSION}.zip -o /tmp/cache_server.zip \ 13 | && unzip -j -d /srv /tmp/cache_server.zip \ 14 | CacheServer/CacheServer.js \ 15 | CacheServer/LegacyCacheServer.js \ 16 | CacheServer/main.js \ 17 | && rm -rf /tmp/cache_server.zip \ 18 | && apk del --purge build-dependencies \ 19 | && mkdir -p /srv/unity 20 | 21 | WORKDIR /srv 22 | VOLUME [ "/srv/unity" ] 23 | EXPOSE 8125-8126 24 | ENTRYPOINT [ "node", "main.js", "--path", "/srv/unity/cache5.0", "--legacypath", "/srv/unity/cache" ] 25 | -------------------------------------------------------------------------------- /v5/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2018 windyakin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /v5/README.md: -------------------------------------------------------------------------------- 1 | # Docker Unity Cache Server 2 | 3 | ## Description 4 | 5 | [Unity Cache Server](https://docs.unity3d.com/Manual/CacheServer.html) on Docker container. **Supporting versions later than 2017.x** 6 | 7 | ## Available on Docker Hub 🐳 8 | 9 | * [windyakin/docker-unity-cache-server](https://hub.docker.com/r/windyakin/docker-unity-cache-server) 10 | * [Supported version tags](https://hub.docker.com/r/windyakin/docker-unity-cache-server/tags/) 11 | 12 | ## Usage 13 | 14 | ### Start server 15 | 16 | ```sh 17 | docker run -d -p 8125-8126:8125-8126 -v $(pwd):/srv/unity --name cache_server windyakin/docker-unity-cache-server 18 | ``` 19 | 20 | [Sample docker-compose.yml](docker-compose.yml) 21 | 22 | ### Volume position 23 | 24 | Recommend volume setting position is `/srv/unity`. 25 | 26 | ### Don't need legacy mode support 27 | 28 | If you do not need legacy mode support, add `--nolegacy` param to Docker run command params. 29 | 30 | ```sh 31 | docker run -d -p 8126:8126 -v $(pwd):/srv/unity/cache5.0 --name cache_server windyakin/docker-unity-cache-server --no-legacy 32 | ``` 33 | 34 | [Sample docker-compose.yml](docker-compose.nolegacy.yml) 35 | 36 | ## Build other version 37 | 38 | Get download URL from [Unity - Download Archive](https://unity3d.com/jp/get-unity/download/archive) (Download URL of Cache Server is no distinction between Windows and Mac). 39 | 40 | Extract the parameter for Docker image building from the URL. 41 | 42 | ``` 43 | https://download.unity3d.com/download_unity/472613c02cf7/CacheServer-2017.1.0f3.zip 44 | ^^^^^^^^^^^^ ^^^^^^^^^^ 45 | VERSION_HASH UNITY_VERSION 46 | ``` 47 | 48 | Build with parameters. 49 | 50 | ```sh 51 | docker build --tag unity-cache-server:2017.1.0 --build-arg UNITY_VERSION=2017.1.0f3 --build-arg VERSION_HASH=472613c02cf7 . 52 | ``` 53 | 54 | ## License 55 | 56 | [MIT License](LICENSE) 57 | 58 | ## Author 59 | 60 | * windyakin ([Twitter](https://twitter.com/MITLicense)) 61 | -------------------------------------------------------------------------------- /v5/docker-compose.nolegacy.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | volumes: 4 | unity_cache: {} 5 | 6 | services: 7 | cache_server: 8 | image: windyakin/docker-unity-cache-server:latest 9 | ports: 10 | - 8126:8126 11 | volumes: 12 | - unity_cache:/srv/unity/cache5.0 13 | command: 14 | - --nolegacy 15 | -------------------------------------------------------------------------------- /v5/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | volumes: 4 | unity_cache: {} 5 | 6 | services: 7 | cache_server: 8 | image: windyakin/docker-unity-cache-server:latest 9 | ports: 10 | - 8125-8126:8125-8126 11 | volumes: 12 | - unity_cache:/srv/unity 13 | --------------------------------------------------------------------------------