Giter Club home page Giter Club logo

Comments (10)

geerlingguy avatar geerlingguy commented on June 12, 2024

Working on an upstream issue for the docker_arm role... geerlingguy/raspberry-pi-dramble#146

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

Role for Docker on ARM / Raspberry Pi with Ansible is now available: https://galaxy.ansible.com/geerlingguy/docker_arm

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

Almost finished with this. I have a local task hook that is building my Docker for Kubernetes site in the Pi... need to also start testing on a real Pi too, instead of inside Vagrant and Travis CI...

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

Documenting here the hook-tasks.yml I'm using to build the 'Drupal for Kubernetes' codebase locally on the Pi for use as the drupal_image:

---
- name: Create Docker daemon.json config file to fix DNS problems.
  copy:
    content: '{"dns": ["8.8.8.8"]}'
    dest: /etc/docker/daemon.json
  notify: restart docker

- meta: flush_handlers

- name: Install Docker python library.
  pip:
    name: docker
    state: present

- name: Ensure Drupal for Kubernetes project directory exists.
  file:
    path: /opt/drupal-for-kubernetes
    state: directory

- name: Clone Drupal for Kubernetes project.
  git:
    repo: 'https://github.com/geerlingguy/drupal-for-kubernetes.git'
    dest: /opt/drupal-for-kubernetes
    version: master

- name: Build Drupal for Kubernetes Docker image.
  docker_image:
    path: /opt/drupal-for-kubernetes
    name: geerlingguy/drupal-for-kubernetes
    tag: latest

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

Almost done with what I need for the next bit of legwork for my Drupal/Kubernetes/Pi presentation!

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

Got the load balancing working in the Vagrant test environment... the next step here is running the entire revamped playbook against my Pi model 2 B+ which is running the live site. Do I 'do it live' and see what breaks and possibly take down www.pidramble.com for a few hours or a day? Or do I do it the boring, safe way, and do it on one of my boring spare Pis to make sure there aren't any more little bugs left to iron out?

Not sure, but too tired to do that tonight. Sounds like a fun thing to do over the weekend!

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

Also bumped into this fun little regex issue: geerlingguy/drupal-container#19

But now that it's resolved, my single pi is all set up and running, woot!

pidramble

from drupal-pi.

Careless avatar Careless commented on June 12, 2024

Is there some sort of guide that you have hosted somewhere for linux n00bs like myself to attempt to do this?

I came from the other thread where you mentioned that you will be switching to docker install.

I'm so confused. where do i start, and how do I configure this for just a simple drupal install on a raspberry pi?

There's dramble-pi, drupal vm, composer, ansible, vagrant/vb, kubernites, docker... not asking you to hold my hand, but the steps to try and get this running should perhaps be in one place.

Or maybe just a brief list of what to do in what order?

I'm so lost and I'm usually pretty good at figuring my way around things like this but I don't even know where to start or if installing one package a certain way is not going to be compatible with what you're publishing here.

there's http://docs.drupalvm.com/en/latest/other/docker/

then there's

If you want to install a Drupal 8 site locally with minimal fuss, just:

  • Install Vagrant and VirtualBox.
  • Download or clone this project to your workstation.
  • cd into this project directory and run vagrant up.
    But Drupal VM allows you to build your site exactly how you like, using whatever tools you need, with almost infinite flexibility and customization!

... I am not sure what the difference between the two is or what is meant by "allows you to build your site exactly how you like" as most Drupal sites have to be built according to the requirements of the project anyway...

What are the limitations of doing it one way or the other? Will I be able to upgrade, or will maintenance or recovery during a system crash be convoluted in one instance, or easier in another... I'm just not sure about the what and why.

from drupal-pi.

Careless avatar Careless commented on June 12, 2024

geerlingguy,

I noticed that the guide on the drupal-pi repo was updated to reflect the new docker configuration and gave it a shot, and it seems to be all working now!!!

thanks for publishing that update a few weeks ago. I was confused as I had looked at it earlier and didn't realize that it had been changed to a docker install guide, so now all is well.

I added the VNC ports as suggested in the other thread (5900,5800) and it's all working good.

Now I just need to figure out a way to migrate my drupal install from one local server (NAS) to another (drupal-pi).

Thanks!

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

@Careless - Awesome, glad you could figure it out! And sorry about the trouble. I've been spending a lot of time on a few of these Pi-related projects over the past months gearing up for my DrupalCon presentation :)

from drupal-pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.