_docker/lib/drupal-data/lite/drupal_data_lite_image_builder.rb
def generate_lite_database_dump
    @process_runner.execute!("mkdir #{@working_directory}/work")
    @process_runner.execute!('docker pull redhatdeveloper/drupal-data:latest')
    @process_runner.execute!("docker run --rm -v #{@working_directory}/work:/work redhatdeveloper/drupal-data:latest /bin/sh -c \"zcat /docker-entrypoint-initdb.d/drupal-db.sql.gz | awk '!/INSERT INTO \\`node_revision__body\\`/' | awk '!/INSERT INTO \\`lightning_node_revision__body\\`/' | gzip > /work/drupal-db.sql.gz && chmod 777 /work/drupal-db.sql.gz\"")
  end
#
# Runs a Docker container to generate the "lite" database dump. The dump is written to the working directory where it can then be
# built into a Docker container image by through `docker build`
#
Runs a Docker container to generate the "lite" database dump. The dump is written to the working directory where it can then be
built into a Docker container image by through `docker build`
Runs a Docker container to generate the " lite " database dump . The dump is written to the working directory where it can then be built into a Docker container image by through ` docker build `
def generate_lite_database_dump
    @process_runner.execute!("mkdir #{@working_directory}/work")
    @process_runner.execute!('docker pull redhatdeveloper/drupal-data:latest')
    @process_runner.execute!("docker run --rm -v #{@working_directory}/work:/work redhatdeveloper/drupal-data:latest /bin/sh -c \"zcat /docker-entrypoint-initdb.d/drupal-db.sql.gz | awk '!/INSERT INTO \\`node_revision__body\\`/' | awk '!/INSERT INTO \\`lightning_node_revision__body\\`/' | gzip > /work/drupal-db.sql.gz && chmod 777 /work/drupal-db.sql.gz\"")
  end
def generate_lite_database_dump @process_runner . execute! ( "mkdir #{@working_directory}/work" ) @process_runner . execute! ( 'docker pull redhatdeveloper/drupal-data:latest' ) @process_runner . execute! ( "docker run --rm -v #{@working_directory}/work:/work redhatdeveloper/drupal-data:latest /bin/sh -c \"zcat /docker-entrypoint-initdb.d/drupal-db.sql.gz | awk '!/INSERT INTO \\`node_revision__body\\`/' | awk '!/INSERT INTO \\`lightning_node_revision__body\\`/' | gzip > /work/drupal-db.sql.gz && chmod 777 /work/drupal-db.sql.gz\"" ) end
Runs a Docker container to generate the "lite" database dump.
Runs a Docker container to generate the " lite " database dump .