Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add volume and move grav installation in entrypoint.sh #5

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

boTux
Copy link

@boTux boTux commented Oct 25, 2018

With the new entrypoint.sh and the edition in the Dockerfile, grav is now downloaded and extracted to /usr/src/ and the at first start it's copied in /var/www/html if index.php doesn't exist.

Heavily based on wordpress image.

I also added ldap php dependencies. Should we add also other deps like redis ?

boTux and others added 10 commits October 25, 2018 19:32
Resolve "Add gitlab-ci docker build"

Closes getgrav#3

See merge request botux-fr/docker/grav!2
Resolve "Add php-ldap support"

Closes getgrav#1

See merge request botux-fr/docker/grav!1
…o 'master'

Resolve "Issue with apcu install - Job Failed #112853842"

Closes getgrav#4

See merge request botux-fr/docker/grav!4
…' into 'master'

Resolve "Change code import from dockerfile to entrypoint"

Closes getgrav#2

See merge request botux-fr/docker/grav!5
@boTux boTux mentioned this pull request Oct 25, 2018
@boTux
Copy link
Author

boTux commented Oct 25, 2018

Build

Build nicely on gitlab : docker/grav/pipelines/34364510.

For continus integration and testing I'm using gitlab to work on this project : botux-fr/docker/grav.


Docker image

You can use and test this image on the gitlab docker registry :

registry.gitlab.com/botux-fr/docker/grav:latest

With docker-compose :

version: "3.6"

services:
  grav:
    image: registry.gitlab.com/botux-fr/docker/grav:latest
    restart: always
    ports:
      - 8080:80
    volumes:
      - ./data/:/var/www/html/

And go on http://localhost:8080/


If you're using traefik as reverse proxy, you can use :

version: "3.6"

networks:
  reverse-proxy:
    name: reverse-proxy
    external: true

services:
  grav:
    image: registry.gitlab.com/botux-fr/docker/grav:latest
    restart: always
    networks:
      - reverse-proxy
    labels:
      - "traefik.docker.network=reverse-proxy"
      - "traefik.enable=true"
      - "traefik.port=80"
      - "traefik.backend=grav"
      - "traefik.frontend.passHostHeader=true"
      - "traefik.frontend.rule=Host:${DOMAIN:-my.domain.tld}"
      - "traefik.frontend.whiteList.sourceRange=${WHITELIST:-}"
    volumes:
      - ./data/:/var/www/html/

Have fun :p

@boTux boTux changed the title Add volume and source installation from entrypoint Add volume and move grav installation in entrypoint.sh Oct 25, 2018
@boTux
Copy link
Author

boTux commented Oct 25, 2018

Update to 1.5.3 works nicely too : boTux-fr@b53e652

@boTux
Copy link
Author

boTux commented Apr 15, 2019

@rhukster are you planning to managed pull request approvals and allow external contributions ?

Regards

@rhukster
Copy link
Member

rhukster commented Apr 15, 2019

I have a big ol' note to go through the docker PRs. So Yup, I totally will go through them, but just been focused on regular Grav things last few months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants