Commit 6fd1a4bd authored by Mo Firouz's avatar Mo Firouz Committed by Chris Molozian
Browse files

Update to latest cockroachdb version in Dockerfile. (#72)

parent 46e50e10
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ You can use the Makefile to build Docker images. These steps show a manual way t
   If you have updated the version number in the `Dockerfile` also update it in the command below:

   ```
   docker build -t heroiclabs:nakama-<VERSION> nakama
   docker build --build-arg version=<VERSION> -t heroiclabs:nakama-<VERSION> nakama
   ```

   This creates a new image for each version of Nakama.
+2 −2
Original line number Diff line number Diff line
version: '3'
services:
  cockroachdb:
    image: cockroachdb/cockroach:v1.0-rc.2
    image: cockroachdb/cockroach:v1.0.1
    command: start --insecure --store=attrs=ssd,path=/var/lib/cockroach/
    restart: always
    volumes:
@@ -35,7 +35,7 @@ services:
      - "7350:7350"
      - "7351:7351"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:7351/v0/health"]
      test: ["CMD", "curl", "-f", "http://localhost:7350/"]
      interval: 10s
      timeout: 5s
      retries: 5
+9 −9
Original line number Diff line number Diff line
@@ -8,19 +8,19 @@ LABEL version=$version
LABEL variant=nakama
LABEL description="Distributed server for social and realtime games and apps."

RUN mkdir -p /nakama
RUN mkdir -p /nakama/data/log/
RUN touch /nakama/data/log/nakama.log
RUN mkdir -p /nakama/data/log/ \
  && touch /nakama/data/log/nakama.log
WORKDIR /nakama/

# forward logs to docker log collector
# docker logs are JSON by default
RUN ln -sf /dev/stdout data/log/nakama.log

RUN apt-get update; apt-get install -y ca-certificates curl

RUN echo "Fetching https://github.com/heroiclabs/nakama/releases/download/v$version/nakama-$version-linux-amd64.tar.gz ..."
RUN curl -sL https://github.com/heroiclabs/nakama/releases/download/v$version/nakama-$version-linux-amd64.tar.gz | tar xz
RUN ln -sf /dev/stdout data/log/nakama.log \
  && apt-get update \
  && apt-get install -y curl ca-certificates \
  && apt-get autoclean \
  && rm -rf /var/lib/apt/lists/* \
  && echo "Fetching https://github.com/heroiclabs/nakama/releases/download/v$version/nakama-$version-linux-amd64.tar.gz ..." \
  && curl -sL https://github.com/heroiclabs/nakama/releases/download/v$version/nakama-$version-linux-amd64.tar.gz | tar xz

EXPOSE 7350 7351