From 059919c2439cdc0e09fe0bdb110a171f1bc89b33 Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 29 Jan 2018 22:42:56 +0800 Subject: [PATCH] add rocket.chat-arm --- rocket.chat/arm/Dockerfile | 46 +++++++++++++++++++ rocket.chat/arm/docker-compose.yml | 15 ++++++ .../docker-compose.yml | 2 +- 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 rocket.chat/arm/Dockerfile create mode 100644 rocket.chat/arm/docker-compose.yml rename {rocketchat => rocket.chat}/docker-compose.yml (82%) diff --git a/rocket.chat/arm/Dockerfile b/rocket.chat/arm/Dockerfile new file mode 100644 index 0000000..9899130 --- /dev/null +++ b/rocket.chat/arm/Dockerfile @@ -0,0 +1,46 @@ +# +# Dockerfile for rocket.chat-arm +# + +FROM easypi/alpine-arm +MAINTAINER EasyPi Software Foundation + +RUN apk add --no-cache gnupg nodejs nodejs-npm + +RUN groupadd -r rocketchat \ +&& useradd -r -g rocketchat rocketchat \ +&& mkdir -p /app/uploads \ +&& chown rocketchat.rocketchat /app/uploads + +VOLUME /app/uploads + +# gpg: key 4FD08014: public key "Rocket.Chat Buildmaster " imported +RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0E163286C20D07B9787EBE9FD7F9D0414FD08104 + +ENV RC_VERSION 0.60.4 + +WORKDIR /app + +RUN curl -fSL "https://releases.rocket.chat/${RC_VERSION}/download" -o rocket.chat.tgz \ +&& curl -fSL "https://releases.rocket.chat/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \ +&& gpg --batch --verify rocket.chat.tgz.asc rocket.chat.tgz \ +&& tar zxvf rocket.chat.tgz \ +&& rm rocket.chat.tgz rocket.chat.tgz.asc \ +&& cd bundle/programs/server \ +&& npm install + +USER rocketchat + +WORKDIR /app/bundle + +# needs a mongoinstance - defaults to container linking with alias 'db' +ENV DEPLOY_METHOD=docker-official \ + MONGO_URL=mongodb://db:27017/meteor \ + HOME=/tmp \ + PORT=3000 \ + ROOT_URL=http://localhost:3000 \ + Accounts_AvatarStorePath=/app/uploads + +EXPOSE 3000 + +CMD ["node", "main.js"] diff --git a/rocket.chat/arm/docker-compose.yml b/rocket.chat/arm/docker-compose.yml new file mode 100644 index 0000000..e92721e --- /dev/null +++ b/rocket.chat/arm/docker-compose.yml @@ -0,0 +1,15 @@ +rocketchat: + image: rocket.chat + ports: + - "3000:3000" + links: + - mongo:db + environment: + - ROOT_URL=http://chat.easypi.pro + restart: always + +mongo: + image: easypi/mongo-arm + ports: + - "27017:27017" + restart: always diff --git a/rocketchat/docker-compose.yml b/rocket.chat/docker-compose.yml similarity index 82% rename from rocketchat/docker-compose.yml rename to rocket.chat/docker-compose.yml index 7fc6441..ab90b4e 100644 --- a/rocketchat/docker-compose.yml +++ b/rocket.chat/docker-compose.yml @@ -5,7 +5,7 @@ rocketchat: links: - mongo:db environment: - - ROOT_URL=http://chat.foobar.site + - ROOT_URL=http://chat.easypi.pro restart: always mongo: