Skip to content

Commit

Permalink
Merge pull request #397 from JeanFred/docker
Browse files Browse the repository at this point in the history
Some fixes for the Docker setup
  • Loading branch information
Josh Clements authored Sep 24, 2020
2 parents 406f1d5 + a7045b9 commit 06a1b80
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /srv/mygpo
COPY makefile .

# install all packaged runtime dependencies
RUN yes | make install-deps
RUN yes | make install-deps APT=apt-get

# create log directories
RUN mkdir -p /var/log/gunicorn
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
build:
context: contrib
dockerfile: Dockerfile.postgres
environment:
POSTGRES_HOST_AUTH_METHOD: 'trust'

memcached:
image: memcached:1.4
Expand Down
4 changes: 3 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
APT=sudo apt-get

all: help

help:
Expand Down Expand Up @@ -34,7 +36,7 @@ clean:
git clean -fX

install-deps:
sudo apt-get install libpq-dev libjpeg-dev zlib1g-dev libwebp-dev \
$(APT) install libpq-dev libjpeg-dev zlib1g-dev libwebp-dev gettext \
build-essential python3-dev virtualenv libffi-dev redis postgresql

docker-build:
Expand Down
2 changes: 1 addition & 1 deletion mygpo/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ msgstr "Podcast inconnu"
#: mygpo/podcasts/models.py:700
#, python-brace-format
msgid "Unknown Podcast from {domain}"
msgstr "Podcast inconnu de {domaine}"
msgstr "Podcast inconnu de {domain}"

#: mygpo/podcasts/templates/episode.html:85
#: mygpo/podcasts/templates/episodes.html:27
Expand Down
2 changes: 1 addition & 1 deletion mygpo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_intOrNone(name, default):

# Static Files

STATIC_ROOT = 'staticfiles'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'

STATICFILES_DIRS = (os.path.abspath(os.path.join(BASE_DIR, '..', 'static')),)
Expand Down

0 comments on commit 06a1b80

Please sign in to comment.