Browse Source

make repo and branch arguments

master
Adrian Malacoda 2 years ago
parent
commit
2368202838
2 changed files with 5 additions and 4 deletions
  1. +5
    -2
      Dockerfile
  2. +0
    -2
      docker-compose.yml

+ 5
- 2
Dockerfile View File

@@ -18,6 +18,9 @@

FROM ubuntu:xenial

ARG SRC_REPO=http://git.savannah.gnu.org/r/mediagoblin.git
ARG BRANCH=stable

ENV READY_FILE /var/run/ready

ENV GOBLIN_USER=admin \
@@ -56,9 +59,9 @@ RUN apt-get update \
&& mkdir -p /srv/mediagoblin.example.org && chown -hR mediagoblin:www-data /srv/mediagoblin.example.org \
&& export HOME=/srv/mediagoblin.example.org \
&& cd /srv/mediagoblin.example.org \
&& sudo -u mediagoblin git clone http://git.savannah.gnu.org/r/mediagoblin.git \
&& sudo -u mediagoblin git clone $SRC_REPO \
&& cd /srv/mediagoblin.example.org/mediagoblin \
&& sudo -u mediagoblin git checkout stable \
&& sudo -u mediagoblin git checkout $BRANCH \
&& sudo -u mediagoblin git submodule sync \
&& sudo -u mediagoblin git submodule update --force --init --recursive \
&& sudo -u mediagoblin ./bootstrap.sh \


+ 0
- 2
docker-compose.yml View File

@@ -13,8 +13,6 @@ services:
mediagoblin:
build:
context: .
args:
SRC_REPO: https://git.postactiv.com/malacoda/postActiv
volumes:
- ./data/:/var/lib/mediagoblin
ports:


Loading…
Cancel
Save